iPXE
Data Structures | Defines | Typedefs | Enumerations | Functions | Variables
pcmcia.h File Reference

Go to the source code of this file.

Data Structures

struct  driver_interact_t
struct  pccsock_t
struct  pcc_config_t
struct  socket_cap_t
struct  socket_state_t
struct  pccard_io_map
struct  pccard_mem_map
struct  cb_bridge_map

Defines

#define MAXPCCSOCKS   8
#define MAXPCCCONFIGS   8
#define EINVAL   22
#define SS_WRPROT   0x0001
#define SS_CARDLOCK   0x0002
#define SS_EJECTION   0x0004
#define SS_INSERTION   0x0008
#define SS_BATDEAD   0x0010
#define SS_BATWARN   0x0020
#define SS_READY   0x0040
#define SS_DETECT   0x0080
#define SS_POWERON   0x0100
#define SS_GPI   0x0200
#define SS_STSCHG   0x0400
#define SS_CARDBUS   0x0800
#define SS_3VCARD   0x1000
#define SS_XVCARD   0x2000
#define SS_PENDING   0x4000
#define SS_CAP_PAGE_REGS   0x0001
#define SS_CAP_VIRTUAL_BUS   0x0002
#define SS_CAP_MEM_ALIGN   0x0004
#define SS_CAP_STATIC_MAP   0x0008
#define SS_CAP_PCCARD   0x4000
#define SS_CAP_CARDBUS   0x8000
#define SS_PWR_AUTO   0x0010
#define SS_IOCARD   0x0020
#define SS_RESET   0x0040
#define SS_DMA_MODE   0x0080
#define SS_SPKR_ENA   0x0100
#define SS_OUTPUT_ENA   0x0200
#define SS_DEBOUNCED   0x0400 /* Tell driver that the debounce delay has ended */
#define SS_ZVCARD   0x0800
#define MAP_ACTIVE   0x01
#define MAP_16BIT   0x02
#define MAP_AUTOSZ   0x04
#define MAP_0WS   0x08
#define MAP_WRPROT   0x10
#define MAP_ATTRIB   0x20
#define MAP_USE_WAIT   0x40
#define MAP_PREFETCH   0x80
#define MAP_IOSPACE   0x20

Typedefs

typedef unsigned char u_char
typedef unsigned short u_short
typedef unsigned int u_int
typedef unsigned long u_long
typedef u_short ioaddr_t
typedef enum ebpdriver_t ebpdriver_t
typedef enum interface_func_t interface_func_t
typedef enum ebpstatus_t ebpstatus_t
typedef struct socket_cap_t socket_cap_t
typedef struct socket_state_t socket_state_t
typedef struct pccard_io_map pccard_io_map
typedef struct pccard_mem_map pccard_mem_map
typedef struct cb_bridge_map cb_bridge_map

Enumerations

enum  ebpdriver_t { I82365, SOMEDRIVER }
enum  interface_func_t {
  INIT, SHUTDOWN, MAPATTRMEM, UNMAPATTRMEM,
  SELECTCONFIG
}
enum  ebpstatus_t {
  EMPTY, HASCARD, INITIALIZED, SUSPENDED,
  OTHERDEVICE, UNKNOWN
}

Functions

int i82365_interfacer (interface_func_t, int, int, int, void *)
void sleepticks (int)

Variables

int sockets
struct pccsock_t pccsock [MAXPCCSOCKS]
u_int pccsocks
socket_state_t dead_socket

Define Documentation

#define MAXPCCSOCKS   8

Definition at line 14 of file pcmcia.h.

#define MAXPCCCONFIGS   8

Definition at line 15 of file pcmcia.h.

#define EINVAL   22

Definition at line 56 of file pcmcia.h.

#define SS_WRPROT   0x0001

Definition at line 61 of file pcmcia.h.

#define SS_CARDLOCK   0x0002

Definition at line 62 of file pcmcia.h.

#define SS_EJECTION   0x0004

Definition at line 63 of file pcmcia.h.

#define SS_INSERTION   0x0008

Definition at line 64 of file pcmcia.h.

#define SS_BATDEAD   0x0010

Definition at line 65 of file pcmcia.h.

#define SS_BATWARN   0x0020

Definition at line 66 of file pcmcia.h.

#define SS_READY   0x0040

Definition at line 67 of file pcmcia.h.

