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

Go to the source code of this file.

Macros

#define SMSC_FDC37M81X_CONFIG_INDEX   0x00
 
#define SMSC_FDC37M81X_CONFIG_DATA   0x01
 
#define SMSC_FDC37M81X_CONF   0x02
 
#define SMSC_FDC37M81X_INDEX   0x03
 
#define SMSC_FDC37M81X_DNUM   0x07
 
#define SMSC_FDC37M81X_DID   0x20
 
#define SMSC_FDC37M81X_DREV   0x21
 
#define SMSC_FDC37M81X_PCNT   0x22
 
#define SMSC_FDC37M81X_PMGT   0x23
 
#define SMSC_FDC37M81X_OSC   0x24
 
#define SMSC_FDC37M81X_CONFPA0   0x26
 
#define SMSC_FDC37M81X_CONFPA1   0x27
 
#define SMSC_FDC37M81X_TEST4   0x2B
 
#define SMSC_FDC37M81X_TEST5   0x2C
 
#define SMSC_FDC37M81X_TEST1   0x2D
 
#define SMSC_FDC37M81X_TEST2   0x2E
 
#define SMSC_FDC37M81X_TEST3   0x2F
 
#define SMSC_FDC37M81X_FDD   0x00
 
#define SMSC_FDC37M81X_PARALLEL   0x03
 
#define SMSC_FDC37M81X_SERIAL1   0x04
 
#define SMSC_FDC37M81X_SERIAL2   0x05
 
#define SMSC_FDC37M81X_KBD   0x07
 
#define SMSC_FDC37M81X_AUXIO   0x08
 
#define SMSC_FDC37M81X_NONE   0xff
 
#define SMSC_FDC37M81X_ACTIVE   0x30
 
#define SMSC_FDC37M81X_BASEADDR0   0x60
 
#define SMSC_FDC37M81X_BASEADDR1   0x61
 
#define SMSC_FDC37M81X_INT   0x70
 
#define SMSC_FDC37M81X_INT2   0x72
 
#define SMSC_FDC37M81X_LDCR_F0   0xF0
 
#define SMSC_FDC37M81X_CONFIG_ENTER   0x55
 
#define SMSC_FDC37M81X_CONFIG_EXIT   0xaa
 
#define SMSC_FDC37M81X_CHIP_ID   0x4d
 

Functions

unsigned long smsc_fdc37m81x_init (unsigned long port)
 
void smsc_fdc37m81x_config_beg (void)
 
void smsc_fdc37m81x_config_end (void)
 
u8 smsc_fdc37m81x_config_get (u8 reg)
 
void smsc_fdc37m81x_config_set (u8 reg, u8 val)
 

Macro Definition Documentation

#define SMSC_FDC37M81X_ACTIVE   0x30

Definition at line 47 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_AUXIO   0x08

Definition at line 43 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_BASEADDR0   0x60

Definition at line 48 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_BASEADDR1   0x61

Definition at line 49 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_CHIP_ID   0x4d

Definition at line 57 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_CONF   0x02

Definition at line 21 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_CONFIG_DATA   0x01

Definition at line 20 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_CONFIG_ENTER   0x55

Definition at line 55 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_CONFIG_EXIT   0xaa

Definition at line 56 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_CONFIG_INDEX   0x00

Definition at line 19 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_CONFPA0   0x26

Definition at line 29 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_CONFPA1   0x27

Definition at line 30 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_DID   0x20

Definition at line 24 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_DNUM   0x07

Definition at line 23 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_DREV   0x21

Definition at line 25 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_FDD   0x00

Definition at line 38 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_INDEX   0x03

Definition at line 22 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_INT   0x70

Definition at line 50 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_INT2   0x72

Definition at line 51 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_KBD   0x07

Definition at line 42 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_LDCR_F0   0xF0

Definition at line 52 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_NONE   0xff

Definition at line 44 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_OSC   0x24

Definition at line 28 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_PARALLEL   0x03

Definition at line 39 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_PCNT   0x22

Definition at line 26 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_PMGT   0x23

Definition at line 27 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_SERIAL1   0x04

Definition at line 40 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_SERIAL2   0x05

Definition at line 41 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_TEST1   0x2D

Definition at line 33 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_TEST2   0x2E

Definition at line 34 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_TEST3   0x2F

Definition at line 35 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_TEST4   0x2B

Definition at line 31 of file smsc_fdc37m81x.h.

#define SMSC_FDC37M81X_TEST5   0x2C

Definition at line 32 of file smsc_fdc37m81x.h.

Function Documentation

void smsc_fdc37m81x_config_beg ( void  )

Definition at line 71 of file smsc_fdc37m81x.c.

void smsc_fdc37m81x_config_end ( void  )

Definition at line 79 of file smsc_fdc37m81x.c.

u8 smsc_fdc37m81x_config_get ( u8  reg)

Definition at line 86 of file smsc_fdc37m81x.c.

void smsc_fdc37m81x_config_set ( u8  reg,
u8  val 
)

Definition at line 96 of file smsc_fdc37m81x.c.

unsigned long smsc_fdc37m81x_init ( unsigned long  port)

Definition at line 102 of file smsc_fdc37m81x.c.