diff options
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index fa43aa059c43..7a93f8275c9d 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -53,6 +53,7 @@ | |||
53 | #include <asm/io.h> | 53 | #include <asm/io.h> |
54 | #include <asm/byteorder.h> | 54 | #include <asm/byteorder.h> |
55 | 55 | ||
56 | #include "netxen_nic_hdr.h" | ||
56 | #include "netxen_nic_hw.h" | 57 | #include "netxen_nic_hw.h" |
57 | 58 | ||
58 | #define _NETXEN_NIC_LINUX_MAJOR 4 | 59 | #define _NETXEN_NIC_LINUX_MAJOR 4 |
@@ -227,8 +228,6 @@ | |||
227 | #define MPORT_SINGLE_FUNCTION_MODE 0x1111 | 228 | #define MPORT_SINGLE_FUNCTION_MODE 0x1111 |
228 | #define MPORT_MULTI_FUNCTION_MODE 0x2222 | 229 | #define MPORT_MULTI_FUNCTION_MODE 0x2222 |
229 | 230 | ||
230 | #include "netxen_nic_phan_reg.h" | ||
231 | |||
232 | /* | 231 | /* |
233 | * NetXen host-peg signal message structure | 232 | * NetXen host-peg signal message structure |
234 | * | 233 | * |
@@ -503,17 +502,11 @@ struct netxen_skb_frag { | |||
503 | u64 length; | 502 | u64 length; |
504 | }; | 503 | }; |
505 | 504 | ||
506 | #define _netxen_set_bits(config_word, start, bits, val) {\ | 505 | struct netxen_recv_crb { |
507 | unsigned long long __tmask = (((1ULL << (bits)) - 1) << (start));\ | 506 | u32 crb_rcv_producer[NUM_RCV_DESC_RINGS]; |
508 | unsigned long long __tvalue = (val); \ | 507 | u32 crb_sts_consumer[NUM_STS_DESC_RINGS]; |
509 | (config_word) &= ~__tmask; \ | 508 | u32 sw_int_mask[NUM_STS_DESC_RINGS]; |
510 | (config_word) |= (((__tvalue) << (start)) & __tmask); \ | 509 | }; |
511 | } | ||
512 | |||
513 | #define _netxen_clear_bits(config_word, start, bits) {\ | ||
514 | unsigned long long __tmask = (((1ULL << (bits)) - 1) << (start)); \ | ||
515 | (config_word) &= ~__tmask; \ | ||
516 | } | ||
517 | 510 | ||
518 | /* Following defines are for the state of the buffers */ | 511 | /* Following defines are for the state of the buffers */ |
519 | #define NETXEN_BUFFER_FREE 0 | 512 | #define NETXEN_BUFFER_FREE 0 |
@@ -1194,6 +1187,18 @@ struct netxen_adapter { | |||
1194 | const struct firmware *fw; | 1187 | const struct firmware *fw; |
1195 | }; | 1188 | }; |
1196 | 1189 | ||
1190 | /* Set promiscuous mode for a GbE interface */ | ||
1191 | int netxen_niu_set_promiscuous_mode(struct netxen_adapter *adapter, u32 mode); | ||
1192 | int netxen_niu_xg_set_promiscuous_mode(struct netxen_adapter *adapter, | ||
1193 | u32 mode); | ||
1194 | /* Generic enable for GbE ports. Will detect the speed of the link. */ | ||
1195 | int netxen_niu_gbe_init_port(struct netxen_adapter *adapter, int port); | ||
1196 | int netxen_niu_xg_init_port(struct netxen_adapter *adapter, int port); | ||
1197 | |||
1198 | /* Disable a GbE interface */ | ||
1199 | int netxen_niu_disable_gbe_port(struct netxen_adapter *adapter); | ||
1200 | int netxen_niu_disable_xg_port(struct netxen_adapter *adapter); | ||
1201 | |||
1197 | int netxen_niu_xgbe_enable_phy_interrupts(struct netxen_adapter *adapter); | 1202 | int netxen_niu_xgbe_enable_phy_interrupts(struct netxen_adapter *adapter); |
1198 | int netxen_niu_gbe_enable_phy_interrupts(struct netxen_adapter *adapter); | 1203 | int netxen_niu_gbe_enable_phy_interrupts(struct netxen_adapter *adapter); |
1199 | int netxen_niu_xgbe_disable_phy_interrupts(struct netxen_adapter *adapter); | 1204 | int netxen_niu_xgbe_disable_phy_interrupts(struct netxen_adapter *adapter); |