diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath.h')
-rw-r--r-- | drivers/net/wireless/ath/ath.h | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h index 71fc960814f0..d32f2828b098 100644 --- a/drivers/net/wireless/ath/ath.h +++ b/drivers/net/wireless/ath/ath.h | |||
@@ -48,6 +48,12 @@ enum ath_device_state { | |||
48 | ATH_HW_INITIALIZED, | 48 | ATH_HW_INITIALIZED, |
49 | }; | 49 | }; |
50 | 50 | ||
51 | enum ath_bus_type { | ||
52 | ATH_PCI, | ||
53 | ATH_AHB, | ||
54 | ATH_USB, | ||
55 | }; | ||
56 | |||
51 | struct reg_dmn_pair_mapping { | 57 | struct reg_dmn_pair_mapping { |
52 | u16 regDmnEnum; | 58 | u16 regDmnEnum; |
53 | u16 reg_5ghz_ctl; | 59 | u16 reg_5ghz_ctl; |
@@ -65,17 +71,30 @@ struct ath_regulatory { | |||
65 | struct reg_dmn_pair_mapping *regpair; | 71 | struct reg_dmn_pair_mapping *regpair; |
66 | }; | 72 | }; |
67 | 73 | ||
74 | /** | ||
75 | * struct ath_ops - Register read/write operations | ||
76 | * | ||
77 | * @read: Register read | ||
78 | * @write: Register write | ||
79 | * @enable_write_buffer: Enable multiple register writes | ||
80 | * @disable_write_buffer: Disable multiple register writes | ||
81 | * @write_flush: Flush buffered register writes | ||
82 | */ | ||
68 | struct ath_ops { | 83 | struct ath_ops { |
69 | unsigned int (*read)(void *, u32 reg_offset); | 84 | unsigned int (*read)(void *, u32 reg_offset); |
70 | void (*write)(void *, u32 val, u32 reg_offset); | 85 | void (*write)(void *, u32 val, u32 reg_offset); |
86 | void (*enable_write_buffer)(void *); | ||
87 | void (*disable_write_buffer)(void *); | ||
88 | void (*write_flush) (void *); | ||
71 | }; | 89 | }; |
72 | 90 | ||
73 | struct ath_common; | 91 | struct ath_common; |
74 | 92 | ||
75 | struct ath_bus_ops { | 93 | struct ath_bus_ops { |
76 | void (*read_cachesize)(struct ath_common *common, int *csz); | 94 | enum ath_bus_type ath_bus_type; |
77 | bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data); | 95 | void (*read_cachesize)(struct ath_common *common, int *csz); |
78 | void (*bt_coex_prep)(struct ath_common *common); | 96 | bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data); |
97 | void (*bt_coex_prep)(struct ath_common *common); | ||
79 | }; | 98 | }; |
80 | 99 | ||
81 | struct ath_common { | 100 | struct ath_common { |