Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
amipcmcia.h File Reference
#include <asm/amigayle.h>

Go to the source code of this file.

Macros

#define PCMCIA_INSERTED   (gayle.cardstatus & GAYLE_CS_CCDET)
 
#define PCMCIA_0V   0
 
#define PCMCIA_5V   5
 
#define PCMCIA_12V   12
 
#define PCMCIA_SPEED_100NS   100
 
#define PCMCIA_SPEED_150NS   150
 
#define PCMCIA_SPEED_250NS   250
 
#define PCMCIA_SPEED_720NS   720
 
#define CISTPL_NULL   0x00
 
#define CISTPL_DEVICE   0x01
 
#define CISTPL_LONGLINK_CB   0x02
 
#define CISTPL_CONFIG_CB   0x04
 
#define CISTPL_CFTABLE_ENTRY_CB   0x05
 
#define CISTPL_LONGLINK_MFC   0x06
 
#define CISTPL_BAR   0x07
 
#define CISTPL_CHECKSUM   0x10
 
#define CISTPL_LONGLINK_A   0x11
 
#define CISTPL_LONGLINK_C   0x12
 
#define CISTPL_LINKTARGET   0x13
 
#define CISTPL_NO_LINK   0x14
 
#define CISTPL_VERS_1   0x15
 
#define CISTPL_ALTSTR   0x16
 
#define CISTPL_DEVICE_A   0x17
 
#define CISTPL_JEDEC_C   0x18
 
#define CISTPL_JEDEC_A   0x19
 
#define CISTPL_CONFIG   0x1a
 
#define CISTPL_CFTABLE_ENTRY   0x1b
 
#define CISTPL_DEVICE_OC   0x1c
 
#define CISTPL_DEVICE_OA   0x1d
 
#define CISTPL_DEVICE_GEO   0x1e
 
#define CISTPL_DEVICE_GEO_A   0x1f
 
#define CISTPL_MANFID   0x20
 
#define CISTPL_FUNCID   0x21
 
#define CISTPL_FUNCE   0x22
 
#define CISTPL_SWIL   0x23
 
#define CISTPL_END   0xff
 
#define CISTPL_FUNCID_MULTI   0x00
 
#define CISTPL_FUNCID_MEMORY   0x01
 
#define CISTPL_FUNCID_SERIAL   0x02
 
#define CISTPL_FUNCID_PARALLEL   0x03
 
#define CISTPL_FUNCID_FIXED   0x04
 
#define CISTPL_FUNCID_VIDEO   0x05
 
#define CISTPL_FUNCID_NETWORK   0x06
 
#define CISTPL_FUNCID_AIMS   0x07
 
#define CISTPL_FUNCID_SCSI   0x08
 

Functions

void pcmcia_reset (void)
 
int pcmcia_copy_tuple (unsigned char tuple_id, void *tuple, int max_len)
 
void pcmcia_program_voltage (int voltage)
 
void pcmcia_access_speed (int speed)
 
void pcmcia_write_enable (void)
 
void pcmcia_write_disable (void)
 

Macro Definition Documentation

#define CISTPL_ALTSTR   0x16

Definition at line 82 of file amipcmcia.h.

#define CISTPL_BAR   0x07

Definition at line 75 of file amipcmcia.h.

#define CISTPL_CFTABLE_ENTRY   0x1b

Definition at line 87 of file amipcmcia.h.

#define CISTPL_CFTABLE_ENTRY_CB   0x05

Definition at line 73 of file amipcmcia.h.

#define CISTPL_CHECKSUM   0x10

Definition at line 76 of file amipcmcia.h.

#define CISTPL_CONFIG   0x1a

Definition at line 86 of file amipcmcia.h.

#define CISTPL_CONFIG_CB   0x04

Definition at line 72 of file amipcmcia.h.

#define CISTPL_DEVICE   0x01

Definition at line 70 of file amipcmcia.h.

#define CISTPL_DEVICE_A   0x17

Definition at line 83 of file amipcmcia.h.

#define CISTPL_DEVICE_GEO   0x1e

Definition at line 90 of file amipcmcia.h.

#define CISTPL_DEVICE_GEO_A   0x1f

