diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2010-04-16 02:23:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-16 15:47:04 -0400 |
commit | 50f56316aed044e42c1bcd7572926e80aac9af46 (patch) | |
tree | a54054d6ebf6f57d8c2ad7b2c54de942f7537120 /drivers/net/wireless/ath/ath.h | |
parent | fcb9392ff7ccb010818f3609420fd5416f6ca22e (diff) |
ath: Add buffered register write operations
This is required to implement delayed/buffered
register writes in ath9k_htc.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath.h')
-rw-r--r-- | drivers/net/wireless/ath/ath.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h index 1fbf6b1f9a7e..d32f2828b098 100644 --- a/drivers/net/wireless/ath/ath.h +++ b/drivers/net/wireless/ath/ath.h | |||
@@ -71,9 +71,21 @@ struct ath_regulatory { | |||
71 | struct reg_dmn_pair_mapping *regpair; | 71 | struct reg_dmn_pair_mapping *regpair; |
72 | }; | 72 | }; |
73 | 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 | */ | ||
74 | struct ath_ops { | 83 | struct ath_ops { |
75 | unsigned int (*read)(void *, u32 reg_offset); | 84 | unsigned int (*read)(void *, u32 reg_offset); |
76 | 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 *); | ||
77 | }; | 89 | }; |
78 | 90 | ||
79 | struct ath_common; | 91 | struct ath_common; |