defbf542.h

来自「linux 内核源代码」· C头文件 代码 · 共 926 行 · 第 1/4 页

H
926
字号
#define                 USB_EP_NI4_TXCSR  0xffc03f04   /* Control Status register for endpoint4 */#define                USB_EP_NI4_RXMAXP  0xffc03f08   /* Maximum packet size for Host Rx endpoint4 */#define                 USB_EP_NI4_RXCSR  0xffc03f0c   /* Control Status register for Host Rx endpoint4 */#define               USB_EP_NI4_RXCOUNT  0xffc03f10   /* Number of bytes received in endpoint4 FIFO */#define                USB_EP_NI4_TXTYPE  0xffc03f14   /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint4 */#define            USB_EP_NI4_TXINTERVAL  0xffc03f18   /* Sets the NAK response timeout on Endpoint4 */#define                USB_EP_NI4_RXTYPE  0xffc03f1c   /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint4 */#define            USB_EP_NI4_RXINTERVAL  0xffc03f20   /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint4 *//* USB Endpoint 5 Control Registers */#define               USB_EP_NI4_TXCOUNT  0xffc03f28   /* Number of bytes to be written to the endpoint4 Tx FIFO */#define                USB_EP_NI5_TXMAXP  0xffc03f40   /* Maximum packet size for Host Tx endpoint5 */#define                 USB_EP_NI5_TXCSR  0xffc03f44   /* Control Status register for endpoint5 */#define                USB_EP_NI5_RXMAXP  0xffc03f48   /* Maximum packet size for Host Rx endpoint5 */#define                 USB_EP_NI5_RXCSR  0xffc03f4c   /* Control Status register for Host Rx endpoint5 */#define               USB_EP_NI5_RXCOUNT  0xffc03f50   /* Number of bytes received in endpoint5 FIFO */#define                USB_EP_NI5_TXTYPE  0xffc03f54   /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint5 */#define            USB_EP_NI5_TXINTERVAL  0xffc03f58   /* Sets the NAK response timeout on Endpoint5 */#define                USB_EP_NI5_RXTYPE  0xffc03f5c   /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint5 */#define            USB_EP_NI5_RXINTERVAL  0xffc03f60   /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint5 *//* USB Endpoint 6 Control Registers */#define               USB_EP_NI5_TXCOUNT  0xffc03f68   /* Number of bytes to be written to the H145endpoint5 Tx FIFO */#define                USB_EP_NI6_TXMAXP  0xffc03f80   /* Maximum packet size for Host Tx endpoint6 */#define                 USB_EP_NI6_TXCSR  0xffc03f84   /* Control Status register for endpoint6 */#define                USB_EP_NI6_RXMAXP  0xffc03f88   /* Maximum packet size for Host Rx endpoint6 */#define                 USB_EP_NI6_RXCSR  0xffc03f8c   /* Control Status register for Host Rx endpoint6 */#define               USB_EP_NI6_RXCOUNT  0xffc03f90   /* Number of bytes received in endpoint6 FIFO */#define                USB_EP_NI6_TXTYPE  0xffc03f94   /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint6 */#define            USB_EP_NI6_TXINTERVAL  0xffc03f98   /* Sets the NAK response timeout on Endpoint6 */#define                USB_EP_NI6_RXTYPE  0xffc03f9c   /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint6 */#define            USB_EP_NI6_RXINTERVAL  0xffc03fa0   /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint6 *//* USB Endpoint 7 Control Registers */#define               USB_EP_NI6_TXCOUNT  0xffc03fa8   /* Number of bytes to be written to the endpoint6 Tx FIFO */#define                USB_EP_NI7_TXMAXP  0xffc03fc0   /* Maximum packet size for Host Tx endpoint7 */#define                 USB_EP_NI7_TXCSR  0xffc03fc4   /* Control Status register for endpoint7 */#define                USB_EP_NI7_RXMAXP  0xffc03fc8   /* Maximum packet size for Host Rx endpoint7 */#define                 USB_EP_NI7_RXCSR  0xffc03fcc   /* Control Status register for Host Rx endpoint7 */#define               USB_EP_NI7_RXCOUNT  0xffc03fd0   /* Number of bytes received in endpoint7 FIFO */#define                USB_EP_NI7_TXTYPE  0xffc03fd4   /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint7 */#define            USB_EP_NI7_TXINTERVAL  0xffc03fd8   /* Sets the NAK response timeout on Endpoint7 */#define                USB_EP_NI7_RXTYPE  0xffc03fdc   /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint7 */#define            USB_EP_NI7_RXINTERVAL  0xffc03ff0   /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint7 */#define               USB_EP_NI7_TXCOUNT  0xffc03ff8   /* Number of bytes to be written to the endpoint7 Tx FIFO */#define                USB_DMA_INTERRUPT  0xffc04000   /* Indicates pending interrupts for the DMA channels *//* USB Channel 0 Config Registers */#define                  USB_DMA0CONTROL  0xffc04004   /* DMA master channel 0 configuration */#define                  USB_DMA0ADDRLOW  0xffc04008   /* Lower 16-bits of memory source/destination address for DMA master channel 0 */#define                 USB_DMA0ADDRHIGH  0xffc0400c   /* Upper 16-bits of memory source/destination address for DMA master channel 0 */#define                 USB_DMA0COUNTLOW  0xffc04010   /* Lower 16-bits of byte count of DMA transfer for DMA master channel 0 */#define                USB_DMA0COUNTHIGH  0xffc04014   /* Upper 16-bits of byte count of DMA transfer for DMA master channel 0 *//* USB Channel 1 Config Registers */#define                  USB_DMA1CONTROL  0xffc04024   /* DMA master channel 1 configuration */#define                  USB_DMA1ADDRLOW  0xffc04028   /* Lower 16-bits of memory source/destination address for DMA master channel 1 */#define                 USB_DMA1ADDRHIGH  0xffc0402c   /* Upper 16-bits of memory source/destination address for DMA master channel 1 */#define                 USB_DMA1COUNTLOW  0xffc04030   /* Lower 16-bits of byte count of DMA transfer for DMA master channel 1 */#define                USB_DMA1COUNTHIGH  0xffc04034   /* Upper 16-bits of byte count of DMA transfer for DMA master channel 1 *//* USB Channel 2 Config Registers */#define                  USB_DMA2CONTROL  0xffc04044   /* DMA master channel 2 configuration */#define                  USB_DMA2ADDRLOW  0xffc04048   /* Lower 16-bits of memory source/destination address for DMA master channel 2 */#define                 USB_DMA2ADDRHIGH  0xffc0404c   /* Upper 16-bits of memory source/destination address for DMA master channel 2 */#define                 USB_DMA2COUNTLOW  0xffc04050   /* Lower 16-bits of byte count of DMA transfer for DMA master channel 2 */#define                USB_DMA2COUNTHIGH  0xffc04054   /* Upper 16-bits of byte count of DMA transfer for DMA master channel 2 *//* USB Channel 3 Config Registers */#define                  USB_DMA3CONTROL  0xffc04064   /* DMA master channel 3 configuration */#define                  USB_DMA3ADDRLOW  0xffc04068   /* Lower 16-bits of memory source/destination address for DMA master channel 3 */#define                 USB_DMA3ADDRHIGH  0xffc0406c   /* Upper 16-bits of memory source/destination address for DMA master channel 3 */#define                 USB_DMA3COUNTLOW  0xffc04070   /* Lower 16-bits of byte count of DMA transfer for DMA master channel 3 */#define                USB_DMA3COUNTHIGH  0xffc04074   /* Upper 16-bits of byte count of DMA transfer for DMA master channel 3 *//* USB Channel 4 Config Registers */#define                  USB_DMA4CONTROL  0xffc04084   /* DMA master channel 4 configuration */#define                  USB_DMA4ADDRLOW  0xffc04088   /* Lower 16-bits of memory source/destination address for DMA master channel 4 */#define                 USB_DMA4ADDRHIGH  0xffc0408c   /* Upper 16-bits of memory source/destination address for DMA master channel 4 */#define                 USB_DMA4COUNTLOW  0xffc04090   /* Lower 16-bits of byte count of DMA transfer for DMA master channel 4 */#define                USB_DMA4COUNTHIGH  0xffc04094   /* Upper 16-bits of byte count of DMA transfer for DMA master channel 4 *//* USB Channel 5 Config Registers */#define                  USB_DMA5CONTROL  0xffc040a4   /* DMA master channel 5 configuration */#define                  USB_DMA5ADDRLOW  0xffc040a8   /* Lower 16-bits of memory source/destination address for DMA master channel 5 */#define                 USB_DMA5ADDRHIGH  0xffc040ac   /* Upper 16-bits of memory source/destination address for DMA master channel 5 */#define                 USB_DMA5COUNTLOW  0xffc040b0   /* Lower 16-bits of byte count of DMA transfer for DMA master channel 5 */#define                USB_DMA5COUNTHIGH  0xffc040b4   /* Upper 16-bits of byte count of DMA transfer for DMA master channel 5 *//* USB Channel 6 Config Registers */#define                  USB_DMA6CONTROL  0xffc040c4   /* DMA master channel 6 configuration */#define                  USB_DMA6ADDRLOW  0xffc040c8   /* Lower 16-bits of memory source/destination address for DMA master channel 6 */#define                 USB_DMA6ADDRHIGH  0xffc040cc   /* Upper 16-bits of memory source/destination address for DMA master channel 6 */#define                 USB_DMA6COUNTLOW  0xffc040d0   /* Lower 16-bits of byte count of DMA transfer for DMA master channel 6 */#define                USB_DMA6COUNTHIGH  0xffc040d4   /* Upper 16-bits of byte count of DMA transfer for DMA master channel 6 *//* USB Channel 7 Config Registers */#define                  USB_DMA7CONTROL  0xffc040e4   /* DMA master channel 7 configuration */#define                  USB_DMA7ADDRLOW  0xffc040e8   /* Lower 16-bits of memory source/destination address for DMA master channel 7 */#define                 USB_DMA7ADDRHIGH  0xffc040ec   /* Upper 16-bits of memory source/destination address for DMA master channel 7 */#define                 USB_DMA7COUNTLOW  0xffc040f0   /* Lower 16-bits of byte count of DMA transfer for DMA master channel 7 */#define                USB_DMA7COUNTHIGH  0xffc040f4   /* Upper 16-bits of byte count of DMA transfer for DMA master channel 7 *//* Keypad Registers */#define                         KPAD_CTL  0xffc04100   /* Controls keypad module enable and disable */#define                    KPAD_PRESCALE  0xffc04104   /* Establish a time base for programing the KPAD_MSEL register */#define                        KPAD_MSEL  0xffc04108   /* Selects delay parameters for keypad interface sensitivity */#define                      KPAD_ROWCOL  0xffc0410c   /* Captures the row and column output values of the keys pressed */#define                        KPAD_STAT  0xffc04110   /* Holds and clears the status of the keypad interface interrupt */#define                    KPAD_SOFTEVAL  0xffc04114   /* Lets software force keypad interface to check for keys being pressed *//* ********************************************************** *//*     SINGLE BIT MACRO PAIRS (bit mask and negated one)      *//*     and MULTI BIT READ MACROS                              *//* ********************************************************** *//* Bit masks for KPAD_CTL */#define                   KPAD_EN  0x1        /* Keypad Enable */#define              KPAD_IRQMODE  0x6        /* Key Press Interrupt Enable */#define                KPAD_ROWEN  0x1c00     /* Row Enable Width */#define                KPAD_COLEN  0xe000     /* Column Enable Width *//* Bit masks for KPAD_PRESCALE */#define         KPAD_PRESCALE_VAL  0x3f       /* Key Prescale Value *//* Bit masks for KPAD_MSEL */#define                DBON_SCALE  0xff       /* Debounce Scale Value */#define              COLDRV_SCALE  0xff00     /* Column Driver Scale Value *//* Bit masks for KPAD_ROWCOL */#define                  KPAD_ROW  0xff       /* Rows Pressed */#define                  KPAD_COL  0xff00     /* Columns Pressed *//* Bit masks for KPAD_STAT */#define                  KPAD_IRQ  0x1        /* Keypad Interrupt Status */#define              KPAD_MROWCOL  0x6        /* Multiple Row/Column Keypress Status */#define              KPAD_PRESSED  0x8        /* Key press current status *//* Bit masks for KPAD_SOFTEVAL */#define           KPAD_SOFTEVAL_E  0x2        /* Software Programmable Force Evaluate *//* Bit masks for SDH_COMMAND */#define                   CMD_IDX  0x3f       /* Command Index */#define                   CMD_RSP  0x40       /* Response */#define                 CMD_L_RSP  0x80       /* Long Response */#define                 CMD_INT_E  0x100      /* Command Interrupt */#define                CMD_PEND_E  0x200      /* Command Pending */#define                     CMD_E  0x400      /* Command Enable *//* Bit masks for SDH_PWR_CTL */#define                    PWR_ON  0x3        /* Power On */#if 0#define                       TBD  0x3c       /* TBD */#endif#define                 SD_CMD_OD  0x40       /* Open Drain Output */#define                   ROD_CTL  0x80       /* Rod Control *//* Bit masks for SDH_CLK_CTL */#define                    CLKDIV  0xff       /* MC_CLK Divisor */#define                     CLK_E  0x100      /* MC_CLK Bus Clock Enable */#define                  PWR_SV_E  0x200      /* Power Save Enable */#define             CLKDIV_BYPASS  0x400      /* Bypass Divisor */#define                  WIDE_BUS  0x800      /* Wide Bus Mode Enable *//* Bit masks for SDH_RESP_CMD */#define                  RESP_CMD  0x3f       /* Response Command *//* Bit masks for SDH_DATA_CTL */#define                     DTX_E  0x1        /* Data Transfer Enable */#define                   DTX_DIR  0x2        /* Data Transfer Direction */#define                  DTX_MODE  0x4        /* Data Transfer Mode */#define                 DTX_DMA_E  0x8        /* Data Transfer DMA Enable */#define              DTX_BLK_LGTH  0xf0       /* Data Transfer Block Length *//* Bit masks for SDH_STATUS */#define              CMD_CRC_FAIL  0x1        /* CMD CRC Fail */#define              DAT_CRC_FAIL  0x2        /* Data CRC Fail */#define               CMD_TIMEOUT  0x4        /* CMD Time Out */#define               DAT_TIMEOUT  0x8        /* Data Time Out */#define               TX_UNDERRUN  0x10       /* Transmit Underrun */#define                RX_OVERRUN  0x20       /* Receive Overrun */#define              CMD_RESP_END  0x40       /* CMD Response End */#define                  CMD_SENT  0x80       /* CMD Sent */#define                   DAT_END  0x100      /* Data End */#define             START_BIT_ERR  0x200      /* Start Bit Error */#define               DAT_BLK_END  0x400      /* Data Block End */#define                   CMD_ACT  0x800      /* CMD Active */#define                    TX_ACT  0x1000     /* Transmit Active */#define                    RX_ACT  0x2000     /* Receive Active */#define              TX_FIFO_STAT  0x4000     /* Transmit FIFO Status */#define              RX_FIFO_STAT  0x8000     /* Receive FIFO Status */#define              TX_FIFO_FULL  0x10000    /* Transmit FIFO Full */#define              RX_FIFO_FULL  0x20000    /* Receive FIFO Full */#define              TX_FIFO_ZERO  0x40000    /* Transmit FIFO Empty */#define               RX_DAT_ZERO  0x80000    /* Receive FIFO Empty */#define                TX_DAT_RDY  0x100000   /* Transmit Data Available */#define               RX_FIFO_RDY  0x200000   /* Receive Data Available *//* Bit masks for SDH_STATUS_CLR */#define         CMD_CRC_FAIL_STAT  0x1        /* CMD CRC Fail Status */#define         DAT_CRC_FAIL_STAT  0x2        /* Data CRC Fail Status */#define          CMD_TIMEOUT_STAT  0x4        /* CMD Time Out Status */#define          DAT_TIMEOUT_STAT  0x8        /* Data Time Out status */#define          TX_UNDERRUN_STAT  0x10       /* Transmit Underrun Status */#define           RX_OVERRUN_STAT  0x20       /* Receive Overrun Status */#define         CMD_RESP_END_STAT  0x40       /* CMD Response End Status */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?