2 .\" Copyright (c) 1997, 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_DEVICEGEO_A 9F "May 16, 1997"
8 csx_Parse_CISTPL_DEVICEGEO_A \- parse the Device Geo A tuple
12 #include <sys/pccard.h>
16 \fBint32_t\fR \fBcsx_Parse_CISTPL_DEVICEGEO_A\fR(\fBclient_handle_t\fR \fIch\fR, \fBtuple_t *\fR\fItp\fR,
17 \fBcistpl_devicegeo_t *\fR\fIpt\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_devicegeo_t\fR structure which contains the parsed
51 Device Geo A tuple information upon return from this function.
57 This function parses the Device Geo A tuple, \fBCISTPL_DEVICEGEO_A,\fR into a
58 form usable by \fBPC \fRCard drivers.
61 The \fBCISTPL_DEVICEGEO_A\fR tuple describes the device geometry of attribute
66 The structure members of \fBcistpl_devicegeo_t\fR are:
70 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].bus;
71 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].ebs;
72 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].rbs;
73 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].wbs;
74 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].part;
75 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].hwil;
81 The fields are defined as follows:
85 \fB\fBinfo[CISTPL_DEVICEGEO_MAX_PARTITIONS].bus\fR \fR
89 This field indicates the card interface width in bytes for the given partition.
95 \fB\fBinfo[CISTPL_DEVICEGEO_MAX_PARTITIONS].ebs\fR \fR
99 This field indicates the minimum erase block size for the given partition.
105 \fB\fBinfo[CISTPL_DEVICEGEO_MAX_PARTITIONS].rbs\fR \fR
109 This field indicates the minimum read block size for the given partition.
115 \fB\fBinfo[CISTPL_DEVICEGEO_MAX_PARTITIONS].wbs\fR \fR
119 This field indicates the minimum write block size for the given partition.
125 \fB\fBinfo[CISTPL_DEVICEGEO_MAX_PARTITIONS].part\fR \fR
129 This field indicates the segment partition subdivisions for the given
136 \fB\fBinfo[CISTPL_DEVICEGEO_MAX_PARTITIONS].hwil\fR \fR
140 This field indicates the hardware interleave for the given partition.
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) on \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_GetNextTuple\fR(9F),
206 \fBcsx_GetTupleData\fR(9F), \fBcsx_Parse_CISTPL_DEVICEGEO\fR(9F),
207 \fBcsx_RegisterClient\fR(9F), \fBtuple\fR(9S)
210 \fIPC Card 95 Standard, PCMCIA/JEIDA\fR