CSX_PARSE_CISTPL_DEVICE(9F) | Kernel Functions for Drivers | CSX_PARSE_CISTPL_DEVICE(9F) |
csx_Parse_CISTPL_DEVICE, csx_Parse_CISTPL_DEVICE_A, csx_Parse_CISTPL_DEVICE_OC, csx_Parse_CISTPL_DEVICE_OA - parse Device Information tuples
#include <sys/pccard.h> int32_t csx_Parse_CISTPL_DEVICE(client_handle_t ch, tuple_t *tu,
cistpl_device_t *cd);
int32_t csx_Parse_CISTPL_DEVICE_A(client_handle_t ch, tuple_t *tu,
cistpl_device_t *cd);
int32_t csx_Parse_CISTPL_DEVICE_OC(client_handle_t ch, tuple_t *tu,
cistpl_device_t *cd);
int32_t csx_Parse_CISTPL_DEVICE_OA(client_handle_t ch, tuple_t *tu,
cistpl_device_t *cd);
illumos DDI Specific (illumos DDI)
ch
tu
cd
csx_Parse_CISTPL_DEVICE() and csx_Parse_CISTPL_DEVICE_A() parse the 5 volt Device Information tuples, CISTPL_DEVICE and CISTPL_DEVICE_A, respectively, into a form usable by PC Card drivers.
csx_Parse_CISTPL_DEVICE_OC() and csx_Parse_CISTPL_DEVICE_OA() parse the Other Condition Device Information tuples, CISTPL_DEVICE_OC and CISTPL_DEVICE_OA, respectively, into a form usable by PC Card drivers.
The CISTPL_DEVICE and CISTPL_DEVICE_A tuples are used to describe the card's device information, such as device speed, device size, device type, and address space layout information for Common Memory or Attribute Memory space, respectively.
The CISTPL_DEVICE_OC and CISTPL_DEVICE_OA tuples are used to describe the information about the card's device under a set of operating conditions for Common Memory or Attribute Memory space, respectively.
The structure members of cistpl_device_t are:
uint32_t num_devices; /* number of devices found */ cistpl_device_node_t devnode[CISTPL_DEVICE_MAX_DEVICES];
The structure members of cistpl_device_node_t are:
uint32_t flags; /* flags specific to this device */ uint32_t speed; /* device speed in device
/* speed code format */ uint32_t nS_speed; /* device speed in nS */ uint32_t type; /* device type */ uint32_t size; /* device size */ uint32_t size_in_bytes; /* device size in bytes */
The fields are defined as follows:
flags
CISTPL_DEVICE_WPS
Bits which are applicable only for CISTPL_DEVICE_OC and CISTPL_DEVICE_OA are:
CISTPL_DEVICE_OC_MWAIT
CISTPL_DEVICE_OC_Vcc_MASK
CISTPL_DEVICE_OC_Vcc5
CISTPL_DEVICE_OC_Vcc33
CISTPL_DEVICE_OC_VccXX
CISTPL_DEVICE_OC_VccYY
speed
nS_speed
size
size_in_bytes
type
CISTPL_DEVICE_DTYPE_NULL
CISTPL_DEVICE_DTYPE_ROM
CISTPL_DEVICE_DTYPE_OTPROM
CISTPL_DEVICE_DTYPE_EPROM
CISTPL_DEVICE_DTYPE_EEPROM
CISTPL_DEVICE_DTYPE_FLASH
CISTPL_DEVICE_DTYPE_SRAM
CISTPL_DEVICE_DTYPE_DRAM
CISTPL_DEVICE_DTYPE_FUNCSPEC
CISTPL_DEVICE_DTYPE_EXTEND
CS_SUCCESS
CS_BAD_HANDLE
CS_UNKNOWN_TUPLE
CS_NO_CARD
CS_NO_CIS
CS_UNSUPPORTED_FUNCTION
These functions may be called from user or kernel context.
csx_GetFirstTuple(9F), csx_GetTupleData(9F), csx_Parse_CISTPL_JEDEC_C(9F), csx_RegisterClient(9F), csx_ValidateCIS(9F), tuple(9S)
PC Card 95 Standard, PCMCIA/JEIDA
December 20, 1996 | OmniOS |