#define SS_DETECT   0x0080

Definition at line 68 of file pcmcia.h.

#define SS_POWERON   0x0100

Definition at line 69 of file pcmcia.h.

#define SS_GPI   0x0200

Definition at line 70 of file pcmcia.h.

#define SS_STSCHG   0x0400

Definition at line 71 of file pcmcia.h.

#define SS_CARDBUS   0x0800

Definition at line 72 of file pcmcia.h.

#define SS_3VCARD   0x1000

Definition at line 73 of file pcmcia.h.

#define SS_XVCARD   0x2000

Definition at line 74 of file pcmcia.h.

#define SS_PENDING   0x4000

Definition at line 75 of file pcmcia.h.

#define SS_CAP_PAGE_REGS   0x0001

Definition at line 90 of file pcmcia.h.

#define SS_CAP_VIRTUAL_BUS   0x0002

Definition at line 91 of file pcmcia.h.

#define SS_CAP_MEM_ALIGN   0x0004

Definition at line 92 of file pcmcia.h.

#define SS_CAP_STATIC_MAP   0x0008

Definition at line 93 of file pcmcia.h.

#define SS_CAP_PCCARD   0x4000

Definition at line 94 of file pcmcia.h.

#define SS_CAP_CARDBUS   0x8000

Definition at line 95 of file pcmcia.h.

#define SS_PWR_AUTO   0x0010

Definition at line 108 of file pcmcia.h.

#define SS_IOCARD   0x0020

Definition at line 109 of file pcmcia.h.

#define SS_RESET   0x0040

Definition at line 110 of file pcmcia.h.

#define SS_DMA_MODE   0x0080

Definition at line 111 of file pcmcia.h.

#define SS_SPKR_ENA   0x0100

Definition at line 112 of file pcmcia.h.

#define SS_OUTPUT_ENA   0x0200

Definition at line 113 of file pcmcia.h.

#define SS_DEBOUNCED   0x0400 /* Tell driver that the debounce delay has ended */

Definition at line 114 of file pcmcia.h.

#define SS_ZVCARD   0x0800

Definition at line 115 of file pcmcia.h.

#define MAP_ACTIVE   0x01

Definition at line 118 of file pcmcia.h.

#define MAP_16BIT   0x02

Definition at line 119 of file pcmcia.h.

#define MAP_AUTOSZ   0x04

Definition at line 120 of file pcmcia.h.

#define MAP_0WS   0x08

Definition at line 121 of file pcmcia.h.

#define MAP_WRPROT   0x10

Definition at line 122 of file pcmcia.h.

#define MAP_ATTRIB   0x20

Definition at line 123 of file pcmcia.h.

#define MAP_USE_WAIT   0x40

Definition at line 124 of file pcmcia.h.

#define MAP_PREFETCH   0x80

Definition at line 125 of file pcmcia.h.

#define MAP_IOSPACE   0x20

Definition at line 128 of file pcmcia.h.


Typedef Documentation

typedef unsigned char u_char

Definition at line 6 of file pcmcia.h.

typedef unsigned short u_short

Definition at line 7 of file pcmcia.h.

typedef unsigned int u_int

Definition at line 8 of file pcmcia.h.

typedef unsigned long u_long

Definition at line 9 of file pcmcia.h.

typedef u_short ioaddr_t

Definition at line 11 of file pcmcia.h.

typedef enum ebpdriver_t ebpdriver_t
typedef enum ebpstatus_t ebpstatus_t
typedef struct socket_cap_t socket_cap_t
typedef struct pccard_io_map pccard_io_map
typedef struct cb_bridge_map cb_bridge_map

Enumeration Type Documentation

Enumerator:
I82365 
SOMEDRIVER 

Definition at line 17 of file pcmcia.h.

Enumerator:
INIT 
SHUTDOWN 
MAPATTRMEM 
UNMAPATTRMEM 
SELECTCONFIG 

Definition at line 18 of file pcmcia.h.

Enumerator:
EMPTY 
HASCARD 
INITIALIZED 
SUSPENDED 
OTHERDEVICE 
UNKNOWN 

Definition at line 19 of file pcmcia.h.


Function Documentation

int i82365_interfacer ( interface_func_t  ,
int  ,
int  ,
int  ,
void *   
)
void sleepticks ( int  )

Variable Documentation

int sockets