mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 01:11:52 +02:00
ramips_eth: header file cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19415 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
06901dcfd6
commit
4235b93588
@ -33,7 +33,7 @@
|
||||
#define RAMIPS_DELAY_INIT ((RAMIPS_DELAY_CHAN << 16) | RAMIPS_DELAY_CHAN)
|
||||
#define RAMIPS_PSE_FQFC_CFG_INIT 0x80504000
|
||||
|
||||
/* interrupt bitd */
|
||||
/* interrupt bits */
|
||||
#define RAMIPS_CNT_PPE_AF BIT(31)
|
||||
#define RAMIPS_CNT_GDM_AF BIT(29)
|
||||
#define RAMIPS_PSE_P2_FC BIT(26)
|
||||
@ -123,11 +123,11 @@
|
||||
#define RAMIPS_RX_DRX_IDX1 (RAMIPS_PDMA_OFFSET + 0x4C)
|
||||
|
||||
/* uni-cast port */
|
||||
#define RAMIPS_GDM1_ICS_EN (0x1 << 22)
|
||||
#define RAMIPS_GDM1_TCS_EN (0x1 << 21)
|
||||
#define RAMIPS_GDM1_UCS_EN (0x1 << 20)
|
||||
#define RAMIPS_GDM1_JMB_EN (0x1 << 19)
|
||||
#define RAMIPS_GDM1_STRPCRC (0x1 << 16)
|
||||
#define RAMIPS_GDM1_ICS_EN BIT(22)
|
||||
#define RAMIPS_GDM1_TCS_EN BIT(21)
|
||||
#define RAMIPS_GDM1_UCS_EN BIT(20)
|
||||
#define RAMIPS_GDM1_JMB_EN BIT(19)
|
||||
#define RAMIPS_GDM1_STRPCRC BIT(16)
|
||||
#define RAMIPS_GDM1_UFRC_P_CPU (0 << 12)
|
||||
#define RAMIPS_GDM1_UFRC_P_GDMA1 (1 << 12)
|
||||
#define RAMIPS_GDM1_UFRC_P_PPE (6 << 12)
|
||||
@ -137,7 +137,7 @@
|
||||
#define RAMIPS_UCS_GEN_EN BIT(1)
|
||||
#define RAMIPS_TCS_GEN_EN BIT(0)
|
||||
|
||||
/* dma rimg */
|
||||
/* dma ring */
|
||||
#define RAMIPS_PST_DRX_IDX0 BIT(16)
|
||||
#define RAMIPS_PST_DTX_IDX3 BIT(3)
|
||||
#define RAMIPS_PST_DTX_IDX2 BIT(2)
|
||||
@ -161,6 +161,7 @@
|
||||
#define RX_DMA_PLEN0(x) ((x >> 16) & 0x3fff)
|
||||
#define RX_DMA_LSO BIT(30)
|
||||
#define RX_DMA_DONE BIT(31)
|
||||
|
||||
struct ramips_rx_dma {
|
||||
unsigned int rxd1;
|
||||
unsigned int rxd2;
|
||||
@ -176,6 +177,7 @@ struct ramips_rx_dma {
|
||||
#define TX_DMA_PN(x) (x << 24)
|
||||
#define TX_DMA_QN_MASK TX_DMA_QN(0x7)
|
||||
#define TX_DMA_PN_MASK TX_DMA_PN(0x7)
|
||||
|
||||
struct ramips_tx_dma {
|
||||
unsigned int txd1;
|
||||
unsigned int txd2;
|
||||
@ -201,4 +203,4 @@ struct raeth_priv
|
||||
struct ramips_eth_platform_data *plat;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif /* RAMIPS_ETH_H */
|
||||
|
Loading…
Reference in New Issue
Block a user