iPXE
Data Structures | Macros | 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
 

Macros

#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
 

Macro Definition Documentation

◆ MAXPCCSOCKS

#define MAXPCCSOCKS   8

Definition at line 14 of file pcmcia.h.

◆ MAXPCCCONFIGS

#define MAXPCCCONFIGS   8

Definition at line 15 of file pcmcia.h.

◆ EINVAL

#define EINVAL   22

Definition at line 56 of file pcmcia.h.

◆ SS_WRPROT

#define SS_WRPROT   0x0001

Definition at line 61 of file pcmcia.h.

◆ SS_CARDLOCK

#define SS_CARDLOCK   0x0002

Definition at line 62 of file pcmcia.h.

◆ SS_EJECTION

#define SS_EJECTION   0x0004

Definition at line 63 of file pcmcia.h.

◆ SS_INSERTION

#define SS_INSERTION   0x0008

Definition at line 64 of file pcmcia.h.

◆ SS_BATDEAD

#define SS_BATDEAD   0x0010

Definition at line 65 of file pcmcia.h.

◆ SS_BATWARN

#define SS_BATWARN   0x0020

Definition at line 66 of file pcmcia.h.

◆ SS_READY

#define SS_READY   0x0040

Definition at line 67 of file pcmcia.h.

◆ SS_DETECT

#define SS_DETECT   0x0080

Definition at line 68 of file pcmcia.h.

◆ SS_POWERON

#define SS_POWERON   0x0100

Definition at line 69 of file pcmcia.h.

◆ SS_GPI

#define SS_GPI   0x0200

Definition at line 70 of file pcmcia.h.

◆ SS_STSCHG

#define SS_STSCHG   0x0400

Definition at line 71 of file pcmcia.h.

◆ SS_CARDBUS

#define SS_CARDBUS   0x0800

Definition at line 72 of file pcmcia.h.

◆ SS_3VCARD

#define SS_3VCARD   0x1000

Definition at line 73 of file pcmcia.h.

◆ SS_XVCARD

#define SS_XVCARD   0x2000

Definition at line 74 of file pcmcia.h.

◆ SS_PENDING

#define SS_PENDING   0x4000

Definition at line 75 of file pcmcia.h.

◆ SS_CAP_PAGE_REGS

#define SS_CAP_PAGE_REGS   0x0001

Definition at line 90 of file pcmcia.h.

◆ SS_CAP_VIRTUAL_BUS

#define SS_CAP_VIRTUAL_BUS   0x0002

Definition at line 91 of file pcmcia.h.

◆ SS_CAP_MEM_ALIGN

#define SS_CAP_MEM_ALIGN   0x0004

Definition at line 92 of file pcmcia.h.

◆ SS_CAP_STATIC_MAP

#define SS_CAP_STATIC_MAP   0x0008

Definition at line 93 of file pcmcia.h.

◆ SS_CAP_PCCARD

#define SS_CAP_PCCARD   0x4000

Definition at line 94 of file pcmcia.h.

◆ SS_CAP_CARDBUS

#define SS_CAP_CARDBUS   0x8000

Definition at line 95 of file pcmcia.h.

◆ SS_PWR_AUTO

#define SS_PWR_AUTO   0x0010

Definition at line 108 of file pcmcia.h.

◆ SS_IOCARD

#define SS_IOCARD   0x0020

Definition at line 109 of file pcmcia.h.

◆ SS_RESET

#define SS_RESET   0x0040

Definition at line 110 of file pcmcia.h.

◆ SS_DMA_MODE

#define SS_DMA_MODE   0x0080

Definition at line 111 of file pcmcia.h.

◆ SS_SPKR_ENA

#define SS_SPKR_ENA   0x0100

Definition at line 112 of file pcmcia.h.

◆ SS_OUTPUT_ENA

#define SS_OUTPUT_ENA   0x0200

Definition at line 113 of file pcmcia.h.

◆ SS_DEBOUNCED

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

Definition at line 114 of file pcmcia.h.

◆ SS_ZVCARD

#define SS_ZVCARD   0x0800

Definition at line 115 of file pcmcia.h.

◆ MAP_ACTIVE

#define MAP_ACTIVE   0x01

Definition at line 118 of file pcmcia.h.

◆ MAP_16BIT

#define MAP_16BIT   0x02

Definition at line 119 of file pcmcia.h.

◆ MAP_AUTOSZ

#define MAP_AUTOSZ   0x04

Definition at line 120 of file pcmcia.h.

◆ MAP_0WS

#define MAP_0WS   0x08

Definition at line 121 of file pcmcia.h.

◆ MAP_WRPROT

#define MAP_WRPROT   0x10

Definition at line 122 of file pcmcia.h.

◆ MAP_ATTRIB

#define MAP_ATTRIB   0x20

Definition at line 123 of file pcmcia.h.

◆ MAP_USE_WAIT

#define MAP_USE_WAIT   0x40

Definition at line 124 of file pcmcia.h.

◆ MAP_PREFETCH

#define MAP_PREFETCH   0x80

Definition at line 125 of file pcmcia.h.

◆ MAP_IOSPACE

#define MAP_IOSPACE   0x20

Definition at line 128 of file pcmcia.h.

Typedef Documentation

◆ u_char

typedef unsigned char u_char

Definition at line 6 of file pcmcia.h.

◆ u_short

typedef unsigned short u_short

Definition at line 7 of file pcmcia.h.

◆ u_int

typedef unsigned int u_int

Definition at line 8 of file pcmcia.h.

◆ u_long

typedef unsigned long u_long

Definition at line 9 of file pcmcia.h.

◆ ioaddr_t

typedef u_short ioaddr_t

Definition at line 11 of file pcmcia.h.

◆ ebpdriver_t

typedef enum ebpdriver_t ebpdriver_t

◆ interface_func_t

◆ ebpstatus_t

typedef enum ebpstatus_t ebpstatus_t

◆ socket_cap_t

typedef struct socket_cap_t socket_cap_t

◆ socket_state_t

◆ pccard_io_map

typedef struct pccard_io_map pccard_io_map

◆ pccard_mem_map

◆ cb_bridge_map

typedef struct cb_bridge_map cb_bridge_map

Enumeration Type Documentation

◆ ebpdriver_t

Enumerator
I82365 
SOMEDRIVER 

Definition at line 17 of file pcmcia.h.

Definition: pcmcia.h:17
ebpdriver_t
Definition: pcmcia.h:17

◆ interface_func_t

Enumerator
INIT 
SHUTDOWN 
MAPATTRMEM 
UNMAPATTRMEM 
SELECTCONFIG 

Definition at line 18 of file pcmcia.h.

◆ ebpstatus_t

Enumerator
EMPTY 
HASCARD 
INITIALIZED 
SUSPENDED 
OTHERDEVICE 
UNKNOWN 

Definition at line 19 of file pcmcia.h.

Function Documentation

◆ i82365_interfacer()

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

◆ sleepticks()

void sleepticks ( int  )

Variable Documentation

◆ sockets

int sockets

◆ pccsock

struct pccsock_t pccsock[MAXPCCSOCKS]

◆ pccsocks

u_int pccsocks

◆ dead_socket

socket_state_t dead_socket