diff options
Diffstat (limited to 'drivers/net/cxgb4/cxgb4.h')
-rw-r--r-- | drivers/net/cxgb4/cxgb4.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/cxgb4/cxgb4.h b/drivers/net/cxgb4/cxgb4.h index 3d8ff4889b56..dd1770e075e6 100644 --- a/drivers/net/cxgb4/cxgb4.h +++ b/drivers/net/cxgb4/cxgb4.h | |||
@@ -53,7 +53,7 @@ | |||
53 | 53 | ||
54 | enum { | 54 | enum { |
55 | MAX_NPORTS = 4, /* max # of ports */ | 55 | MAX_NPORTS = 4, /* max # of ports */ |
56 | SERNUM_LEN = 16, /* Serial # length */ | 56 | SERNUM_LEN = 24, /* Serial # length */ |
57 | EC_LEN = 16, /* E/C length */ | 57 | EC_LEN = 16, /* E/C length */ |
58 | ID_LEN = 16, /* ID length */ | 58 | ID_LEN = 16, /* ID length */ |
59 | }; | 59 | }; |
@@ -477,7 +477,6 @@ struct adapter { | |||
477 | struct pci_dev *pdev; | 477 | struct pci_dev *pdev; |
478 | struct device *pdev_dev; | 478 | struct device *pdev_dev; |
479 | unsigned long registered_device_map; | 479 | unsigned long registered_device_map; |
480 | unsigned long open_device_map; | ||
481 | unsigned long flags; | 480 | unsigned long flags; |
482 | 481 | ||
483 | const char *name; | 482 | const char *name; |
@@ -651,14 +650,11 @@ int t4_link_start(struct adapter *adap, unsigned int mbox, unsigned int port, | |||
651 | struct link_config *lc); | 650 | struct link_config *lc); |
652 | int t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigned int port); | 651 | int t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigned int port); |
653 | int t4_seeprom_wp(struct adapter *adapter, bool enable); | 652 | int t4_seeprom_wp(struct adapter *adapter, bool enable); |
654 | int t4_read_flash(struct adapter *adapter, unsigned int addr, | ||
655 | unsigned int nwords, u32 *data, int byte_oriented); | ||
656 | int t4_load_fw(struct adapter *adapter, const u8 *fw_data, unsigned int size); | 653 | int t4_load_fw(struct adapter *adapter, const u8 *fw_data, unsigned int size); |
657 | int t4_check_fw_version(struct adapter *adapter); | 654 | int t4_check_fw_version(struct adapter *adapter); |
658 | int t4_prep_adapter(struct adapter *adapter); | 655 | int t4_prep_adapter(struct adapter *adapter); |
659 | int t4_port_init(struct adapter *adap, int mbox, int pf, int vf); | 656 | int t4_port_init(struct adapter *adap, int mbox, int pf, int vf); |
660 | void t4_fatal_err(struct adapter *adapter); | 657 | void t4_fatal_err(struct adapter *adapter); |
661 | void t4_set_vlan_accel(struct adapter *adapter, unsigned int ports, int on); | ||
662 | int t4_set_trace_filter(struct adapter *adapter, const struct trace_params *tp, | 658 | int t4_set_trace_filter(struct adapter *adapter, const struct trace_params *tp, |
663 | int filter_index, int enable); | 659 | int filter_index, int enable); |
664 | void t4_get_trace_filter(struct adapter *adapter, struct trace_params *tp, | 660 | void t4_get_trace_filter(struct adapter *adapter, struct trace_params *tp, |
@@ -709,7 +705,8 @@ int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port, | |||
709 | int t4_free_vi(struct adapter *adap, unsigned int mbox, unsigned int pf, | 705 | int t4_free_vi(struct adapter *adap, unsigned int mbox, unsigned int pf, |
710 | unsigned int vf, unsigned int viid); | 706 | unsigned int vf, unsigned int viid); |
711 | int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid, | 707 | int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid, |
712 | int mtu, int promisc, int all_multi, int bcast, bool sleep_ok); | 708 | int mtu, int promisc, int all_multi, int bcast, int vlanex, |
709 | bool sleep_ok); | ||
713 | int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox, | 710 | int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox, |
714 | unsigned int viid, bool free, unsigned int naddr, | 711 | unsigned int viid, bool free, unsigned int naddr, |
715 | const u8 **addr, u16 *idx, u64 *hash, bool sleep_ok); | 712 | const u8 **addr, u16 *idx, u64 *hash, bool sleep_ok); |