mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-04 19:03:09 +02:00
9ad628c924
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26583 3c298f89-4303-0410-b956-a3cf2f4a3e73
51 lines
1.4 KiB
Diff
51 lines
1.4 KiB
Diff
--- a/drivers/net/wireless/ath/ath.h
|
|
+++ b/drivers/net/wireless/ath/ath.h
|
|
@@ -123,14 +123,7 @@ struct ath_ops {
|
|
};
|
|
|
|
struct ath_common;
|
|
-
|
|
-struct ath_bus_ops {
|
|
- enum ath_bus_type ath_bus_type;
|
|
- void (*read_cachesize)(struct ath_common *common, int *csz);
|
|
- bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data);
|
|
- void (*bt_coex_prep)(struct ath_common *common);
|
|
- void (*extn_synch_en)(struct ath_common *common);
|
|
-};
|
|
+struct ath_bus_ops;
|
|
|
|
struct ath_common {
|
|
void *ah;
|
|
--- a/drivers/net/wireless/ath/ath9k/hw.h
|
|
+++ b/drivers/net/wireless/ath/ath9k/hw.h
|
|
@@ -847,6 +847,14 @@ struct ath_hw {
|
|
u32 ent_mode;
|
|
};
|
|
|
|
+struct ath_bus_ops {
|
|
+ enum ath_bus_type ath_bus_type;
|
|
+ void (*read_cachesize)(struct ath_common *common, int *csz);
|
|
+ bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data);
|
|
+ void (*bt_coex_prep)(struct ath_common *common);
|
|
+ void (*extn_synch_en)(struct ath_common *common);
|
|
+};
|
|
+
|
|
static inline struct ath_common *ath9k_hw_common(struct ath_hw *ah)
|
|
{
|
|
return &ah->common;
|
|
--- a/drivers/net/wireless/ath/ath5k/ath5k.h
|
|
+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
|
|
@@ -1155,6 +1155,12 @@ struct ath5k_hw {
|
|
struct ath5k_rx_status *);
|
|
};
|
|
|
|
+struct ath_bus_ops {
|
|
+ enum ath_bus_type ath_bus_type;
|
|
+ void (*read_cachesize)(struct ath_common *common, int *csz);
|
|
+ bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data);
|
|
+};
|
|
+
|
|
/*
|
|
* Prototypes
|
|
*/
|