diff options
author | Michael Chan <mchan@broadcom.com> | 2009-10-10 09:46:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-12 02:30:14 -0400 |
commit | 993ac7b5183f82edc9696cd17faae03523e00e09 (patch) | |
tree | b57561971c47a3529d646389dc58b9ec890543d4 /drivers/net/cnic_if.h | |
parent | 37b091bacba7bd329eced9a56998b6247da414c4 (diff) |
bnx2x: Add main CNIC interface functions.
Add the main CNIC registration, callback, MAC addr. setup functions.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Shmulik Ravid - Rabinovitz <shmulikr@broadcom.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cnic_if.h')
-rw-r--r-- | drivers/net/cnic_if.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/net/cnic_if.h b/drivers/net/cnic_if.h index d8b09efdcb52..8aaf98bdd4f7 100644 --- a/drivers/net/cnic_if.h +++ b/drivers/net/cnic_if.h | |||
@@ -12,8 +12,8 @@ | |||
12 | #ifndef CNIC_IF_H | 12 | #ifndef CNIC_IF_H |
13 | #define CNIC_IF_H | 13 | #define CNIC_IF_H |
14 | 14 | ||
15 | #define CNIC_MODULE_VERSION "2.0.1" | 15 | #define CNIC_MODULE_VERSION "2.1.0" |
16 | #define CNIC_MODULE_RELDATE "Oct 01, 2009" | 16 | #define CNIC_MODULE_RELDATE "Oct 10, 2009" |
17 | 17 | ||
18 | #define CNIC_ULP_RDMA 0 | 18 | #define CNIC_ULP_RDMA 0 |
19 | #define CNIC_ULP_ISCSI 1 | 19 | #define CNIC_ULP_ISCSI 1 |
@@ -81,6 +81,8 @@ struct kcqe { | |||
81 | #define DRV_CTL_CTX_WR_CMD 0x103 | 81 | #define DRV_CTL_CTX_WR_CMD 0x103 |
82 | #define DRV_CTL_CTXTBL_WR_CMD 0x104 | 82 | #define DRV_CTL_CTXTBL_WR_CMD 0x104 |
83 | #define DRV_CTL_COMPLETION_CMD 0x105 | 83 | #define DRV_CTL_COMPLETION_CMD 0x105 |
84 | #define DRV_CTL_START_L2_CMD 0x106 | ||
85 | #define DRV_CTL_STOP_L2_CMD 0x107 | ||
84 | 86 | ||
85 | struct cnic_ctl_completion { | 87 | struct cnic_ctl_completion { |
86 | u32 cid; | 88 | u32 cid; |
@@ -105,11 +107,17 @@ struct drv_ctl_io { | |||
105 | dma_addr_t dma_addr; | 107 | dma_addr_t dma_addr; |
106 | }; | 108 | }; |
107 | 109 | ||
110 | struct drv_ctl_l2_ring { | ||
111 | u32 client_id; | ||
112 | u32 cid; | ||
113 | }; | ||
114 | |||
108 | struct drv_ctl_info { | 115 | struct drv_ctl_info { |
109 | int cmd; | 116 | int cmd; |
110 | union { | 117 | union { |
111 | struct drv_ctl_completion comp; | 118 | struct drv_ctl_completion comp; |
112 | struct drv_ctl_io io; | 119 | struct drv_ctl_io io; |
120 | struct drv_ctl_l2_ring ring; | ||
113 | char bytes[MAX_DRV_CTL_DATA]; | 121 | char bytes[MAX_DRV_CTL_DATA]; |
114 | } data; | 122 | } data; |
115 | }; | 123 | }; |
@@ -143,6 +151,7 @@ struct cnic_eth_dev { | |||
143 | u32 max_kwqe_pending; | 151 | u32 max_kwqe_pending; |
144 | struct pci_dev *pdev; | 152 | struct pci_dev *pdev; |
145 | void __iomem *io_base; | 153 | void __iomem *io_base; |
154 | void __iomem *io_base2; | ||
146 | 155 | ||
147 | u32 ctx_tbl_offset; | 156 | u32 ctx_tbl_offset; |
148 | u32 ctx_tbl_len; | 157 | u32 ctx_tbl_len; |
@@ -298,5 +307,6 @@ extern int cnic_register_driver(int ulp_type, struct cnic_ulp_ops *ulp_ops); | |||
298 | extern int cnic_unregister_driver(int ulp_type); | 307 | extern int cnic_unregister_driver(int ulp_type); |
299 | 308 | ||
300 | extern struct cnic_eth_dev *bnx2_cnic_probe(struct net_device *dev); | 309 | extern struct cnic_eth_dev *bnx2_cnic_probe(struct net_device *dev); |
310 | extern struct cnic_eth_dev *bnx2x_cnic_probe(struct net_device *dev); | ||
301 | 311 | ||
302 | #endif | 312 | #endif |