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

Go to the source code of this file.

Data Structures

struct  ppc_storage
 

Macros

#define port_stb   1
 
#define port_afd   2
 
#define cmd_stb   port_afd
 
#define port_init   4
 
#define data_stb   port_init
 
#define port_sel   8
 
#define port_int   16
 
#define port_dir   0x20
 
#define ECR_EPP   0x80
 
#define ECR_BI   0x20
 
#define ACCESS_REG   0x00
 
#define ACCESS_PORT   0x40
 
#define ACCESS_READ   0x00
 
#define ACCESS_WRITE   0x20
 
#define CMD_PREFIX_SET   0xe0
 
#define CMD_PREFIX_RESET   0xc0
 
#define PREFIX_IO16   0x01
 
#define PREFIX_FASTWR   0x04
 
#define PREFIX_BLK   0x08
 
#define REG_STATUS   0x00
 
#define STATUS_IRQA   0x01
 
#define STATUS_EEPROM_DO   0x40
 
#define REG_VERSION   0x01
 
#define REG_HWCFG   0x02
 
#define REG_RAMSIZE   0x03
 
#define RAMSIZE_128K   0x02
 
#define REG_EEPROM   0x06
 
#define EEPROM_SK   0x01
 
#define EEPROM_DI   0x02
 
#define EEPROM_CS   0x04
 
#define EEPROM_EN   0x08
 
#define REG_BLKSIZE   0x08
 
#define fifo_wait   0x10
 
#define PPCMODE_UNI_SW   0
 
#define PPCMODE_UNI_FW   1
 
#define PPCMODE_BI_SW   2
 
#define PPCMODE_BI_FW   3
 
#define PPCMODE_EPP_BYTE   4
 
#define PPCMODE_EPP_WORD   5
 
#define PPCMODE_EPP_DWORD   6
 

Typedefs

typedef struct ppc_storage Interface
 

Macro Definition Documentation

#define ACCESS_PORT   0x40

Definition at line 36 of file ppc6lnx.c.

#define ACCESS_READ   0x00

Definition at line 38 of file ppc6lnx.c.

#define ACCESS_REG   0x00

Definition at line 35 of file ppc6lnx.c.

#define ACCESS_WRITE   0x20

Definition at line 39 of file ppc6lnx.c.

#define CMD_PREFIX_RESET   0xc0

Definition at line 44 of file ppc6lnx.c.

#define CMD_PREFIX_SET   0xe0

Definition at line 43 of file ppc6lnx.c.

#define cmd_stb   port_afd

Definition at line 21 of file ppc6lnx.c.

#define data_stb   port_init

Definition at line 23 of file ppc6lnx.c.

#define ECR_BI   0x20

Definition at line 29 of file ppc6lnx.c.

#define ECR_EPP   0x80

Definition at line 28 of file ppc6lnx.c.

#define EEPROM_CS   0x04

Definition at line 61 of file ppc6lnx.c.

#define EEPROM_DI   0x02

Definition at line 60 of file ppc6lnx.c.

#define EEPROM_EN   0x08

Definition at line 62 of file ppc6lnx.c.

#define EEPROM_SK   0x01

Definition at line 59 of file ppc6lnx.c.

#define fifo_wait   0x10

Definition at line 88 of file ppc6lnx.c.

#define port_afd   2

Definition at line 20 of file ppc6lnx.c.

#define port_dir   0x20

Definition at line 26 of file ppc6lnx.c.

#define port_init   4

Definition at line 22 of file ppc6lnx.c.

#define port_int   16

Definition at line 25 of file ppc6lnx.c.

#define port_sel   8

Definition at line 24 of file ppc6lnx.c.

#define port_stb   1

Definition at line 19 of file ppc6lnx.c.

#define PPCMODE_BI_FW   3

Definition at line 97 of file ppc6lnx.c.

#define PPCMODE_BI_SW   2

Definition at line 96 of file ppc6lnx.c.

#define PPCMODE_EPP_BYTE   4

Definition at line 98 of file ppc6lnx.c.

#define PPCMODE_EPP_DWORD   6

Definition at line 100 of file ppc6lnx.c.

#define PPCMODE_EPP_WORD   5

Definition at line 99 of file ppc6lnx.c.

#define PPCMODE_UNI_FW   1

Definition at line 95 of file ppc6lnx.c.

#define PPCMODE_UNI_SW   0

Definition at line 94 of file ppc6lnx.c.

#define PREFIX_BLK   0x08

Definition at line 47 of file ppc6lnx.c.

#define PREFIX_FASTWR   0x04

Definition at line 46 of file ppc6lnx.c.

#define PREFIX_IO16   0x01

Definition at line 45 of file ppc6lnx.c.

#define RAMSIZE_128K   0x02

Definition at line 57 of file ppc6lnx.c.

#define REG_BLKSIZE   0x08

Definition at line 63 of file ppc6lnx.c.

#define REG_EEPROM   0x06

Definition at line 58 of file ppc6lnx.c.

#define REG_HWCFG   0x02

Definition at line 55 of file ppc6lnx.c.

#define REG_RAMSIZE   0x03

Definition at line 56 of file ppc6lnx.c.

#define REG_STATUS   0x00

Definition at line 51 of file ppc6lnx.c.

#define REG_VERSION   0x01

Definition at line 54 of file ppc6lnx.c.

#define STATUS_EEPROM_DO   0x40

Definition at line 53 of file ppc6lnx.c.

#define STATUS_IRQA   0x01

Definition at line 52 of file ppc6lnx.c.

Typedef Documentation