CSX_PARSE_CISTPL_FORMAT(9F) | Kernel Functions for Drivers | CSX_PARSE_CISTPL_FORMAT(9F) |
csx_Parse_CISTPL_FORMAT - parse the Data Recording Format tuple
#include <sys/pccard.h> int32_t csx_Parse_CISTPL_FORMAT(client_handle_t ch, tuple_t *tu,
cistpl_format_t *pt);
illumos DDI Specific (illumos DDI)
ch
tu
pt
This function parses the Data Recording Format tuple, CISTPL_FORMAT, into a form usable by PC Card drivers.
The CISTPL_FORMAT tuple indicates the data recording format for a device partition.
The structure members of cistpl_format_t are:
uint32_t type; uint32_t edc_length; uint32_t edc_type; uint32_t offset; uint32_t nbytes; uint32_t dev.disk.bksize; uint32_t dev.disk.nblocks; uint32_t dev.disk.edcloc; uint32_t dev.mem.flags; uint32_t dev.mem.reserved; caddr_t dev.mem.address; uint32_t dev.mem.edcloc;
The fields are defined as follows:
type
TPLFMTTYPE_DISK
TPLFMTTYPE_MEM
TPLFMTTYPE_VS
edc_length
edc_type
offset
nbytes
dev.disk.bksize
dev.disk.nblocks
dev.disk.edcloc
dev.mem.flags
TPLFMTFLAGS_ADDR
TPLFMTFLAGS_AUTO
dev.mem.reserved
dev.mem.address
dev.mem.edcloc
CS_SUCCESS
CS_BAD_HANDLE
CS_UNKNOWN_TUPLE
CS_NO_CARD
CS_NO_CIS
CS_UNSUPPORTED_FUNCTION
This function may be called from user or kernel context.
csx_GetFirstTuple(9F), csx_GetTupleData(9F), csx_RegisterClient(9F), csx_ValidateCIS(9F), tuple(9S)
PC Card 95 Standard, PCMCIA/JEIDA
January 24, 1997 | OmniOS |