#ifndef __IO_H__
#define __IO_H__
#include <linux/irqreturn.h>
#define HW_ACCESS_MEMORY_MAX_RANGE …
#define HW_PARTITION_REGISTERS_ADDR …
#define HW_PART0_SIZE_ADDR …
#define HW_PART0_START_ADDR …
#define HW_PART1_SIZE_ADDR …
#define HW_PART1_START_ADDR …
#define HW_PART2_SIZE_ADDR …
#define HW_PART2_START_ADDR …
#define HW_PART3_SIZE_ADDR …
#define HW_PART3_START_ADDR …
#define HW_ACCESS_REGISTER_SIZE …
#define HW_ACCESS_PRAM_MAX_RANGE …
struct wl1271;
void wlcore_disable_interrupts(struct wl1271 *wl);
void wlcore_disable_interrupts_nosync(struct wl1271 *wl);
void wlcore_enable_interrupts(struct wl1271 *wl);
void wlcore_synchronize_interrupts(struct wl1271 *wl);
void wl1271_io_reset(struct wl1271 *wl);
void wl1271_io_init(struct wl1271 *wl);
int wlcore_translate_addr(struct wl1271 *wl, int addr);
static inline int __must_check wlcore_raw_write(struct wl1271 *wl, int addr,
void *buf, size_t len,
bool fixed)
{ … }
static inline int __must_check wlcore_raw_read(struct wl1271 *wl, int addr,
void *buf, size_t len,
bool fixed)
{ … }
static inline int __must_check wlcore_raw_read_data(struct wl1271 *wl, int reg,
void *buf, size_t len,
bool fixed)
{ … }
static inline int __must_check wlcore_raw_write_data(struct wl1271 *wl, int reg,
void *buf, size_t len,
bool fixed)
{ … }
static inline int __must_check wlcore_raw_read32(struct wl1271 *wl, int addr,
u32 *val)
{ … }
static inline int __must_check wlcore_raw_write32(struct wl1271 *wl, int addr,
u32 val)
{ … }
static inline int __must_check wlcore_read(struct wl1271 *wl, int addr,
void *buf, size_t len, bool fixed)
{ … }
static inline int __must_check wlcore_write(struct wl1271 *wl, int addr,
void *buf, size_t len, bool fixed)
{ … }
static inline int __must_check wlcore_write_data(struct wl1271 *wl, int reg,
void *buf, size_t len,
bool fixed)
{ … }
static inline int __must_check wlcore_read_data(struct wl1271 *wl, int reg,
void *buf, size_t len,
bool fixed)
{ … }
static inline int __must_check wlcore_read_hwaddr(struct wl1271 *wl, int hwaddr,
void *buf, size_t len,
bool fixed)
{ … }
static inline int __must_check wlcore_read32(struct wl1271 *wl, int addr,
u32 *val)
{ … }
static inline int __must_check wlcore_write32(struct wl1271 *wl, int addr,
u32 val)
{ … }
static inline int __must_check wlcore_read_reg(struct wl1271 *wl, int reg,
u32 *val)
{ … }
static inline int __must_check wlcore_write_reg(struct wl1271 *wl, int reg,
u32 val)
{ … }
static inline void wl1271_power_off(struct wl1271 *wl)
{ … }
static inline int wl1271_power_on(struct wl1271 *wl)
{ … }
int wlcore_set_partition(struct wl1271 *wl,
const struct wlcore_partition_set *p);
bool wl1271_set_block_size(struct wl1271 *wl);
int wl1271_tx_dummy_packet(struct wl1271 *wl);
#endif