ipmux_interrupt.h
浏览该文件的文档。00001 #ifndef _IPMUX_INTERRUPT_H_ 00002 #define _IPMUX_INTERRUPT_H_ 00003 00020 /*--------------------------Macro definition------------------------- */ 00021 #define REG_INT_EN_POS_UPT 0x10204 00022 #define REG_INT_PEN_POS_UPT 0x10200 00023 00024 #define REG_INT_EN_ATB 0x11404 00025 #define REG_INT_PEN_ATB 0x11400 00026 00027 #define REG_INT_EN_IWF 0x13E00 00028 #define REG_INT_PEN_IWF 0x13E04 00029 00030 #define REG_INT_EN_BRG 0x21000 00031 #define REG_INT_PEN_BRG 0x21004 00032 00033 #define REG_INT_EN_PPE 0x18180 00034 #define REG_INT_PEN_PPE 0x18184 00035 00036 #define REG_INT_EN_UPTM 0x14404 00037 #define REG_INT_PEN_UPTM 0x14400 00038 00039 #define REG_INT_EN_DNTM 0x14F04 00040 #define REG_INT_PEN_DNTM 0x14F00 00041 00042 #define REG_INT_EN_MC 0x21404 00043 #define REG_INT_PEN_MC 0x21400 00044 00045 #define REG_INT_EN_DMA0 0x2B58 00046 #define REG_INT_PEN_DMA0 0x2B54 00047 00048 00049 #define OPL_UART0_IRQ 3 00050 #define OPL_UART1_IRQ 4 00051 #define OPL_HOSTDMA0_IRQ 5 00052 #define OPL_FEDMA1_IRQ 6 00053 #define OPL_IPMUX_IRQ 9 00054 00055 00056 /* 00057 #define IPMUX_REG_BASE 0xbf000000 00058 #define IPMUX_REG_ID2ADDR(regId) ((u32)IPMUX_REG_BASE + (u32)(regId)) 00059 #define IPMUX_REG_ADDR2ID(addr) ((u32)(addr) - (u32)IPMUX_REG_BASE) 00060 */ 00066 /*--------------------------type definition------------------------- */ 00067 00073 /*-----------------global varible/function declaration--------------- */ 00074 00080 /*--------------local varible declaration and definition------------- */ 00081 00088 /*------------inline function declaration and definition-------------- */ 00089 extern int ipmux_hw0_irqinit(void); 00090 extern void ipmux_hw0_irqexit(void); 00091 00092 00093 /* 00094 inline void ipMuxRegRead(u32 regId,u32 *val) 00095 { 00096 *val = *(volatile u32 *)IPMUX_REG_ID2ADDR(regId); 00097 } 00098 00099 inline void ipMuxRegWrite(u32 regId,u32 val) 00100 { 00101 *((volatile u32 *)IPMUX_REG_ID2ADDR(regId)) = (u32)(val); 00102 } 00103 */ 00104 00107 #endif /* _IPMUX_INTERRUPT_H_ */
Generated at Mon Jul 30 16:43:48 2007 for IPMUX1IPMUX2IPMUX3 by 1.3.9.1