#include <linux/types.h>
#include "cw1200.h"
#include "hwio.h"
#include "hwbus.h"
#define SPI_REG_ADDR_TO_SDIO(spi_reg_addr) …
#define SDIO_ADDR17BIT(buf_id, mpf, rfu, reg_id_ofs) …
#define MAX_RETRY …
static int __cw1200_reg_read(struct cw1200_common *priv, u16 addr,
void *buf, size_t buf_len, int buf_id)
{ … }
static int __cw1200_reg_write(struct cw1200_common *priv, u16 addr,
const void *buf, size_t buf_len, int buf_id)
{ … }
static inline int __cw1200_reg_read_32(struct cw1200_common *priv,
u16 addr, u32 *val)
{ … }
static inline int __cw1200_reg_write_32(struct cw1200_common *priv,
u16 addr, u32 val)
{ … }
static inline int __cw1200_reg_read_16(struct cw1200_common *priv,
u16 addr, u16 *val)
{ … }
static inline int __cw1200_reg_write_16(struct cw1200_common *priv,
u16 addr, u16 val)
{ … }
int cw1200_reg_read(struct cw1200_common *priv, u16 addr, void *buf,
size_t buf_len)
{ … }
int cw1200_reg_write(struct cw1200_common *priv, u16 addr, const void *buf,
size_t buf_len)
{ … }
int cw1200_data_read(struct cw1200_common *priv, void *buf, size_t buf_len)
{ … }
int cw1200_data_write(struct cw1200_common *priv, const void *buf,
size_t buf_len)
{ … }
int cw1200_indirect_read(struct cw1200_common *priv, u32 addr, void *buf,
size_t buf_len, u32 prefetch, u16 port_addr)
{ … }
int cw1200_apb_write(struct cw1200_common *priv, u32 addr, const void *buf,
size_t buf_len)
{ … }
int __cw1200_irq_enable(struct cw1200_common *priv, int enable)
{ … }