Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50f56316 authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath: Add buffered register write operations



This is required to implement delayed/buffered
register writes in ath9k_htc.

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent fcb9392f
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -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 (*enable_write_buffer)(void *);
	void (*disable_write_buffer)(void *);
	void (*write_flush) (void *);
};

struct ath_common;