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_FORMAT 9F "Jan 24, 1997"
8 csx_Parse_CISTPL_FORMAT \- parse the Data Recording Format tuple
12 #include <sys/pccard.h>
16 \fBint32_t\fR \fBcsx_Parse_CISTPL_FORMAT\fR(\fBclient_handle_t\fR \fIch\fR, \fBtuple_t *\fR\fItu\fR,
17 \fBcistpl_format_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_format_t\fR structure which contains the parsed
51 \fBCISTPL_FORMAT\fR tuple information upon return from this function.
57 This function parses the Data Recording Format tuple, \fBCISTPL_FORMAT,\fR into
58 a form usable by \fBPC \fRCard drivers.
61 The \fBCISTPL_FORMAT\fR tuple indicates the data recording format for a device
66 The structure members of \fBcistpl_format_t\fR are:
75 uint32_t dev.disk.bksize;
76 uint32_t dev.disk.nblocks;
77 uint32_t dev.disk.edcloc;
78 uint32_t dev.mem.flags;
79 uint32_t dev.mem.reserved;
80 caddr_t dev.mem.address;
81 uint32_t dev.mem.edcloc;
87 The fields are defined as follows:
94 This field indicates the type of device:
119 vendor-specific device
127 \fB\fBedc_length\fR\fR
130 This field indicates the error detection code length.
139 This field indicates the error detection code type.
148 This field indicates the offset of the first byte of data in this partition.
157 This field indicates the number of bytes of data in this partition
163 \fB\fBdev.disk.bksize\fR\fR
166 This field indicates the block size, for disk devices.
172 \fB\fBdev.disk.nblocks\fR\fR
175 This field indicates the number of blocks, for disk devices.
181 \fB\fBdev.disk.edcloc\fR\fR
184 This field indicates the location of the error detection code, for disk
191 \fB\fBdev.mem.flags\fR\fR
194 This field provides flags, for memory devices. Valid flags are:
198 \fBTPLFMTFLAGS_ADDR\fR
207 \fBTPLFMTFLAGS_AUTO\fR
210 automatically map memory region
218 \fB\fBdev.mem.reserved\fR\fR
221 This field is reserved.
227 \fB\fBdev.mem.address\fR\fR
230 This field indicates the physical address, for memory devices.
236 \fB\fBdev.mem.edcloc\fR\fR
239 This field indicates the location of the error detection code, for memory
247 \fB\fBCS_SUCCESS\fR\fR
250 Successful operation.
256 \fB\fBCS_BAD_HANDLE\fR\fR
259 Client handle is invalid.
265 \fB\fBCS_UNKNOWN_TUPLE\fR\fR
268 Parser does not know how to parse tuple.
274 \fB\fBCS_NO_CARD\fR\fR
277 No \fBPC \fRCard in socket.
283 \fB\fBCS_NO_CIS\fR\fR
286 No Card Information Structure (CIS) on \fBPC \fRCard.
292 \fB\fBCS_UNSUPPORTED_FUNCTION\fR\fR
295 No \fBPCMCIA \fRhardware installed.
301 This function may be called from user or kernel context.
305 \fBcsx_GetFirstTuple\fR(9F), \fBcsx_GetTupleData\fR(9F),
306 \fBcsx_RegisterClient\fR(9F), \fBcsx_ValidateCIS\fR(9F), \fBtuple\fR(9S)
309 \fIPC Card 95 Standard, PCMCIA/JEIDA\fR