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_CONVERTSIZE 9F "Jul 19, 1996"
8 csx_ConvertSize \- convert device sizes
12 #include <sys/pccard.h>
16 \fBint32_t\fR \fBcsx_ConvertSize\fR(\fBconvert_size_t *\fR\fIcs\fR);
22 Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR
30 Pointer to a \fBconvert_size_t\fR structure.
36 \fBcsx_ConvertSize()\fR is a Solaris-specific extension that provides a method
37 for clients to convert from one type of device size representation to another,
38 that is, from \fIdevsize\fR format to \fIbytes\fR and vice versa.
42 The structure members of \fBconvert_size_t\fR are:
54 The fields are defined as follows:
58 \fB\fBAttributes\fR \fR
61 This is a bit-mapped field that identifies the type of size conversion to be
62 performed. The field is defined as follows:
66 \fB\fBCONVERT_BYTES_TO_DEVSIZE\fR\fR
69 Converts \fIbytes\fR to \fIdevsize\fR format.
75 \fB\fBCONVERT_DEVSIZE_TO_BYTES\fR\fR
78 Converts \fIdevsize\fR format to \fIbytes\fR.
89 If \fBCONVERT_BYTES_TO_DEVSIZE\fR is set, the value in the \fBbytes\fR field is
90 converted to a \fIdevsize\fR format and returned in the \fBdevsize\fR field.
99 If \fBCONVERT_DEVSIZE_TO_BYTES\fR is set, the value in the \fBdevsize\fR field
100 is converted to a \fIbytes\fR value and returned in the \fBbytes\fR field.
107 \fB\fBCS_SUCCESS\fR \fR
110 Successful operation.
116 \fB\fBCS_BAD_SIZE\fR \fR
119 Invalid \fIbytes\fR or \fIdevsize\fR.
125 \fB\fBCS_UNSUPPORTED_FUNCTION\fR \fR
128 No \fBPCMCIA \fRhardware installed.
134 This function may be called from user or kernel context.
138 \fBcsx_ModifyWindow\fR(9F), \fBcsx_RequestWindow\fR(9F)
141 \fIPCCard 95 Standard, PCMCIA/JEIDA\fR