aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic.h
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-03-09 04:50:56 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-10 08:10:04 -0400
commit1e2d0059fc24c84356721c16c2ad0590c38015a0 (patch)
treed968ab1ea6c4a7b3fe95cb75686576d57c0ab2e9 /drivers/net/netxen/netxen_nic.h
parentbecf46a012db667c562bbbe589c14e100b62e5a4 (diff)
netxen: annotate board_config and board_type
Remove huge board config structure from each instance, read only necessary fields from flash. Replace board_type with port_type (1G/10G), there's another board_type field describing card type (SFP/XFP/CX4). Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r--drivers/net/netxen/netxen_nic.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h
index cde8e70b6b08..618507074bdd 100644
--- a/drivers/net/netxen/netxen_nic.h
+++ b/drivers/net/netxen/netxen_nic.h
@@ -90,7 +90,6 @@
90 (sizeof(struct netxen_rx_buffer) * rds_ring->max_rx_desc_count) 90 (sizeof(struct netxen_rx_buffer) * rds_ring->max_rx_desc_count)
91#define find_diff_among(a,b,range) ((a)<(b)?((b)-(a)):((b)+(range)-(a))) 91#define find_diff_among(a,b,range) ((a)<(b)?((b)-(a)):((b)+(range)-(a)))
92 92
93#define NETXEN_NETDEV_STATUS 0x1
94#define NETXEN_RCV_PRODUCER_OFFSET 0 93#define NETXEN_RCV_PRODUCER_OFFSET 0
95#define NETXEN_RCV_PEG_DB_ID 2 94#define NETXEN_RCV_PEG_DB_ID 2
96#define NETXEN_HOST_DUMMY_DMA_SIZE 1024 95#define NETXEN_HOST_DUMMY_DMA_SIZE 1024
@@ -795,21 +794,19 @@ struct netxen_hardware_context {
795 void __iomem *pci_base0; 794 void __iomem *pci_base0;
796 void __iomem *pci_base1; 795 void __iomem *pci_base1;
797 void __iomem *pci_base2; 796 void __iomem *pci_base2;
798 unsigned long first_page_group_end;
799 unsigned long first_page_group_start;
800 void __iomem *db_base; 797 void __iomem *db_base;
801 unsigned long db_len; 798 unsigned long db_len;
802 unsigned long pci_len0; 799 unsigned long pci_len0;
803 800
804 u8 cut_through;
805 int qdr_sn_window; 801 int qdr_sn_window;
806 int ddr_mn_window; 802 int ddr_mn_window;
807 unsigned long mn_win_crb; 803 unsigned long mn_win_crb;
808 unsigned long ms_win_crb; 804 unsigned long ms_win_crb;
809 805
806 u8 cut_through;
810 u8 revision_id; 807 u8 revision_id;
811 u16 board_type; 808 u16 port_type;
812 struct netxen_board_info boardcfg; 809 int board_type;
813 u32 linkup; 810 u32 linkup;
814 /* Address of cmd ring in Phantom */ 811 /* Address of cmd ring in Phantom */
815 struct cmd_desc_type0 *cmd_desc_head; 812 struct cmd_desc_type0 *cmd_desc_head;
@@ -1260,6 +1257,7 @@ struct netxen_adapter {
1260 u32 temp; 1257 u32 temp;
1261 1258
1262 u32 fw_major; 1259 u32 fw_major;
1260 u32 fw_version;
1263 1261
1264 u8 msix_supported; 1262 u8 msix_supported;
1265 u8 max_possible_rss_rings; 1263 u8 max_possible_rss_rings;
@@ -1272,7 +1270,6 @@ struct netxen_adapter {
1272 u16 state; 1270 u16 state;
1273 u16 link_autoneg; 1271 u16 link_autoneg;
1274 int rx_csum; 1272 int rx_csum;
1275 int status;
1276 1273
1277 struct netxen_cmd_buffer *cmd_buf_arr; /* Command buffers for xmit */ 1274 struct netxen_cmd_buffer *cmd_buf_arr; /* Command buffers for xmit */
1278 1275
@@ -1391,6 +1388,7 @@ void netxen_nic_write_w1(struct netxen_adapter *adapter, u32 index, u32 value);
1391void netxen_nic_read_w1(struct netxen_adapter *adapter, u32 index, u32 *value); 1388void netxen_nic_read_w1(struct netxen_adapter *adapter, u32 index, u32 *value);
1392 1389
1393int netxen_nic_get_board_info(struct netxen_adapter *adapter); 1390int netxen_nic_get_board_info(struct netxen_adapter *adapter);
1391void netxen_nic_get_firmware_info(struct netxen_adapter *adapter);
1394 1392
1395int netxen_nic_hw_read_wx_128M(struct netxen_adapter *adapter, 1393int netxen_nic_hw_read_wx_128M(struct netxen_adapter *adapter,
1396 ulong off, void *data, int len); 1394 ulong off, void *data, int len);