diff options
Diffstat (limited to 'drivers/net/via-velocity.h')
-rw-r--r-- | drivers/net/via-velocity.h | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/drivers/net/via-velocity.h b/drivers/net/via-velocity.h index f1b2640ebdc6..b9e114d36c0f 100644 --- a/drivers/net/via-velocity.h +++ b/drivers/net/via-velocity.h | |||
@@ -29,7 +29,9 @@ | |||
29 | 29 | ||
30 | #define VELOCITY_NAME "via-velocity" | 30 | #define VELOCITY_NAME "via-velocity" |
31 | #define VELOCITY_FULL_DRV_NAM "VIA Networking Velocity Family Gigabit Ethernet Adapter Driver" | 31 | #define VELOCITY_FULL_DRV_NAM "VIA Networking Velocity Family Gigabit Ethernet Adapter Driver" |
32 | #define VELOCITY_VERSION "1.13" | 32 | #define VELOCITY_VERSION "1.14" |
33 | |||
34 | #define VELOCITY_IO_SIZE 256 | ||
33 | 35 | ||
34 | #define PKT_BUF_SZ 1540 | 36 | #define PKT_BUF_SZ 1540 |
35 | 37 | ||
@@ -244,7 +246,7 @@ struct tdesc1 { | |||
244 | struct td_buf { | 246 | struct td_buf { |
245 | u32 pa_low; | 247 | u32 pa_low; |
246 | u16 pa_high; | 248 | u16 pa_high; |
247 | u16 bufsize:14; | 249 | u16 bufsize:14; |
248 | u16 reserved:1; | 250 | u16 reserved:1; |
249 | u16 queue:1; | 251 | u16 queue:1; |
250 | } __attribute__ ((__packed__)); | 252 | } __attribute__ ((__packed__)); |
@@ -260,25 +262,6 @@ struct velocity_rd_info { | |||
260 | dma_addr_t skb_dma; | 262 | dma_addr_t skb_dma; |
261 | }; | 263 | }; |
262 | 264 | ||
263 | /** | ||
264 | * alloc_rd_info - allocate an rd info block | ||
265 | * | ||
266 | * Alocate and initialize a receive info structure used for keeping | ||
267 | * track of kernel side information related to each receive | ||
268 | * descriptor we are using | ||
269 | */ | ||
270 | |||
271 | static inline struct velocity_rd_info *alloc_rd_info(void) | ||
272 | { | ||
273 | struct velocity_rd_info *ptr; | ||
274 | if ((ptr = kmalloc(sizeof(struct velocity_rd_info), GFP_ATOMIC)) == NULL) | ||
275 | return NULL; | ||
276 | else { | ||
277 | memset(ptr, 0, sizeof(struct velocity_rd_info)); | ||
278 | return ptr; | ||
279 | } | ||
280 | } | ||
281 | |||
282 | /* | 265 | /* |
283 | * Used to track transmit side buffers. | 266 | * Used to track transmit side buffers. |
284 | */ | 267 | */ |
@@ -1191,7 +1174,6 @@ enum chip_type { | |||
1191 | struct velocity_info_tbl { | 1174 | struct velocity_info_tbl { |
1192 | enum chip_type chip_id; | 1175 | enum chip_type chip_id; |
1193 | char *name; | 1176 | char *name; |
1194 | int io_size; | ||
1195 | int txqueue; | 1177 | int txqueue; |
1196 | u32 flags; | 1178 | u32 flags; |
1197 | }; | 1179 | }; |
@@ -1751,7 +1733,6 @@ struct velocity_info { | |||
1751 | struct mac_regs __iomem * mac_regs; | 1733 | struct mac_regs __iomem * mac_regs; |
1752 | unsigned long memaddr; | 1734 | unsigned long memaddr; |
1753 | unsigned long ioaddr; | 1735 | unsigned long ioaddr; |
1754 | u32 io_size; | ||
1755 | 1736 | ||
1756 | u8 rev_id; | 1737 | u8 rev_id; |
1757 | 1738 | ||