CSX_GETFIRSTTUPLE(9F) | Kernel Functions for Drivers | CSX_GETFIRSTTUPLE(9F) |
csx_GetFirstTuple, csx_GetNextTuple - return Card Information Structure tuple
#include <sys/pccard.h> int32_t csx_GetFirstTuple(client_handle_t ch, tuple_t *tu);
int32_t csx_GetNextTuple(client_handle_t ch, tuple_t *tu);
illumos DDI Specific (illumos DDI)
ch
tu
The functions csx_GetFirstTuple() and csx_GetNextTuple() return the first and next tuple, respectively, of the specified type in the Card Information Structure (CIS) for the specified socket.
The structure members of tuple_t are:
uint32_t Socket; /* socket number */ uint32_t Attributes; /* Attributes */ cisdata_t DesiredTuple; /* tuple to search for or flags */ cisdata_t TupleCode; /* tuple type code */ cisdata_t TupleLink; /* tuple data body size */
The fields are defined as follows:
Socket
Attributes
TUPLE_RETURN_LINK
CISTPL_NULL CISTPL_LONGLINK_MFC CISTPL_LONGLINK_A CISTPL_LINKTARGET CISTPL_LONGLINK_C CISTPL_NO_LINK CISTPL_LONGLINK_CB CISTPL_END
TUPLE_RETURN_IGNORED_TUPLES
DesiredTuple
TupleCode,TupleLink
Since the csx_GetFirstTuple(), csx_GetNextTuple(), and csx_GetTupleData(9F) functions all share the same tuple_t structure, some fields in the tuple_t structure are unused or reserved when calling this function and these fields must not be initialized by the client.
CS_SUCCESS
CS_BAD_HANDLE
CS_NO_CARD
CS_NO_CIS
CS_NO_MORE_ITEMS
CS_UNSUPPORTED_FUNCTION
These functions may be called from user or kernel context.
csx_GetTupleData(9F), csx_ParseTuple(9F), csx_RegisterClient(9F), csx_ValidateCIS(9F), tuple(9S)
PC Card 95Standard, PCMCIA/JEIDA
December 20, 1996 | OmniOS |