diff options
Diffstat (limited to 'drivers/net/wimax/i2400m/i2400m.h')
-rw-r--r-- | drivers/net/wimax/i2400m/i2400m.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/net/wimax/i2400m/i2400m.h b/drivers/net/wimax/i2400m/i2400m.h index 5008cdb12b42..0c60d5c43007 100644 --- a/drivers/net/wimax/i2400m/i2400m.h +++ b/drivers/net/wimax/i2400m/i2400m.h | |||
@@ -585,6 +585,8 @@ unsigned i2400m_brh_get_signature(const struct i2400m_bootrom_header *hdr) | |||
585 | * Driver / device setup and internal functions | 585 | * Driver / device setup and internal functions |
586 | */ | 586 | */ |
587 | extern void i2400m_netdev_setup(struct net_device *net_dev); | 587 | extern void i2400m_netdev_setup(struct net_device *net_dev); |
588 | extern int i2400m_sysfs_setup(struct device_driver *); | ||
589 | extern void i2400m_sysfs_release(struct device_driver *); | ||
588 | extern int i2400m_tx_setup(struct i2400m *); | 590 | extern int i2400m_tx_setup(struct i2400m *); |
589 | extern void i2400m_wake_tx_work(struct work_struct *); | 591 | extern void i2400m_wake_tx_work(struct work_struct *); |
590 | extern void i2400m_tx_release(struct i2400m *); | 592 | extern void i2400m_tx_release(struct i2400m *); |
@@ -728,6 +730,7 @@ extern struct sk_buff *i2400m_get_device_info(struct i2400m *); | |||
728 | extern int i2400m_firmware_check(struct i2400m *); | 730 | extern int i2400m_firmware_check(struct i2400m *); |
729 | extern int i2400m_set_init_config(struct i2400m *, | 731 | extern int i2400m_set_init_config(struct i2400m *, |
730 | const struct i2400m_tlv_hdr **, size_t); | 732 | const struct i2400m_tlv_hdr **, size_t); |
733 | extern int i2400m_set_idle_timeout(struct i2400m *, unsigned); | ||
731 | 734 | ||
732 | static inline | 735 | static inline |
733 | struct usb_endpoint_descriptor *usb_get_epd(struct usb_interface *iface, int ep) | 736 | struct usb_endpoint_descriptor *usb_get_epd(struct usb_interface *iface, int ep) |
@@ -740,6 +743,32 @@ extern int i2400m_op_rfkill_sw_toggle(struct wimax_dev *, | |||
740 | extern void i2400m_report_tlv_rf_switches_status( | 743 | extern void i2400m_report_tlv_rf_switches_status( |
741 | struct i2400m *, const struct i2400m_tlv_rf_switches_status *); | 744 | struct i2400m *, const struct i2400m_tlv_rf_switches_status *); |
742 | 745 | ||
746 | /* | ||
747 | * Helpers for firmware backwards compability | ||
748 | * | ||
749 | * As we aim to support at least the firmware version that was | ||
750 | * released with the previous kernel/driver release, some code will be | ||
751 | * conditionally executed depending on the firmware version. On each | ||
752 | * release, the code to support fw releases past the last two ones | ||
753 | * will be purged. | ||
754 | * | ||
755 | * By making it depend on this macros, it is easier to keep it a tab | ||
756 | * on what has to go and what not. | ||
757 | */ | ||
758 | static inline | ||
759 | unsigned i2400m_le_v1_3(struct i2400m *i2400m) | ||
760 | { | ||
761 | /* running fw is lower or v1.3 */ | ||
762 | return i2400m->fw_version <= 0x00090001; | ||
763 | } | ||
764 | |||
765 | static inline | ||
766 | unsigned i2400m_ge_v1_4(struct i2400m *i2400m) | ||
767 | { | ||
768 | /* running fw is higher or v1.4 */ | ||
769 | return i2400m->fw_version >= 0x00090002; | ||
770 | } | ||
771 | |||
743 | 772 | ||
744 | /* | 773 | /* |
745 | * Do a millisecond-sleep for allowing wireshark to dump all the data | 774 | * Do a millisecond-sleep for allowing wireshark to dump all the data |