diff options
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlge/qlge.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlge/qlge.h | 60 |
1 files changed, 29 insertions, 31 deletions
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge.h b/drivers/net/ethernet/qlogic/qlge/qlge.h index 899433778466..0c9c4e895595 100644 --- a/drivers/net/ethernet/qlogic/qlge/qlge.h +++ b/drivers/net/ethernet/qlogic/qlge/qlge.h | |||
@@ -18,7 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | #define DRV_NAME "qlge" | 19 | #define DRV_NAME "qlge" |
20 | #define DRV_STRING "QLogic 10 Gigabit PCI-E Ethernet Driver " | 20 | #define DRV_STRING "QLogic 10 Gigabit PCI-E Ethernet Driver " |
21 | #define DRV_VERSION "v1.00.00.32" | 21 | #define DRV_VERSION "1.00.00.33" |
22 | 22 | ||
23 | #define WQ_ADDR_ALIGN 0x3 /* 4 byte alignment */ | 23 | #define WQ_ADDR_ALIGN 0x3 /* 4 byte alignment */ |
24 | 24 | ||
@@ -2206,14 +2206,14 @@ extern char qlge_driver_name[]; | |||
2206 | extern const char qlge_driver_version[]; | 2206 | extern const char qlge_driver_version[]; |
2207 | extern const struct ethtool_ops qlge_ethtool_ops; | 2207 | extern const struct ethtool_ops qlge_ethtool_ops; |
2208 | 2208 | ||
2209 | extern int ql_sem_spinlock(struct ql_adapter *qdev, u32 sem_mask); | 2209 | int ql_sem_spinlock(struct ql_adapter *qdev, u32 sem_mask); |
2210 | extern void ql_sem_unlock(struct ql_adapter *qdev, u32 sem_mask); | 2210 | void ql_sem_unlock(struct ql_adapter *qdev, u32 sem_mask); |
2211 | extern int ql_read_xgmac_reg(struct ql_adapter *qdev, u32 reg, u32 *data); | 2211 | int ql_read_xgmac_reg(struct ql_adapter *qdev, u32 reg, u32 *data); |
2212 | extern int ql_get_mac_addr_reg(struct ql_adapter *qdev, u32 type, u16 index, | 2212 | int ql_get_mac_addr_reg(struct ql_adapter *qdev, u32 type, u16 index, |
2213 | u32 *value); | 2213 | u32 *value); |
2214 | extern int ql_get_routing_reg(struct ql_adapter *qdev, u32 index, u32 *value); | 2214 | int ql_get_routing_reg(struct ql_adapter *qdev, u32 index, u32 *value); |
2215 | extern int ql_write_cfg(struct ql_adapter *qdev, void *ptr, int size, u32 bit, | 2215 | int ql_write_cfg(struct ql_adapter *qdev, void *ptr, int size, u32 bit, |
2216 | u16 q_id); | 2216 | u16 q_id); |
2217 | void ql_queue_fw_error(struct ql_adapter *qdev); | 2217 | void ql_queue_fw_error(struct ql_adapter *qdev); |
2218 | void ql_mpi_work(struct work_struct *work); | 2218 | void ql_mpi_work(struct work_struct *work); |
2219 | void ql_mpi_reset_work(struct work_struct *work); | 2219 | void ql_mpi_reset_work(struct work_struct *work); |
@@ -2233,10 +2233,9 @@ int ql_unpause_mpi_risc(struct ql_adapter *qdev); | |||
2233 | int ql_pause_mpi_risc(struct ql_adapter *qdev); | 2233 | int ql_pause_mpi_risc(struct ql_adapter *qdev); |
2234 | int ql_hard_reset_mpi_risc(struct ql_adapter *qdev); | 2234 | int ql_hard_reset_mpi_risc(struct ql_adapter *qdev); |
2235 | int ql_soft_reset_mpi_risc(struct ql_adapter *qdev); | 2235 | int ql_soft_reset_mpi_risc(struct ql_adapter *qdev); |
2236 | int ql_dump_risc_ram_area(struct ql_adapter *qdev, void *buf, | 2236 | int ql_dump_risc_ram_area(struct ql_adapter *qdev, void *buf, u32 ram_addr, |
2237 | u32 ram_addr, int word_count); | 2237 | int word_count); |
2238 | int ql_core_dump(struct ql_adapter *qdev, | 2238 | int ql_core_dump(struct ql_adapter *qdev, struct ql_mpi_coredump *mpi_coredump); |
2239 | struct ql_mpi_coredump *mpi_coredump); | ||
2240 | int ql_mb_about_fw(struct ql_adapter *qdev); | 2239 | int ql_mb_about_fw(struct ql_adapter *qdev); |
2241 | int ql_mb_wol_set_magic(struct ql_adapter *qdev, u32 enable_wol); | 2240 | int ql_mb_wol_set_magic(struct ql_adapter *qdev, u32 enable_wol); |
2242 | int ql_mb_wol_mode(struct ql_adapter *qdev, u32 wol); | 2241 | int ql_mb_wol_mode(struct ql_adapter *qdev, u32 wol); |
@@ -2249,8 +2248,7 @@ int ql_mb_get_port_cfg(struct ql_adapter *qdev); | |||
2249 | int ql_mb_set_port_cfg(struct ql_adapter *qdev); | 2248 | int ql_mb_set_port_cfg(struct ql_adapter *qdev); |
2250 | int ql_wait_fifo_empty(struct ql_adapter *qdev); | 2249 | int ql_wait_fifo_empty(struct ql_adapter *qdev); |
2251 | void ql_get_dump(struct ql_adapter *qdev, void *buff); | 2250 | void ql_get_dump(struct ql_adapter *qdev, void *buff); |
2252 | void ql_gen_reg_dump(struct ql_adapter *qdev, | 2251 | void ql_gen_reg_dump(struct ql_adapter *qdev, struct ql_reg_dump *mpi_coredump); |
2253 | struct ql_reg_dump *mpi_coredump); | ||
2254 | netdev_tx_t ql_lb_send(struct sk_buff *skb, struct net_device *ndev); | 2252 | netdev_tx_t ql_lb_send(struct sk_buff *skb, struct net_device *ndev); |
2255 | void ql_check_lb_frame(struct ql_adapter *, struct sk_buff *); | 2253 | void ql_check_lb_frame(struct ql_adapter *, struct sk_buff *); |
2256 | int ql_own_firmware(struct ql_adapter *qdev); | 2254 | int ql_own_firmware(struct ql_adapter *qdev); |
@@ -2264,9 +2262,9 @@ int ql_clean_lb_rx_ring(struct rx_ring *rx_ring, int budget); | |||
2264 | /* #define QL_OB_DUMP */ | 2262 | /* #define QL_OB_DUMP */ |
2265 | 2263 | ||
2266 | #ifdef QL_REG_DUMP | 2264 | #ifdef QL_REG_DUMP |
2267 | extern void ql_dump_xgmac_control_regs(struct ql_adapter *qdev); | 2265 | void ql_dump_xgmac_control_regs(struct ql_adapter *qdev); |
2268 | extern void ql_dump_routing_entries(struct ql_adapter *qdev); | 2266 | void ql_dump_routing_entries(struct ql_adapter *qdev); |
2269 | extern void ql_dump_regs(struct ql_adapter *qdev); | 2267 | void ql_dump_regs(struct ql_adapter *qdev); |
2270 | #define QL_DUMP_REGS(qdev) ql_dump_regs(qdev) | 2268 | #define QL_DUMP_REGS(qdev) ql_dump_regs(qdev) |
2271 | #define QL_DUMP_ROUTE(qdev) ql_dump_routing_entries(qdev) | 2269 | #define QL_DUMP_ROUTE(qdev) ql_dump_routing_entries(qdev) |
2272 | #define QL_DUMP_XGMAC_CONTROL_REGS(qdev) ql_dump_xgmac_control_regs(qdev) | 2270 | #define QL_DUMP_XGMAC_CONTROL_REGS(qdev) ql_dump_xgmac_control_regs(qdev) |
@@ -2277,26 +2275,26 @@ extern void ql_dump_regs(struct ql_adapter *qdev); | |||
2277 | #endif | 2275 | #endif |
2278 | 2276 | ||
2279 | #ifdef QL_STAT_DUMP | 2277 | #ifdef QL_STAT_DUMP |
2280 | extern void ql_dump_stat(struct ql_adapter *qdev); | 2278 | void ql_dump_stat(struct ql_adapter *qdev); |
2281 | #define QL_DUMP_STAT(qdev) ql_dump_stat(qdev) | 2279 | #define QL_DUMP_STAT(qdev) ql_dump_stat(qdev) |
2282 | #else | 2280 | #else |
2283 | #define QL_DUMP_STAT(qdev) | 2281 | #define QL_DUMP_STAT(qdev) |
2284 | #endif | 2282 | #endif |
2285 | 2283 | ||
2286 | #ifdef QL_DEV_DUMP | 2284 | #ifdef QL_DEV_DUMP |
2287 | extern void ql_dump_qdev(struct ql_adapter *qdev); | 2285 | void ql_dump_qdev(struct ql_adapter *qdev); |
2288 | #define QL_DUMP_QDEV(qdev) ql_dump_qdev(qdev) | 2286 | #define QL_DUMP_QDEV(qdev) ql_dump_qdev(qdev) |
2289 | #else | 2287 | #else |
2290 | #define QL_DUMP_QDEV(qdev) | 2288 | #define QL_DUMP_QDEV(qdev) |
2291 | #endif | 2289 | #endif |
2292 | 2290 | ||
2293 | #ifdef QL_CB_DUMP | 2291 | #ifdef QL_CB_DUMP |
2294 | extern void ql_dump_wqicb(struct wqicb *wqicb); | 2292 | void ql_dump_wqicb(struct wqicb *wqicb); |
2295 | extern void ql_dump_tx_ring(struct tx_ring *tx_ring); | 2293 | void ql_dump_tx_ring(struct tx_ring *tx_ring); |
2296 | extern void ql_dump_ricb(struct ricb *ricb); | 2294 | void ql_dump_ricb(struct ricb *ricb); |
2297 | extern void ql_dump_cqicb(struct cqicb *cqicb); | 2295 | void ql_dump_cqicb(struct cqicb *cqicb); |
2298 | extern void ql_dump_rx_ring(struct rx_ring *rx_ring); | 2296 | void ql_dump_rx_ring(struct rx_ring *rx_ring); |
2299 | extern void ql_dump_hw_cb(struct ql_adapter *qdev, int size, u32 bit, u16 q_id); | 2297 | void ql_dump_hw_cb(struct ql_adapter *qdev, int size, u32 bit, u16 q_id); |
2300 | #define QL_DUMP_RICB(ricb) ql_dump_ricb(ricb) | 2298 | #define QL_DUMP_RICB(ricb) ql_dump_ricb(ricb) |
2301 | #define QL_DUMP_WQICB(wqicb) ql_dump_wqicb(wqicb) | 2299 | #define QL_DUMP_WQICB(wqicb) ql_dump_wqicb(wqicb) |
2302 | #define QL_DUMP_TX_RING(tx_ring) ql_dump_tx_ring(tx_ring) | 2300 | #define QL_DUMP_TX_RING(tx_ring) ql_dump_tx_ring(tx_ring) |
@@ -2314,9 +2312,9 @@ extern void ql_dump_hw_cb(struct ql_adapter *qdev, int size, u32 bit, u16 q_id); | |||
2314 | #endif | 2312 | #endif |
2315 | 2313 | ||
2316 | #ifdef QL_OB_DUMP | 2314 | #ifdef QL_OB_DUMP |
2317 | extern void ql_dump_tx_desc(struct tx_buf_desc *tbd); | 2315 | void ql_dump_tx_desc(struct tx_buf_desc *tbd); |
2318 | extern void ql_dump_ob_mac_iocb(struct ob_mac_iocb_req *ob_mac_iocb); | 2316 | void ql_dump_ob_mac_iocb(struct ob_mac_iocb_req *ob_mac_iocb); |
2319 | extern void ql_dump_ob_mac_rsp(struct ob_mac_iocb_rsp *ob_mac_rsp); | 2317 | void ql_dump_ob_mac_rsp(struct ob_mac_iocb_rsp *ob_mac_rsp); |
2320 | #define QL_DUMP_OB_MAC_IOCB(ob_mac_iocb) ql_dump_ob_mac_iocb(ob_mac_iocb) | 2318 | #define QL_DUMP_OB_MAC_IOCB(ob_mac_iocb) ql_dump_ob_mac_iocb(ob_mac_iocb) |
2321 | #define QL_DUMP_OB_MAC_RSP(ob_mac_rsp) ql_dump_ob_mac_rsp(ob_mac_rsp) | 2319 | #define QL_DUMP_OB_MAC_RSP(ob_mac_rsp) ql_dump_ob_mac_rsp(ob_mac_rsp) |
2322 | #else | 2320 | #else |
@@ -2325,14 +2323,14 @@ extern void ql_dump_ob_mac_rsp(struct ob_mac_iocb_rsp *ob_mac_rsp); | |||
2325 | #endif | 2323 | #endif |
2326 | 2324 | ||
2327 | #ifdef QL_IB_DUMP | 2325 | #ifdef QL_IB_DUMP |
2328 | extern void ql_dump_ib_mac_rsp(struct ib_mac_iocb_rsp *ib_mac_rsp); | 2326 | void ql_dump_ib_mac_rsp(struct ib_mac_iocb_rsp *ib_mac_rsp); |
2329 | #define QL_DUMP_IB_MAC_RSP(ib_mac_rsp) ql_dump_ib_mac_rsp(ib_mac_rsp) | 2327 | #define QL_DUMP_IB_MAC_RSP(ib_mac_rsp) ql_dump_ib_mac_rsp(ib_mac_rsp) |
2330 | #else | 2328 | #else |
2331 | #define QL_DUMP_IB_MAC_RSP(ib_mac_rsp) | 2329 | #define QL_DUMP_IB_MAC_RSP(ib_mac_rsp) |
2332 | #endif | 2330 | #endif |
2333 | 2331 | ||
2334 | #ifdef QL_ALL_DUMP | 2332 | #ifdef QL_ALL_DUMP |
2335 | extern void ql_dump_all(struct ql_adapter *qdev); | 2333 | void ql_dump_all(struct ql_adapter *qdev); |
2336 | #define QL_DUMP_ALL(qdev) ql_dump_all(qdev) | 2334 | #define QL_DUMP_ALL(qdev) ql_dump_all(qdev) |
2337 | #else | 2335 | #else |
2338 | #define QL_DUMP_ALL(qdev) | 2336 | #define QL_DUMP_ALL(qdev) |