diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-08-24 15:23:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-26 18:29:19 -0400 |
commit | 3ad4467ca43e7a2556e26e4e304faf3385048834 (patch) | |
tree | 5b3e263674604ec0f15211f3de10d3cc65e93f63 /drivers/net/netxen/netxen_nic.h | |
parent | c9517e5893db03ca8bd32b8783b39af58176947c (diff) |
netxen: remove netxen_nic_niu.c
Consolidate all MAC/PHY access functions into netxen_nic_hw.c
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.h | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index 061e8aa419b0..63e2f793ae0e 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -684,7 +684,19 @@ struct netxen_recv_context { | |||
684 | #define NX_CDRP_CMD_GET_STATISTICS 0x0000000f | 684 | #define NX_CDRP_CMD_GET_STATISTICS 0x0000000f |
685 | #define NX_CDRP_CMD_DELETE_STATISTICS 0x00000010 | 685 | #define NX_CDRP_CMD_DELETE_STATISTICS 0x00000010 |
686 | #define NX_CDRP_CMD_SET_MTU 0x00000012 | 686 | #define NX_CDRP_CMD_SET_MTU 0x00000012 |
687 | #define NX_CDRP_CMD_MAX 0x00000013 | 687 | #define NX_CDRP_CMD_READ_PHY 0x00000013 |
688 | #define NX_CDRP_CMD_WRITE_PHY 0x00000014 | ||
689 | #define NX_CDRP_CMD_READ_HW_REG 0x00000015 | ||
690 | #define NX_CDRP_CMD_GET_FLOW_CTL 0x00000016 | ||
691 | #define NX_CDRP_CMD_SET_FLOW_CTL 0x00000017 | ||
692 | #define NX_CDRP_CMD_READ_MAX_MTU 0x00000018 | ||
693 | #define NX_CDRP_CMD_READ_MAX_LRO 0x00000019 | ||
694 | #define NX_CDRP_CMD_CONFIGURE_TOE 0x0000001a | ||
695 | #define NX_CDRP_CMD_FUNC_ATTRIB 0x0000001b | ||
696 | #define NX_CDRP_CMD_READ_PEXQ_PARAMETERS 0x0000001c | ||
697 | #define NX_CDRP_CMD_GET_LIC_CAPABILITIES 0x0000001d | ||
698 | #define NX_CDRP_CMD_READ_MAX_LRO_PER_BOARD 0x0000001e | ||
699 | #define NX_CDRP_CMD_MAX 0x0000001f | ||
688 | 700 | ||
689 | #define NX_RCODE_SUCCESS 0 | 701 | #define NX_RCODE_SUCCESS 0 |
690 | #define NX_RCODE_NO_HOST_MEM 1 | 702 | #define NX_RCODE_NO_HOST_MEM 1 |
@@ -1152,8 +1164,8 @@ struct netxen_adapter { | |||
1152 | int (*set_mtu) (struct netxen_adapter *, int); | 1164 | int (*set_mtu) (struct netxen_adapter *, int); |
1153 | int (*set_promisc) (struct netxen_adapter *, u32); | 1165 | int (*set_promisc) (struct netxen_adapter *, u32); |
1154 | void (*set_multi) (struct net_device *); | 1166 | void (*set_multi) (struct net_device *); |
1155 | int (*phy_read) (struct netxen_adapter *, long reg, u32 *); | 1167 | int (*phy_read) (struct netxen_adapter *, u32 reg, u32 *); |
1156 | int (*phy_write) (struct netxen_adapter *, long reg, u32 val); | 1168 | int (*phy_write) (struct netxen_adapter *, u32 reg, u32 val); |
1157 | int (*init_port) (struct netxen_adapter *, int); | 1169 | int (*init_port) (struct netxen_adapter *, int); |
1158 | int (*stop_port) (struct netxen_adapter *); | 1170 | int (*stop_port) (struct netxen_adapter *); |
1159 | 1171 | ||
@@ -1185,15 +1197,11 @@ struct netxen_adapter { | |||
1185 | const struct firmware *fw; | 1197 | const struct firmware *fw; |
1186 | }; | 1198 | }; |
1187 | 1199 | ||
1188 | int netxen_niu_xg_set_promiscuous_mode(struct netxen_adapter *adapter, | ||
1189 | u32 mode); | ||
1190 | int netxen_niu_xg_init_port(struct netxen_adapter *adapter, int port); | 1200 | int netxen_niu_xg_init_port(struct netxen_adapter *adapter, int port); |
1191 | int netxen_niu_disable_xg_port(struct netxen_adapter *adapter); | 1201 | int netxen_niu_disable_xg_port(struct netxen_adapter *adapter); |
1192 | 1202 | ||
1193 | int netxen_niu_gbe_phy_read(struct netxen_adapter *adapter, long reg, | 1203 | int nx_fw_cmd_query_phy(struct netxen_adapter *adapter, u32 reg, u32 *val); |
1194 | __u32 * readval); | 1204 | int nx_fw_cmd_set_phy(struct netxen_adapter *adapter, u32 reg, u32 val); |
1195 | int netxen_niu_gbe_phy_write(struct netxen_adapter *adapter, | ||
1196 | long reg, __u32 val); | ||
1197 | 1205 | ||
1198 | /* Functions available from netxen_nic_hw.c */ | 1206 | /* Functions available from netxen_nic_hw.c */ |
1199 | int netxen_nic_set_mtu_xgb(struct netxen_adapter *adapter, int new_mtu); | 1207 | int netxen_nic_set_mtu_xgb(struct netxen_adapter *adapter, int new_mtu); |
@@ -1313,6 +1321,7 @@ int netxen_process_rcv_ring(struct nx_host_sds_ring *sds_ring, int max); | |||
1313 | void netxen_p2_nic_set_multi(struct net_device *netdev); | 1321 | void netxen_p2_nic_set_multi(struct net_device *netdev); |
1314 | void netxen_p3_nic_set_multi(struct net_device *netdev); | 1322 | void netxen_p3_nic_set_multi(struct net_device *netdev); |
1315 | void netxen_p3_free_mac_list(struct netxen_adapter *adapter); | 1323 | void netxen_p3_free_mac_list(struct netxen_adapter *adapter); |
1324 | int netxen_p2_nic_set_promisc(struct netxen_adapter *adapter, u32 mode); | ||
1316 | int netxen_p3_nic_set_promisc(struct netxen_adapter *adapter, u32); | 1325 | int netxen_p3_nic_set_promisc(struct netxen_adapter *adapter, u32); |
1317 | int netxen_config_intr_coalesce(struct netxen_adapter *adapter); | 1326 | int netxen_config_intr_coalesce(struct netxen_adapter *adapter); |
1318 | int netxen_config_rss(struct netxen_adapter *adapter, int enable); | 1327 | int netxen_config_rss(struct netxen_adapter *adapter, int enable); |