Go to the documentation of this file.
8 #include <linux/netdevice.h>
34 #define netdev2softing(netdev) ((struct softing_priv *)netdev_priv(netdev))
104 #define DPRAM_RX 0x0000
105 #define DPRAM_RX_SIZE 32
106 #define DPRAM_RX_CNT 16
107 #define DPRAM_RX_RD 0x0201
108 #define DPRAM_RX_WR 0x0205
109 #define DPRAM_RX_LOST 0x0207
111 #define DPRAM_FCT_PARAM 0x0300
112 #define DPRAM_FCT_RESULT 0x0328
113 #define DPRAM_FCT_HOST 0x032b
115 #define DPRAM_INFO_BUSSTATE 0x0331
116 #define DPRAM_INFO_BUSSTATE2 0x0335
117 #define DPRAM_INFO_ERRSTATE 0x0339
118 #define DPRAM_INFO_ERRSTATE2 0x033d
119 #define DPRAM_RESET 0x0341
120 #define DPRAM_CLR_RECV_FIFO 0x0345
121 #define DPRAM_RESET_TIME 0x034d
122 #define DPRAM_TIME 0x0350
123 #define DPRAM_WR_START 0x0358
124 #define DPRAM_WR_END 0x0359
125 #define DPRAM_RESET_RX_FIFO 0x0361
126 #define DPRAM_RESET_TX_FIFO 0x0364
127 #define DPRAM_READ_FIFO_LEVEL 0x0365
128 #define DPRAM_RX_FIFO_LEVEL 0x0366
129 #define DPRAM_TX_FIFO_LEVEL 0x0366
131 #define DPRAM_TX 0x0400
132 #define DPRAM_TX_SIZE 16
133 #define DPRAM_TX_CNT 32
134 #define DPRAM_TX_RD 0x0601
135 #define DPRAM_TX_WR 0x0605
137 #define DPRAM_COMMAND 0x07e0
138 #define DPRAM_RECEIPT 0x07f0
139 #define DPRAM_IRQ_TOHOST 0x07fe
140 #define DPRAM_IRQ_TOCARD 0x07ff
142 #define DPRAM_V2_RESET 0x0e00
143 #define DPRAM_V2_IRQ_TOHOST 0x0e02
145 #define TXMAX (DPRAM_TX_CNT - 1)
151 #define RES_UNKNOWN 3
158 #define CMD_BUS2 0x80
161 #define SF_MASK_BUSOFF 0x80
162 #define SF_MASK_EPASSIVE 0x60
165 #define STATE_BUSOFF 2
166 #define STATE_EPASSIVE 1
167 #define STATE_EACTIVE 0