aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/qlge/qlge.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlge/qlge.h')
-rw-r--r--drivers/net/ethernet/qlogic/qlge/qlge.h60
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[];
2206extern const char qlge_driver_version[]; 2206extern const char qlge_driver_version[];
2207extern const struct ethtool_ops qlge_ethtool_ops; 2207extern const struct ethtool_ops qlge_ethtool_ops;
2208 2208
2209extern int ql_sem_spinlock(struct ql_adapter *qdev, u32 sem_mask); 2209int ql_sem_spinlock(struct ql_adapter *qdev, u32 sem_mask);
2210extern void ql_sem_unlock(struct ql_adapter *qdev, u32 sem_mask); 2210void ql_sem_unlock(struct ql_adapter *qdev, u32 sem_mask);
2211extern int ql_read_xgmac_reg(struct ql_adapter *qdev, u32 reg, u32 *data); 2211int ql_read_xgmac_reg(struct ql_adapter *qdev, u32 reg, u32 *data);
2212extern int ql_get_mac_addr_reg(struct ql_adapter *qdev, u32 type, u16 index, 2212int ql_get_mac_addr_reg(struct ql_adapter *qdev, u32 type, u16 index,
2213 u32 *value); 2213 u32 *value);
2214extern int ql_get_routing_reg(struct ql_adapter *qdev, u32 index, u32 *value); 2214int ql_get_routing_reg(struct ql_adapter *qdev, u32 index, u32 *value);
2215extern int ql_write_cfg(struct ql_adapter *qdev, void *ptr, int size, u32 bit, 2215int ql_write_cfg(struct ql_adapter *qdev, void *ptr, int size, u32 bit,
2216 u16 q_id); 2216 u16 q_id);
2217void ql_queue_fw_error(struct ql_adapter *qdev); 2217void ql_queue_fw_error(struct ql_adapter *qdev);
2218void ql_mpi_work(struct work_struct *work); 2218void ql_mpi_work(struct work_struct *work);
2219void ql_mpi_reset_work(struct work_struct *work); 2219void ql_mpi_reset_work(struct work_struct *work);
@@ -2233,10 +2233,9 @@ int ql_unpause_mpi_risc(struct ql_adapter *qdev);
2233int ql_pause_mpi_risc(struct ql_adapter *qdev); 2233int ql_pause_mpi_risc(struct ql_adapter *qdev);
2234int ql_hard_reset_mpi_risc(struct ql_adapter *qdev); 2234int ql_hard_reset_mpi_risc(struct ql_adapter *qdev);
2235int ql_soft_reset_mpi_risc(struct ql_adapter *qdev); 2235int ql_soft_reset_mpi_risc(struct ql_adapter *qdev);
2236int ql_dump_risc_ram_area(struct ql_adapter *qdev, void *buf, 2236int 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);
2238int ql_core_dump(struct ql_adapter *qdev, 2238int ql_core_dump(struct ql_adapter *qdev, struct ql_mpi_coredump *mpi_coredump);
2239 struct ql_mpi_coredump *mpi_coredump);
2240int ql_mb_about_fw(struct ql_adapter *qdev); 2239int ql_mb_about_fw(struct ql_adapter *qdev);
2241int ql_mb_wol_set_magic(struct ql_adapter *qdev, u32 enable_wol); 2240int ql_mb_wol_set_magic(struct ql_adapter *qdev, u32 enable_wol);
2242int ql_mb_wol_mode(struct ql_adapter *qdev, u32 wol); 2241int ql_mb_wol_mode(struct ql_adapter *qdev, u32 wol);
@@ -2249,8 +2248,7 @@ int ql_mb_get_port_cfg(struct ql_adapter *qdev);
2249int ql_mb_set_port_cfg(struct ql_adapter *qdev); 2248int ql_mb_set_port_cfg(struct ql_adapter *qdev);
2250int ql_wait_fifo_empty(struct ql_adapter *qdev); 2249int ql_wait_fifo_empty(struct ql_adapter *qdev);
2251void ql_get_dump(struct ql_adapter *qdev, void *buff); 2250void ql_get_dump(struct ql_adapter *qdev, void *buff);
2252void ql_gen_reg_dump(struct ql_adapter *qdev, 2251void ql_gen_reg_dump(struct ql_adapter *qdev, struct ql_reg_dump *mpi_coredump);
2253 struct ql_reg_dump *mpi_coredump);
2254netdev_tx_t ql_lb_send(struct sk_buff *skb, struct net_device *ndev); 2252netdev_tx_t ql_lb_send(struct sk_buff *skb, struct net_device *ndev);
2255void ql_check_lb_frame(struct ql_adapter *, struct sk_buff *); 2253void ql_check_lb_frame(struct ql_adapter *, struct sk_buff *);
2256int ql_own_firmware(struct ql_adapter *qdev); 2254int 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
2267extern void ql_dump_xgmac_control_regs(struct ql_adapter *qdev); 2265void ql_dump_xgmac_control_regs(struct ql_adapter *qdev);
2268extern void ql_dump_routing_entries(struct ql_adapter *qdev); 2266void ql_dump_routing_entries(struct ql_adapter *qdev);
2269extern void ql_dump_regs(struct ql_adapter *qdev); 2267void 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
2280extern void ql_dump_stat(struct ql_adapter *qdev); 2278void 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
2287extern void ql_dump_qdev(struct ql_adapter *qdev); 2285void 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
2294extern void ql_dump_wqicb(struct wqicb *wqicb); 2292void ql_dump_wqicb(struct wqicb *wqicb);
2295extern void ql_dump_tx_ring(struct tx_ring *tx_ring); 2293void ql_dump_tx_ring(struct tx_ring *tx_ring);
2296extern void ql_dump_ricb(struct ricb *ricb); 2294void ql_dump_ricb(struct ricb *ricb);
2297extern void ql_dump_cqicb(struct cqicb *cqicb); 2295void ql_dump_cqicb(struct cqicb *cqicb);
2298extern void ql_dump_rx_ring(struct rx_ring *rx_ring); 2296void ql_dump_rx_ring(struct rx_ring *rx_ring);
2299extern void ql_dump_hw_cb(struct ql_adapter *qdev, int size, u32 bit, u16 q_id); 2297void 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
2317extern void ql_dump_tx_desc(struct tx_buf_desc *tbd); 2315void ql_dump_tx_desc(struct tx_buf_desc *tbd);
2318extern void ql_dump_ob_mac_iocb(struct ob_mac_iocb_req *ob_mac_iocb); 2316void ql_dump_ob_mac_iocb(struct ob_mac_iocb_req *ob_mac_iocb);
2319extern void ql_dump_ob_mac_rsp(struct ob_mac_iocb_rsp *ob_mac_rsp); 2317void 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
2328extern void ql_dump_ib_mac_rsp(struct ib_mac_iocb_rsp *ib_mac_rsp); 2326void 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
2335extern void ql_dump_all(struct ql_adapter *qdev); 2333void 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)