diff options
Diffstat (limited to 'drivers/net/via-velocity.h')
-rw-r--r-- | drivers/net/via-velocity.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/net/via-velocity.h b/drivers/net/via-velocity.h index 2f00c13ab502..ef4a0f64ba16 100644 --- a/drivers/net/via-velocity.h +++ b/drivers/net/via-velocity.h | |||
@@ -29,9 +29,10 @@ | |||
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.14" | 32 | #define VELOCITY_VERSION "1.15" |
33 | 33 | ||
34 | #define VELOCITY_IO_SIZE 256 | 34 | #define VELOCITY_IO_SIZE 256 |
35 | #define VELOCITY_NAPI_WEIGHT 64 | ||
35 | 36 | ||
36 | #define PKT_BUF_SZ 1540 | 37 | #define PKT_BUF_SZ 1540 |
37 | 38 | ||
@@ -1005,7 +1006,8 @@ struct mac_regs { | |||
1005 | 1006 | ||
1006 | volatile __le32 RDBaseLo; /* 0x38 */ | 1007 | volatile __le32 RDBaseLo; /* 0x38 */ |
1007 | volatile __le16 RDIdx; /* 0x3C */ | 1008 | volatile __le16 RDIdx; /* 0x3C */ |
1008 | volatile __le16 reserved_3E; | 1009 | volatile u8 TQETMR; /* 0x3E, VT3216 and above only */ |
1010 | volatile u8 RQETMR; /* 0x3F, VT3216 and above only */ | ||
1009 | 1011 | ||
1010 | volatile __le32 TDBaseLo[4]; /* 0x40 */ | 1012 | volatile __le32 TDBaseLo[4]; /* 0x40 */ |
1011 | 1013 | ||
@@ -1421,7 +1423,6 @@ enum velocity_msg_level { | |||
1421 | */ | 1423 | */ |
1422 | 1424 | ||
1423 | #define VELOCITY_FLAGS_TAGGING 0x00000001UL | 1425 | #define VELOCITY_FLAGS_TAGGING 0x00000001UL |
1424 | #define VELOCITY_FLAGS_TX_CSUM 0x00000002UL | ||
1425 | #define VELOCITY_FLAGS_RX_CSUM 0x00000004UL | 1426 | #define VELOCITY_FLAGS_RX_CSUM 0x00000004UL |
1426 | #define VELOCITY_FLAGS_IP_ALIGN 0x00000008UL | 1427 | #define VELOCITY_FLAGS_IP_ALIGN 0x00000008UL |
1427 | #define VELOCITY_FLAGS_VAL_PKT_LEN 0x00000010UL | 1428 | #define VELOCITY_FLAGS_VAL_PKT_LEN 0x00000010UL |
@@ -1491,6 +1492,10 @@ struct velocity_opt { | |||
1491 | int rx_bandwidth_hi; | 1492 | int rx_bandwidth_hi; |
1492 | int rx_bandwidth_lo; | 1493 | int rx_bandwidth_lo; |
1493 | int rx_bandwidth_en; | 1494 | int rx_bandwidth_en; |
1495 | int rxqueue_timer; | ||
1496 | int txqueue_timer; | ||
1497 | int tx_intsup; | ||
1498 | int rx_intsup; | ||
1494 | u32 flags; | 1499 | u32 flags; |
1495 | }; | 1500 | }; |
1496 | 1501 | ||
@@ -1499,8 +1504,6 @@ struct velocity_opt { | |||
1499 | #define GET_RD_BY_IDX(vptr, idx) (vptr->rd_ring[idx]) | 1504 | #define GET_RD_BY_IDX(vptr, idx) (vptr->rd_ring[idx]) |
1500 | 1505 | ||
1501 | struct velocity_info { | 1506 | struct velocity_info { |
1502 | struct list_head list; | ||
1503 | |||
1504 | struct pci_dev *pdev; | 1507 | struct pci_dev *pdev; |
1505 | struct net_device *dev; | 1508 | struct net_device *dev; |
1506 | 1509 | ||
@@ -1559,6 +1562,8 @@ struct velocity_info { | |||
1559 | u32 ticks; | 1562 | u32 ticks; |
1560 | 1563 | ||
1561 | u8 rev_id; | 1564 | u8 rev_id; |
1565 | |||
1566 | struct napi_struct napi; | ||
1562 | }; | 1567 | }; |
1563 | 1568 | ||
1564 | /** | 1569 | /** |