2 .\" Copyright (c) 2000, Sun Microsystems, Inc.
3 .\" All Rights Reserved
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH CSX_PARSE_CISTPL_BYTEORDER 9F "Dec 20, 1996"
9 csx_Parse_CISTPL_BYTEORDER \- parse the Byte Order tuple
13 #include <sys/pccard.h>
17 \fBint32_t\fR \fBcsx_Parse_CISTPL_BYTEORDER\fR(\fBclient_handle_t\fR \fIch\fR, \fBtuple_t *\fR\fItu\fR,
18 \fBcistpl_byteorder_t *\fR\fIcbo\fR);
24 Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR
32 Client handle returned from \fBcsx_RegisterClient\fR(9F).
41 Pointer to a \fBtuple_t\fR structure (see \fBtuple\fR(9S)) returned by a call
42 to \fBcsx_GetFirstTuple\fR(9F) or \fBcsx_GetNextTuple\fR(9F).
51 Pointer to a \fBcistpl_byteorder_t\fR structure which contains the parsed
52 \fBCISTPL_BYTEORDER\fR tuple information upon return from this function.
58 This function parses the Byte Order tuple, \fBCISTPL_BYTEORDER\fR, into a form
59 usable by \fBPC \fRCard drivers.
62 The \fBCISTPL_BYTEORDER\fR tuple shall only appear in a partition tuple set for
63 a memory-like partition. It specifies two parameters: the order for multi-byte
64 data, and the order in which bytes map into words for 16-bit cards.
68 The structure members of \fBcistpl_byteorder_t\fR are:
72 uint32_t order; /* byte order code */
73 uint32_t map; /* byte mapping code */
79 The fields are defined as follows:
86 This field specifies the byte order for multi-byte numeric data.
113 This field specifies the byte mapping for 16-bit or wider cards.
120 Byte zero is least significant byte
126 \fBTPLBYTEMAP_HIGH\fR
129 Byte zero is most significant byte
138 Vendor specific mapping
147 \fB\fBCS_SUCCESS\fR \fR
150 Successful operation.
156 \fB\fBCS_BAD_HANDLE\fR \fR
159 Client handle is invalid.
165 \fB\fBCS_UNKNOWN_TUPLE\fR \fR
168 Parser does not know how to parse tuple.
174 \fB\fBCS_NO_CARD\fR \fR
177 No \fBPC \fRCard in socket.
183 \fB\fBCS_NO_CIS\fR \fR
186 No Card Information Structure (CIS) \fBPC \fRCard.
192 \fB\fBCS_UNSUPPORTED_FUNCTION\fR \fR
195 No \fBPCMCIA \fRhardware installed.
201 This function may be called from user or kernel context.
205 \fBcsx_GetFirstTuple\fR(9F), \fBcsx_GetTupleData\fR(9F),
206 \fBcsx_RegisterClient\fR(9F), \fBcsx_ValidateCIS\fR(9F), \fBtuple\fR(9S)
209 \fIPC Card 95 Standard, PCMCIA/JEIDA\fR