2 .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH CSX_PARSE_CISTPL_SPCL 9F "Dec 20, 1996"
8 csx_Parse_CISTPL_SPCL \- parse the Special Purpose tuple
12 #include <sys/pccard.h>
16 \fBint32_t\fR \fBcsx_Parse_CISTPL_SPCL\fR(\fBclient_handle_t\fR \fIch\fR, \fBtuple_t *\fR\fItu\fR,
17 \fBcistpl_spcl_t *\fR\fIcsp\fR);
23 Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR
31 Client handle returned from \fBcsx_RegisterClient\fR(9F).
40 Pointer to a \fBtuple_t\fR structure (see \fBtuple\fR(9S)) returned by a call
41 to \fBcsx_GetFirstTuple\fR(9F) or \fBcsx_GetNextTuple\fR(9F).
50 Pointer to a \fBcistpl_spcl_t\fR structure which contains the parsed
51 \fBCISTPL_SPCL\fR tuple information upon return from this function.
57 This function parses the Special Purpose tuple, \fBCISTPL_SPCL,\fR into a form
58 usable by \fBPC \fRCard drivers.
61 The \fBCISTPL_SPCL\fR tuple is identified by an identification field that is
62 assigned by \fBPCMCIA \fRor JEIDA. A sequence field allows a series of
63 \fBCISTPL_SPCL\fR tuples to be used when the data exceeds the size that can be
64 stored in a single tuple; the maximum data area of a series of
65 \fBCISTPL_SPCL\fR tuples is unlimited. Another field gives the number of bytes
66 in the data field in this tuple.
70 The structure members of \fBcistpl_date_t\fR are:
74 uint32_t id; /* tuple contents identification */
75 uint32_t seq; /* data sequence number */
76 uint32_t bytes; /* number of bytes following */
77 uchar_t data[CIS_MAX_TUPLE_DATA_LEN];
83 The fields are defined as follows:
90 This field contains a \fBPCMCIA \fRor \fBJEIDA \fRassigned value that
91 identifies this series of one or more \fBCISTPL_SPCL\fR tuples. These field
92 values are assigned by contacting either \fBPCMCIA \fRor \fBJEIDA\fR.
101 This field contains a data sequence number. \fBCISTPL_SPCL_SEQ_END\fR is the
102 last tuple in sequence.
111 This field contains the number of data bytes in the
112 \fBdata[CIS_MAX_TUPLE_DATA_LEN]\fR.
121 The data component of this tuple.
128 \fB\fBCS_SUCCESS\fR\fR
131 Successful operation.
137 \fB\fBCS_BAD_HANDLE\fR\fR
140 Client handle is invalid.
146 \fB\fBCS_UNKNOWN_TUPLE\fR\fR
149 Parser does not know how to parse tuple.
155 \fB\fBCS_NO_CARD\fR\fR
158 No \fBPC \fRCard in socket.
164 \fB\fBCS_NO_CIS\fR\fR
167 No Card Information Structure (CIS) on \fBPC \fRCard.
173 \fB\fBCS_UNSUPPORTED_FUNCTION\fR\fR
176 No \fBPCMCIA \fRhardware installed.
182 This function may be called from user or kernel context.
186 \fBcsx_GetFirstTuple\fR(9F), \fBcsx_GetTupleData\fR(9F),
187 \fBcsx_RegisterClient\fR(9F), \fBcsx_ValidateCIS\fR(9F), \fBtuple\fR(9S)
190 \fIPC Card 95 Standard,\fR PCMCIA/JEIDA