diff options
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index 31752b24434e..378988b5709a 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |||
@@ -251,6 +251,8 @@ struct adapter_params { | |||
251 | unsigned char rev; /* chip revision */ | 251 | unsigned char rev; /* chip revision */ |
252 | unsigned char offload; | 252 | unsigned char offload; |
253 | 253 | ||
254 | unsigned char bypass; | ||
255 | |||
254 | unsigned int ofldq_wr_cred; | 256 | unsigned int ofldq_wr_cred; |
255 | }; | 257 | }; |
256 | 258 | ||
@@ -642,6 +644,23 @@ extern int dbfifo_int_thresh; | |||
642 | #define for_each_port(adapter, iter) \ | 644 | #define for_each_port(adapter, iter) \ |
643 | for (iter = 0; iter < (adapter)->params.nports; ++iter) | 645 | for (iter = 0; iter < (adapter)->params.nports; ++iter) |
644 | 646 | ||
647 | static inline int is_bypass(struct adapter *adap) | ||
648 | { | ||
649 | return adap->params.bypass; | ||
650 | } | ||
651 | |||
652 | static inline int is_bypass_device(int device) | ||
653 | { | ||
654 | /* this should be set based upon device capabilities */ | ||
655 | switch (device) { | ||
656 | case 0x440b: | ||
657 | case 0x440c: | ||
658 | return 1; | ||
659 | default: | ||
660 | return 0; | ||
661 | } | ||
662 | } | ||
663 | |||
645 | static inline unsigned int core_ticks_per_usec(const struct adapter *adap) | 664 | static inline unsigned int core_ticks_per_usec(const struct adapter *adap) |
646 | { | 665 | { |
647 | return adap->params.vpd.cclk / 1000; | 666 | return adap->params.vpd.cclk / 1000; |
@@ -696,6 +715,7 @@ int t4_seeprom_wp(struct adapter *adapter, bool enable); | |||
696 | int get_vpd_params(struct adapter *adapter, struct vpd_params *p); | 715 | int get_vpd_params(struct adapter *adapter, struct vpd_params *p); |
697 | int t4_load_fw(struct adapter *adapter, const u8 *fw_data, unsigned int size); | 716 | int t4_load_fw(struct adapter *adapter, const u8 *fw_data, unsigned int size); |
698 | unsigned int t4_flash_cfg_addr(struct adapter *adapter); | 717 | unsigned int t4_flash_cfg_addr(struct adapter *adapter); |
718 | int t4_load_cfg(struct adapter *adapter, const u8 *cfg_data, unsigned int size); | ||
699 | int t4_check_fw_version(struct adapter *adapter); | 719 | int t4_check_fw_version(struct adapter *adapter); |
700 | int t4_prep_adapter(struct adapter *adapter); | 720 | int t4_prep_adapter(struct adapter *adapter); |
701 | int t4_port_init(struct adapter *adap, int mbox, int pf, int vf); | 721 | int t4_port_init(struct adapter *adap, int mbox, int pf, int vf); |