atheros: move bus ops to ath_common
This is the last part to make ath9k hw code core driver agnostic. I believe ath9k_htc can now use use the hw code unmodified. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
990b70ab24
commit
5bb1279132
@@ -45,6 +45,15 @@ struct ath_ops {
|
||||
void (*write)(void *, u32 val, u32 reg_offset);
|
||||
};
|
||||
|
||||
struct ath_common;
|
||||
|
||||
struct ath_bus_ops {
|
||||
void (*read_cachesize)(struct ath_common *common, int *csz);
|
||||
void (*cleanup)(struct ath_common *common);
|
||||
bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data);
|
||||
void (*bt_coex_prep)(struct ath_common *common);
|
||||
};
|
||||
|
||||
struct ath_common {
|
||||
void *ah;
|
||||
struct ieee80211_hw *hw;
|
||||
@@ -61,6 +70,7 @@ struct ath_common {
|
||||
|
||||
struct ath_regulatory regulatory;
|
||||
const struct ath_ops *ops;
|
||||
const struct ath_bus_ops *bus_ops;
|
||||
};
|
||||
|
||||
struct sk_buff *ath_rxbuf_alloc(struct ath_common *common,
|
||||
|
Reference in New Issue
Block a user