Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
io.h File Reference
#include "wl1251.h"

Go to the source code of this file.

Macros

#define HW_ACCESS_MEMORY_MAX_RANGE   0x1FFC0
 
#define HW_ACCESS_PART0_SIZE_ADDR   0x1FFC0
 
#define HW_ACCESS_PART0_START_ADDR   0x1FFC4
 
#define HW_ACCESS_PART1_SIZE_ADDR   0x1FFC8
 
#define HW_ACCESS_PART1_START_ADDR   0x1FFCC
 
#define HW_ACCESS_REGISTER_SIZE   4
 
#define HW_ACCESS_PRAM_MAX_RANGE   0x3c000
 

Functions

void wl1251_mem_read (struct wl1251 *wl, int addr, void *buf, size_t len)
 
void wl1251_mem_write (struct wl1251 *wl, int addr, void *buf, size_t len)
 
u32 wl1251_mem_read32 (struct wl1251 *wl, int addr)
 
void wl1251_mem_write32 (struct wl1251 *wl, int addr, u32 val)
 
u32 wl1251_reg_read32 (struct wl1251 *wl, int addr)
 
void wl1251_reg_write32 (struct wl1251 *wl, int addr, u32 val)
 
void wl1251_set_partition (struct wl1251 *wl, u32 part_start, u32 part_size, u32 reg_start, u32 reg_size)
 

Macro Definition Documentation

#define HW_ACCESS_MEMORY_MAX_RANGE   0x1FFC0

Definition at line 26 of file io.h.

#define HW_ACCESS_PART0_SIZE_ADDR   0x1FFC0

Definition at line 28 of file io.h.

#define HW_ACCESS_PART0_START_ADDR   0x1FFC4

Definition at line 29 of file io.h.

#define HW_ACCESS_PART1_SIZE_ADDR   0x1FFC8

Definition at line 30 of file io.h.

#define HW_ACCESS_PART1_START_ADDR   0x1FFCC

Definition at line 31 of file io.h.

#define HW_ACCESS_PRAM_MAX_RANGE   0x3c000

Definition at line 35 of file io.h.

#define HW_ACCESS_REGISTER_SIZE   4

Definition at line 33 of file io.h.

Function Documentation

void wl1251_mem_read ( struct wl1251 wl,
int  addr,
void buf,
size_t  len 
)

Definition at line 63 of file io.c.

u32 wl1251_mem_read32 ( struct wl1251 wl,
int  addr 
)

Definition at line 81 of file io.c.

void wl1251_mem_write ( struct wl1251 wl,
int  addr,
void buf,
size_t  len 
)

Definition at line 72 of file io.c.

void wl1251_mem_write32 ( struct wl1251 wl,
int  addr,
u32  val 
)

Definition at line 86 of file io.c.

u32 wl1251_reg_read32 ( struct wl1251 wl,
int  addr 
)

Definition at line 91 of file io.c.

void wl1251_reg_write32 ( struct wl1251 wl,
int  addr,
u32  val 
)

Definition at line 96 of file io.c.

void wl1251_set_partition ( struct wl1251 wl,
u32  part_start,
u32  part_size,
u32  reg_start,
u32  reg_size 
)

Definition at line 134 of file io.c.