22 volatile uint32_t len_status;
23 volatile uint32_t *addr;
29 volatile uint32_t moder;
30 volatile uint32_t int_src;
31 volatile uint32_t int_mask;
32 volatile uint32_t ipgt;
33 volatile uint32_t ipgr1;
34 volatile uint32_t ipgr2;
35 volatile uint32_t packet_len;
36 volatile uint32_t collconf;
37 volatile uint32_t tx_bd_num;
38 volatile uint32_t ctrlmoder;
39 volatile uint32_t miimoder;
40 volatile uint32_t miicommand;
41 volatile uint32_t miiaddress;
42 volatile uint32_t miitx_data;
43 volatile uint32_t miirx_data;
44 volatile uint32_t miistatus;
45 volatile uint32_t mac_addr0;
46 volatile uint32_t mac_addr1;
47 volatile uint32_t hash_addr0;
48 volatile uint32_t hash_addr1;
49 volatile uint32_t txctrl;
54 #define OETH_TOTAL_BD 128 55 #define OETH_MAXBUF_LEN 0x610 58 #define OETH_TX_BD_READY 0x8000 59 #define OETH_TX_BD_IRQ 0x4000 60 #define OETH_TX_BD_WRAP 0x2000 61 #define OETH_TX_BD_PAD 0x1000 62 #define OETH_TX_BD_CRC 0x0800 64 #define OETH_TX_BD_UNDERRUN 0x0100 65 #define OETH_TX_BD_RETRY 0x00F0 66 #define OETH_TX_BD_RETLIM 0x0008 67 #define OETH_TX_BD_LATECOL 0x0004 68 #define OETH_TX_BD_DEFER 0x0002 69 #define OETH_TX_BD_CARRIER 0x0001 70 #define OETH_TX_BD_STATS (OETH_TX_BD_UNDERRUN | \ 73 OETH_TX_BD_LATECOL | \ 78 #define OETH_RX_BD_EMPTY 0x8000 79 #define OETH_RX_BD_IRQ 0x4000 80 #define OETH_RX_BD_WRAP 0x2000 82 #define OETH_RX_BD_MISS 0x0080 83 #define OETH_RX_BD_OVERRUN 0x0040 84 #define OETH_RX_BD_INVSIMB 0x0020 85 #define OETH_RX_BD_DRIBBLE 0x0010 86 #define OETH_RX_BD_TOOLONG 0x0008 87 #define OETH_RX_BD_SHORT 0x0004 88 #define OETH_RX_BD_CRCERR 0x0002 89 #define OETH_RX_BD_LATECOL 0x0001 90 #define OETH_RX_BD_STATS (OETH_RX_BD_MISS | \ 91 OETH_RX_BD_OVERRUN | \ 92 OETH_RX_BD_INVSIMB | \ 93 OETH_RX_BD_DRIBBLE | \ 94 OETH_RX_BD_TOOLONG | \ 100 #define OETH_MODER_RXEN 0x00000001 101 #define OETH_MODER_TXEN 0x00000002 102 #define OETH_MODER_NOPRE 0x00000004 103 #define OETH_MODER_BRO 0x00000008 104 #define OETH_MODER_IAM 0x00000010 105 #define OETH_MODER_PRO 0x00000020 106 #define OETH_MODER_IFG 0x00000040 107 #define OETH_MODER_LOOPBCK 0x00000080 108 #define OETH_MODER_NOBCKOF 0x00000100 109 #define OETH_MODER_EXDFREN 0x00000200 110 #define OETH_MODER_FULLD 0x00000400 111 #define OETH_MODER_RST 0x00000800 112 #define OETH_MODER_DLYCRCEN 0x00001000 113 #define OETH_MODER_CRCEN 0x00002000 114 #define OETH_MODER_HUGEN 0x00004000 115 #define OETH_MODER_PAD 0x00008000 116 #define OETH_MODER_RECSMALL 0x00010000 119 #define OETH_INT_TXB 0x00000001 120 #define OETH_INT_TXE 0x00000002 121 #define OETH_INT_RXF 0x00000004 122 #define OETH_INT_RXE 0x00000008 123 #define OETH_INT_BUSY 0x00000010 124 #define OETH_INT_TXC 0x00000020 125 #define OETH_INT_RXC 0x00000040 128 #define OETH_INT_MASK_TXB 0x00000001 129 #define OETH_INT_MASK_TXE 0x00000002 130 #define OETH_INT_MASK_RXF 0x00000004 131 #define OETH_INT_MASK_RXE 0x00000008 132 #define OETH_INT_MASK_BUSY 0x00000010 133 #define OETH_INT_MASK_TXC 0x00000020 134 #define OETH_INT_MASK_RXC 0x00000040 137 #define OETH_CTRLMODER_PASSALL 0x00000001 138 #define OETH_CTRLMODER_RXFLOW 0x00000002 139 #define OETH_CTRLMODER_TXFLOW 0x00000004 142 #define OETH_MIIMODER_CLKDIV 0x000000FF 143 #define OETH_MIIMODER_NOPRE 0x00000100 144 #define OETH_MIIMODER_RST 0x00000200 147 #define OETH_MIICOMMAND_SCANSTAT 0x00000001 148 #define OETH_MIICOMMAND_RSTAT 0x00000002 149 #define OETH_MIICOMMAND_WCTRLDATA 0x00000004 152 #define OETH_MIIADDRESS_FIAD 0x0000001F 153 #define OETH_MIIADDRESS_RGAD 0x00001F00 156 #define OETH_MIISTATUS_LINKFAIL 0x00000001 157 #define OETH_MIISTATUS_BUSY 0x00000002 158 #define OETH_MIISTATUS_NVALID 0x00000004 162 int rtems_open_eth_driver_attach (
163 struct rtems_bsdnet_ifconfig *
config,
Definition: deflate.c:115
Definition: open_eth.h:21
Definition: open_eth.h:28
Definition: open_eth.h:10