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_CONVERTSPEED 9F "Jul 19, 1996"
8 csx_ConvertSpeed \- convert device speeds
12 #include <sys/pccard.h>
16 \fBint32_t\fR \fBcsx_ConvertSpeed\fR(\fBconvert_speed_t *\fR\fIcs\fR);
22 Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR
30 Pointer to a \fBconvert_speed_t\fR structure.
36 This function is a Solaris-specific extension that provides a method for
37 clients to convert from one type of device speed representation to another,
38 that is, from \fIdevspeed\fR format to \fInS\fR and vice versa.
42 The structure members of \fBconvert_speed_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 speed conversion to be
62 performed. The field is defined as follows:
66 \fB\fBCONVERT_NS_TO_DEVSPEED\fR\fR
69 Converts \fInS\fR to \fIdevspeed\fR format
75 \fB\fBCONVERT_DEVSPEED_TO_NS\fR\fR
78 Converts \fIdevspeed\fR format to \fInS\fR
89 If \fBCONVERT_NS_TO_DEVSPEED\fR is set, the value in the \fBnS\fR field is
90 converted to a \fIdevspeed\fR format and returned in the \fBdevspeed\fR field.
99 If \fBCONVERT_DEVSPEED_TO_NS\fR is set, the value in the \fBdevspeed\fR field
100 is converted to an \fInS\fR value and returned in the \fBnS\fR field.
107 \fB\fBCS_SUCCESS\fR \fR
110 Successful operation.
116 \fB\fBCS_BAD_SPEED\fR \fR
119 Invalid \fInS\fR or \fIdevspeed\fR.
125 \fB\fBCS_BAD_ATTRIBUTE\fR \fR
128 Bad \fBAttributes\fR value.
134 \fB\fBCS_UNSUPPORTED_FUNCTION\fR \fR
137 No \fBPCMCIA \fRhardware installed.
143 This function may be called from user or kernel context.
147 \fBcsx_ModifyWindow\fR(9F), \fBcsx_RequestWindow\fR(9F)
150 \fIPC Card 95 Standard, PCMCIA/JEIDA\fR