]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ath: Add buffered register write operations
authorSujith <Sujith.Manoharan@atheros.com>
Fri, 16 Apr 2010 06:23:50 +0000 (11:53 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Apr 2010 19:47:04 +0000 (15:47 -0400)
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>
drivers/net/wireless/ath/ath.h

index 1fbf6b1f9a7e0f430cc4f86164c410e9ed6a24f3..d32f2828b098ee63241e3b1e83c82d96ab2944df 100644 (file)
@@ -71,9 +71,21 @@ struct ath_regulatory {
        struct reg_dmn_pair_mapping *regpair;
 };
 
+/**
+ * struct ath_ops - Register read/write operations
+ *
+ * @read: Register read
+ * @write: Register write
+ * @enable_write_buffer: Enable multiple register writes
+ * @disable_write_buffer: Disable multiple register writes
+ * @write_flush: Flush buffered register writes
+ */
 struct ath_ops {
        unsigned int (*read)(void *, u32 reg_offset);
-        void (*write)(void *, u32 val, u32 reg_offset);
+       void (*write)(void *, u32 val, u32 reg_offset);
+       void (*enable_write_buffer)(void *);
+       void (*disable_write_buffer)(void *);
+       void (*write_flush) (void *);
 };
 
 struct ath_common;