Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cycx_drv.h File Reference

Go to the source code of this file.

Data Structures

struct  cycx_hw
 

Macros

#define CYCX_WINDOWSIZE   0x4000 /* default dual-port memory window size */
 
#define GEN_CYCX_INTR   0x02
 
#define RST_ENABLE   0x04
 
#define START_CPU   0x06
 
#define RST_DISABLE   0x08
 
#define FIXED_BUFFERS   0x08
 
#define TEST_PATTERN   0xaa55
 
#define CMD_OFFSET   0x20
 
#define CONF_OFFSET   0x0380
 
#define RESET_OFFSET   0x3c00 /* For reset file load */
 
#define DATA_OFFSET   0x0100 /* For code and data files load */
 
#define START_OFFSET   0x3ff0 /* 80186 starts here */
 

Functions

int cycx_setup (struct cycx_hw *hw, void *sfm, u32 len, unsigned long base)
 
int cycx_down (struct cycx_hw *hw)
 
int cycx_peek (struct cycx_hw *hw, u32 addr, void *buf, u32 len)
 
int cycx_poke (struct cycx_hw *hw, u32 addr, void *buf, u32 len)
 
int cycx_exec (void __iomem *addr)
 
void cycx_intr (struct cycx_hw *hw)
 

Macro Definition Documentation

#define CMD_OFFSET   0x20

Definition at line 34 of file cycx_drv.h.

#define CONF_OFFSET   0x0380

Definition at line 35 of file cycx_drv.h.

#define CYCX_WINDOWSIZE   0x4000 /* default dual-port memory window size */

Definition at line 27 of file cycx_drv.h.

#define DATA_OFFSET   0x0100 /* For code and data files load */

Definition at line 37 of file cycx_drv.h.

#define FIXED_BUFFERS   0x08

Definition at line 32 of file cycx_drv.h.

#define GEN_CYCX_INTR   0x02

Definition at line 28 of file cycx_drv.h.

#define RESET_OFFSET   0x3c00 /* For reset file load */

Definition at line 36 of file cycx_drv.h.

#define RST_DISABLE   0x08

Definition at line 31 of file cycx_drv.h.

#define RST_ENABLE   0x04

Definition at line 29 of file cycx_drv.h.

#define START_CPU   0x06

Definition at line 30 of file cycx_drv.h.

#define START_OFFSET   0x3ff0 /* 80186 starts here */

Definition at line 38 of file cycx_drv.h.

#define TEST_PATTERN   0xaa55

Definition at line 33 of file cycx_drv.h.

Function Documentation

int cycx_down ( struct cycx_hw hw)

Definition at line 177 of file cycx_drv.c.

int cycx_exec ( void __iomem addr)

Definition at line 200 of file cycx_drv.c.

void cycx_intr ( struct cycx_hw hw)

Definition at line 191 of file cycx_drv.c.

int cycx_peek ( struct cycx_hw hw,
u32  addr,
void buf,
u32  len 
)

Definition at line 218 of file cycx_drv.c.

int cycx_poke ( struct cycx_hw hw,
u32  addr,
void buf,
u32  len 
)

Definition at line 231 of file cycx_drv.c.

int cycx_setup ( struct cycx_hw hw,
void sfm,
u32  len,
unsigned long  base 
)

Definition at line 137 of file cycx_drv.c.