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_PARSETUPLE 9F "Dec 20, 1996"
8 csx_ParseTuple \- generic tuple parser
12 #include <sys/pccard.h>
16 \fBint32_t\fR \fBcsx_ParseTuple\fR(\fBclient_handle_t\fR \fIch\fR, \fBtuple_t *\fR\fItu\fR, \fBcisparse_t *\fR\fIcp\fR,
17 \fBcisdata_t\fR \fIcd\fR);
23 Solaris \fBDDI\fR Specific (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 \fBcisparse_t\fR structure that unifies all tuple parsing
60 Extended tuple data for some tuples.
66 This function is the generic tuple parser entry point.
70 The structure members of \fBcisparse_t\fR are:
74 typedef union cisparse_t {
75 cistpl_config_t cistpl_config;
76 cistpl_device_t cistpl_device;
77 cistpl_vers_1_t cistpl_vers_1;
78 cistpl_vers_2_t cistpl_vers_2;
79 cistpl_jedec_t cistpl_jedec;
80 cistpl_format_t cistpl_format;
81 cistpl_geometry_t cistpl_geometry;
82 cistpl_byteorder_t cistpl_byteorder;
83 cistpl_date_t cistpl_date;
84 cistpl_battery_t cistpl_battery;
85 cistpl_org_t cistpl_org;
86 cistpl_manfid_t cistpl_manfid;
87 cistpl_funcid_t cistpl_funcid;
88 cistpl_funce_t cistpl_funce;
89 cistpl_cftable_entry_t cistpl_cftable_entry;
90 cistpl_linktarget_t cistpl_linktarget;
91 cistpl_longlink_ac_t cistpl_longlink_ac;
92 cistpl_longlink_mfc_t cistpl_longlink_mfc;
93 cistpl_spcl_t cistpl_spcl;
94 cistpl_swil_t cistpl_swil;
95 cistpl_bar_t cistpl_bar;
96 cistpl_devicegeo_t cistpl_devicegeo;
97 cistpl_longlink_cb_t cistpl_longlink_cb;
98 cistpl_get_tuple_name_t cistpl_get_tuple_name;
107 \fB\fBCS_SUCCESS\fR \fR
110 Successful operation.
116 \fB\fBCS_BAD_HANDLE\fR \fR
119 Client handle is invalid.
125 \fB\fBCS_UNKNOWN_TUPLE\fR \fR
128 Parser does not know how to parse tuple.
134 \fB\fBCS_NO_CARD\fR \fR
137 No \fBPC\fR Card in socket.
143 \fB\fBCS_BAD_CIS\fR \fR
146 Generic parser error.
152 \fB\fBCS_NO_CIS\fR \fR
155 No Card Information Structure (\fBCIS\fR) on \fBPC\fR Card.
161 \fB\fBCS_UNSUPPORTED_FUNCTION\fR \fR
164 No \fBPCMCIA\fR hardware installed.
170 This function may be called from user or kernel context.
174 \fBcsx_GetFirstTuple\fR(9F), \fBcsx_GetTupleData\fR(9F),
175 \fBcsx_Parse_CISTPL_BATTERY\fR(9F), \fBcsx_Parse_CISTPL_BYTEORDER\fR(9F),
176 \fBcsx_Parse_CISTPL_CFTABLE_ENTRY\fR(9F), \fBcsx_Parse_CISTPL_CONFIG\fR(9F),
177 \fBcsx_Parse_CISTPL_DATE\fR(9F), \fBcsx_Parse_CISTPL_DEVICE\fR(9F),
178 \fBcsx_Parse_CISTPL_FUNCE\fR(9F), \fBcsx_Parse_CISTPL_FUNCID\fR(9F),
179 \fBcsx_Parse_CISTPL_JEDEC_C\fR(9F), \fBcsx_Parse_CISTPL_MANFID\fR(9F),
180 \fBcsx_Parse_CISTPL_SPCL\fR(9F), \fBcsx_Parse_CISTPL_VERS_1\fR(9F),
181 \fBcsx_Parse_CISTPL_VERS_2\fR(9F), \fBcsx_RegisterClient\fR(9F),
182 \fBcsx_ValidateCIS\fR(9F), \fBtuple\fR(9S)
185 \fIPC Card 95 Standard\fR, PCMCIA/JEIDA