CSX_PARSE_CISTPL_CONFIG(9F) | Kernel Functions for Drivers | CSX_PARSE_CISTPL_CONFIG(9F) |
csx_Parse_CISTPL_CONFIG - parse Configuration tuple
#include <sys/pccard.h> int32_t csx_Parse_CISTPL_CONFIG(client_handle_t ch, tuple_t *tu,
cistpl_config_t *cc);
illumos DDI Specific (illumos DDI)
ch
tu
cc
This function parses the Configuration tuple, CISTPL_CONFIG, into a form usable by PC Card drivers. The CISTPL_CONFIG tuple is used to describe the general characteristics of 16-bit PC Cards containing I/O devices or using custom interfaces. It may also describe PC Cards, including Memory Only cards, which exceed nominal power supply specifications, or which need descriptions of their power requirements or other information.
The structure members of cistpl_config_t are:
uint32_t present; /* register present flags */ uint32_t nr; /* number of config registers found */ uint32_t hr; /* highest config register index found */ uint32_t regs[CISTPL_CONFIG_MAX_CONFIG_REGS]; /* reg offsets */ uint32_t base; /* base offset of config registers */ uint32_t last; /* last config index */
The fields are defined as follows:
present
CONFIG_OPTION_REG_PRESENT
CONFIG_STATUS_REG_PRESENT
CONFIG_PINREPL_REG_PRESENT
CONFIG_COPY_REG_PRESENT
CONFIG_EXSTAT_REG_PRESENT
CONFIG_IOBASE0_REG_PRESENT
CONFIG_IOBASE1_REG_PRESENT
CONFIG_IOBASE2_REG_PRESENT
CONFIG_IOBASE3_REG_PRESENT
CONFIG_IOLIMIT_REG_PRESENT
nr
hr
regs
base
last
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_Parse_CISTPL_CFTABLE_ENTRY(9F), csx_RegisterClient(9F), csx_ValidateCIS(9F), tuple(9S)
PC Card 95 Standard, PCMCIA/JEIDA
PC Card drivers should not attempt to use configurations beyond the "last" member in the cistpl_config_t structure.
December 20, 1996 | OmniOS |