21 #ifndef __WL1251_IO_H__
22 #define __WL1251_IO_H__
26 #define HW_ACCESS_MEMORY_MAX_RANGE 0x1FFC0
28 #define HW_ACCESS_PART0_SIZE_ADDR 0x1FFC0
29 #define HW_ACCESS_PART0_START_ADDR 0x1FFC4
30 #define HW_ACCESS_PART1_SIZE_ADDR 0x1FFC8
31 #define HW_ACCESS_PART1_START_ADDR 0x1FFCC
33 #define HW_ACCESS_REGISTER_SIZE 4
35 #define HW_ACCESS_PRAM_MAX_RANGE 0x3c000
50 static inline u32 wl1251_read_elp(
struct wl1251 *wl,
int addr)
55 wl->
if_ops->read_elp(wl, addr, &response);
57 wl->
if_ops->read(wl, addr, &response,
sizeof(
u32));
62 static inline void wl1251_write_elp(
struct wl1251 *wl,
int addr,
u32 val)
65 wl->
if_ops->write_elp(wl, addr, val);
67 wl->
if_ops->write(wl, addr, &val,
sizeof(
u32));
80 u32 part_start,
u32 part_size,
81 u32 reg_start,
u32 reg_size);