Definition at line 91 of file amipcmcia.h.

#define CISTPL_DEVICE_OA   0x1d

Definition at line 89 of file amipcmcia.h.

#define CISTPL_DEVICE_OC   0x1c

Definition at line 88 of file amipcmcia.h.

#define CISTPL_END   0xff

Definition at line 96 of file amipcmcia.h.

#define CISTPL_FUNCE   0x22

Definition at line 94 of file amipcmcia.h.

#define CISTPL_FUNCID   0x21

Definition at line 93 of file amipcmcia.h.

#define CISTPL_FUNCID_AIMS   0x07

Definition at line 107 of file amipcmcia.h.

#define CISTPL_FUNCID_FIXED   0x04

Definition at line 104 of file amipcmcia.h.

#define CISTPL_FUNCID_MEMORY   0x01

Definition at line 101 of file amipcmcia.h.

#define CISTPL_FUNCID_MULTI   0x00

Definition at line 100 of file amipcmcia.h.

#define CISTPL_FUNCID_NETWORK   0x06

Definition at line 106 of file amipcmcia.h.

#define CISTPL_FUNCID_PARALLEL   0x03

Definition at line 103 of file amipcmcia.h.

#define CISTPL_FUNCID_SCSI   0x08

Definition at line 108 of file amipcmcia.h.

#define CISTPL_FUNCID_SERIAL   0x02

Definition at line 102 of file amipcmcia.h.

#define CISTPL_FUNCID_VIDEO   0x05

Definition at line 105 of file amipcmcia.h.

#define CISTPL_JEDEC_A   0x19

Definition at line 85 of file amipcmcia.h.

#define CISTPL_JEDEC_C   0x18

Definition at line 84 of file amipcmcia.h.

#define CISTPL_LINKTARGET   0x13

Definition at line 79 of file amipcmcia.h.

#define CISTPL_LONGLINK_A   0x11

Definition at line 77 of file amipcmcia.h.

#define CISTPL_LONGLINK_C   0x12

Definition at line 78 of file amipcmcia.h.

#define CISTPL_LONGLINK_CB   0x02

Definition at line 71 of file amipcmcia.h.

#define CISTPL_LONGLINK_MFC   0x06

Definition at line 74 of file amipcmcia.h.

#define CISTPL_MANFID   0x20

Definition at line 92 of file amipcmcia.h.

#define CISTPL_NO_LINK   0x14

Definition at line 80 of file amipcmcia.h.

#define CISTPL_NULL   0x00

Definition at line 69 of file amipcmcia.h.

#define CISTPL_SWIL   0x23

Definition at line 95 of file amipcmcia.h.

#define CISTPL_VERS_1   0x15

Definition at line 81 of file amipcmcia.h.

#define PCMCIA_0V   0

Definition at line 56 of file amipcmcia.h.

#define PCMCIA_12V   12

Definition at line 58 of file amipcmcia.h.

#define PCMCIA_5V   5

Definition at line 57 of file amipcmcia.h.

#define PCMCIA_INSERTED   (gayle.cardstatus & GAYLE_CS_CCDET)

Definition at line 52 of file amipcmcia.h.

#define PCMCIA_SPEED_100NS   100

Definition at line 62 of file amipcmcia.h.

#define PCMCIA_SPEED_150NS   150

Definition at line 63 of file amipcmcia.h.

#define PCMCIA_SPEED_250NS   250

Definition at line 64 of file amipcmcia.h.

#define PCMCIA_SPEED_720NS   720

Definition at line 65 of file amipcmcia.h.

Function Documentation

void pcmcia_access_speed ( int  speed)

Definition at line 93 of file pcmcia.c.

int pcmcia_copy_tuple ( unsigned char  tuple_id,
void tuple,
int  max_len 
)

Definition at line 41 of file pcmcia.c.

void pcmcia_program_voltage ( int  voltage)

Definition at line 69 of file pcmcia.c.

void pcmcia_reset ( void  )

Definition at line 26 of file pcmcia.c.

void pcmcia_write_disable ( void  )

Definition at line 117 of file pcmcia.c.

void pcmcia_write_enable ( void  )

Definition at line 111 of file pcmcia.c.