diff options
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index b996cb38ecb5..923ae6c029d6 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -205,6 +205,7 @@ enum { | |||
205 | 205 | ||
206 | #define MAX_CMD_DESCRIPTORS 1024 | 206 | #define MAX_CMD_DESCRIPTORS 1024 |
207 | #define MAX_RCV_DESCRIPTORS 16384 | 207 | #define MAX_RCV_DESCRIPTORS 16384 |
208 | #define MAX_RCV_DESCRIPTORS_1G (MAX_RCV_DESCRIPTORS / 4) | ||
208 | #define MAX_JUMBO_RCV_DESCRIPTORS 1024 | 209 | #define MAX_JUMBO_RCV_DESCRIPTORS 1024 |
209 | #define MAX_LRO_RCV_DESCRIPTORS 64 | 210 | #define MAX_LRO_RCV_DESCRIPTORS 64 |
210 | #define MAX_RCVSTATUS_DESCRIPTORS MAX_RCV_DESCRIPTORS | 211 | #define MAX_RCVSTATUS_DESCRIPTORS MAX_RCV_DESCRIPTORS |
@@ -780,6 +781,7 @@ struct netxen_hardware_context { | |||
780 | struct pci_dev *cmd_desc_pdev; | 781 | struct pci_dev *cmd_desc_pdev; |
781 | dma_addr_t cmd_desc_phys_addr; | 782 | dma_addr_t cmd_desc_phys_addr; |
782 | struct netxen_adapter *adapter; | 783 | struct netxen_adapter *adapter; |
784 | int pci_func; | ||
783 | }; | 785 | }; |
784 | 786 | ||
785 | #define RCV_RING_LRO RCV_DESC_LRO | 787 | #define RCV_RING_LRO RCV_DESC_LRO |
@@ -916,15 +918,15 @@ struct netxen_adapter { | |||
916 | struct netxen_ring_ctx *ctx_desc; | 918 | struct netxen_ring_ctx *ctx_desc; |
917 | struct pci_dev *ctx_desc_pdev; | 919 | struct pci_dev *ctx_desc_pdev; |
918 | dma_addr_t ctx_desc_phys_addr; | 920 | dma_addr_t ctx_desc_phys_addr; |
919 | int (*enable_phy_interrupts) (struct netxen_adapter *, int); | 921 | int (*enable_phy_interrupts) (struct netxen_adapter *); |
920 | int (*disable_phy_interrupts) (struct netxen_adapter *, int); | 922 | int (*disable_phy_interrupts) (struct netxen_adapter *); |
921 | void (*handle_phy_intr) (struct netxen_adapter *); | 923 | void (*handle_phy_intr) (struct netxen_adapter *); |
922 | int (*macaddr_set) (struct netxen_adapter *, netxen_ethernet_macaddr_t); | 924 | int (*macaddr_set) (struct netxen_adapter *, netxen_ethernet_macaddr_t); |
923 | int (*set_mtu) (struct netxen_adapter *, int); | 925 | int (*set_mtu) (struct netxen_adapter *, int); |
924 | int (*set_promisc) (struct netxen_adapter *, netxen_niu_prom_mode_t); | 926 | int (*set_promisc) (struct netxen_adapter *, netxen_niu_prom_mode_t); |
925 | int (*unset_promisc) (struct netxen_adapter *, netxen_niu_prom_mode_t); | 927 | int (*unset_promisc) (struct netxen_adapter *, netxen_niu_prom_mode_t); |
926 | int (*phy_read) (struct netxen_adapter *, long phy, long reg, u32 *); | 928 | int (*phy_read) (struct netxen_adapter *, long reg, u32 *); |
927 | int (*phy_write) (struct netxen_adapter *, long phy, long reg, u32 val); | 929 | int (*phy_write) (struct netxen_adapter *, long reg, u32 val); |
928 | int (*init_port) (struct netxen_adapter *, int); | 930 | int (*init_port) (struct netxen_adapter *, int); |
929 | void (*init_niu) (struct netxen_adapter *); | 931 | void (*init_niu) (struct netxen_adapter *); |
930 | int (*stop_port) (struct netxen_adapter *); | 932 | int (*stop_port) (struct netxen_adapter *); |
@@ -970,27 +972,21 @@ static inline void __iomem *pci_base(struct netxen_adapter *adapter, | |||
970 | return NULL; | 972 | return NULL; |
971 | } | 973 | } |
972 | 974 | ||
973 | int netxen_niu_xgbe_enable_phy_interrupts(struct netxen_adapter *adapter, | 975 | int netxen_niu_xgbe_enable_phy_interrupts(struct netxen_adapter *adapter); |
974 | int port); | 976 | int netxen_niu_gbe_enable_phy_interrupts(struct netxen_adapter *adapter); |
975 | int netxen_niu_gbe_enable_phy_interrupts(struct netxen_adapter *adapter, | 977 | int netxen_niu_xgbe_disable_phy_interrupts(struct netxen_adapter *adapter); |
976 | int port); | 978 | int netxen_niu_gbe_disable_phy_interrupts(struct netxen_adapter *adapter); |
977 | int netxen_niu_xgbe_disable_phy_interrupts(struct netxen_adapter *adapter, | 979 | int netxen_niu_xgbe_clear_phy_interrupts(struct netxen_adapter *adapter); |
978 | int port); | 980 | int netxen_niu_gbe_clear_phy_interrupts(struct netxen_adapter *adapter); |
979 | int netxen_niu_gbe_disable_phy_interrupts(struct netxen_adapter *adapter, | ||
980 | int port); | ||
981 | int netxen_niu_xgbe_clear_phy_interrupts(struct netxen_adapter *adapter, | ||
982 | int port); | ||
983 | int netxen_niu_gbe_clear_phy_interrupts(struct netxen_adapter *adapter, | ||
984 | int port); | ||
985 | void netxen_nic_xgbe_handle_phy_intr(struct netxen_adapter *adapter); | 981 | void netxen_nic_xgbe_handle_phy_intr(struct netxen_adapter *adapter); |
986 | void netxen_nic_gbe_handle_phy_intr(struct netxen_adapter *adapter); | 982 | void netxen_nic_gbe_handle_phy_intr(struct netxen_adapter *adapter); |
987 | void netxen_niu_gbe_set_mii_mode(struct netxen_adapter *adapter, int port, | 983 | void netxen_niu_gbe_set_mii_mode(struct netxen_adapter *adapter, int port, |
988 | long enable); | 984 | long enable); |
989 | void netxen_niu_gbe_set_gmii_mode(struct netxen_adapter *adapter, int port, | 985 | void netxen_niu_gbe_set_gmii_mode(struct netxen_adapter *adapter, int port, |
990 | long enable); | 986 | long enable); |
991 | int netxen_niu_gbe_phy_read(struct netxen_adapter *adapter, long phy, long reg, | 987 | int netxen_niu_gbe_phy_read(struct netxen_adapter *adapter, long reg, |
992 | __u32 * readval); | 988 | __u32 * readval); |
993 | int netxen_niu_gbe_phy_write(struct netxen_adapter *adapter, long phy, | 989 | int netxen_niu_gbe_phy_write(struct netxen_adapter *adapter, |
994 | long reg, __u32 val); | 990 | long reg, __u32 val); |
995 | 991 | ||
996 | /* Functions available from netxen_nic_hw.c */ | 992 | /* Functions available from netxen_nic_hw.c */ |
@@ -1010,6 +1006,7 @@ int netxen_nic_hw_write_wx(struct netxen_adapter *adapter, u64 off, void *data, | |||
1010 | int len); | 1006 | int len); |
1011 | void netxen_crb_writelit_adapter(struct netxen_adapter *adapter, | 1007 | void netxen_crb_writelit_adapter(struct netxen_adapter *adapter, |
1012 | unsigned long off, int data); | 1008 | unsigned long off, int data); |
1009 | int netxen_nic_erase_pxe(struct netxen_adapter *adapter); | ||
1013 | 1010 | ||
1014 | /* Functions from netxen_nic_init.c */ | 1011 | /* Functions from netxen_nic_init.c */ |
1015 | void netxen_free_adapter_offload(struct netxen_adapter *adapter); | 1012 | void netxen_free_adapter_offload(struct netxen_adapter *adapter); |