ath.h (6288cf1e768ae73db5ddaaae54d85245cc1c2b56) | ath.h (05c0be2f7f10404e5b3bc4105f9206096e9b8767) |
---|---|
1/* 2 * Copyright (c) 2008-2009 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 105 unchanged lines hidden (view full) --- 114 * @write_flush: flush buffered register writes and disable buffering 115 */ 116struct ath_ops { 117 unsigned int (*read)(void *, u32 reg_offset); 118 void (*multi_read)(void *, u32 *addr, u32 *val, u16 count); 119 void (*write)(void *, u32 val, u32 reg_offset); 120 void (*enable_write_buffer)(void *); 121 void (*write_flush) (void *); | 1/* 2 * Copyright (c) 2008-2009 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 105 unchanged lines hidden (view full) --- 114 * @write_flush: flush buffered register writes and disable buffering 115 */ 116struct ath_ops { 117 unsigned int (*read)(void *, u32 reg_offset); 118 void (*multi_read)(void *, u32 *addr, u32 *val, u16 count); 119 void (*write)(void *, u32 val, u32 reg_offset); 120 void (*enable_write_buffer)(void *); 121 void (*write_flush) (void *); |
122 u32 (*rmw)(void *, u32 reg_offset, u32 set, u32 clr); |
|
122}; 123 124struct ath_common; | 123}; 124 125struct ath_common; |
126struct ath_bus_ops; |
|
125 | 127 |
126struct ath_bus_ops { 127 enum ath_bus_type ath_bus_type; 128 void (*read_cachesize)(struct ath_common *common, int *csz); 129 bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data); 130 void (*bt_coex_prep)(struct ath_common *common); 131 void (*extn_synch_en)(struct ath_common *common); 132}; 133 | |
134struct ath_common { 135 void *ah; 136 void *priv; 137 struct ieee80211_hw *hw; 138 int debug_mask; 139 enum ath_device_state state; 140 141 struct ath_ani ani; --- 20 unchanged lines hidden (view full) --- 162 struct ath_cycle_counters cc_ani; 163 struct ath_cycle_counters cc_survey; 164 165 struct ath_regulatory regulatory; 166 const struct ath_ops *ops; 167 const struct ath_bus_ops *bus_ops; 168 169 bool btcoex_enabled; | 128struct ath_common { 129 void *ah; 130 void *priv; 131 struct ieee80211_hw *hw; 132 int debug_mask; 133 enum ath_device_state state; 134 135 struct ath_ani ani; --- 20 unchanged lines hidden (view full) --- 156 struct ath_cycle_counters cc_ani; 157 struct ath_cycle_counters cc_survey; 158 159 struct ath_regulatory regulatory; 160 const struct ath_ops *ops; 161 const struct ath_bus_ops *bus_ops; 162 163 bool btcoex_enabled; |
164 bool disable_ani; |
|
170}; 171 172struct sk_buff *ath_rxbuf_alloc(struct ath_common *common, 173 u32 len, 174 gfp_t gfp_mask); 175 176void ath_hw_setbssidmask(struct ath_common *common); 177void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key); --- 117 unchanged lines hidden --- | 165}; 166 167struct sk_buff *ath_rxbuf_alloc(struct ath_common *common, 168 u32 len, 169 gfp_t gfp_mask); 170 171void ath_hw_setbssidmask(struct ath_common *common); 172void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key); --- 117 unchanged lines hidden --- |