diff options
Diffstat (limited to 'usr/src/man/man9f/csx_GetStatus.9f')
-rw-r--r-- | usr/src/man/man9f/csx_GetStatus.9f | 64 |
1 files changed, 2 insertions, 62 deletions
diff --git a/usr/src/man/man9f/csx_GetStatus.9f b/usr/src/man/man9f/csx_GetStatus.9f index c701e04801..24e600d361 100644 --- a/usr/src/man/man9f/csx_GetStatus.9f +++ b/usr/src/man/man9f/csx_GetStatus.9f @@ -3,13 +3,13 @@ .\" 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. .\" 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. .\" 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] -.TH csx_GetStatus 9F "19 Jul 1996" "SunOS 5.11" "Kernel Functions for Drivers" +.TH CSX_GETSTATUS 9F "Jul 19, 1996" .SH NAME csx_GetStatus \- return the current status of a PC Card and its socket .SH SYNOPSIS .LP .nf -#include <sys/pccard.h> +#include <sys/pccard.h> @@ -23,23 +23,19 @@ Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR .SH PARAMETERS .sp .ne 2 -.mk .na \fB\fIch\fR \fR .ad .RS 7n -.rt Client handle returned from \fBcsx_RegisterClient\fR(9F). .RE .sp .ne 2 -.mk .na \fB\fIgs\fR \fR .ad .RS 7n -.rt Pointer to a \fBget_status_t\fR structure. .RE @@ -66,30 +62,25 @@ uint32_t raw_CardState; /* raw live card status */ The fields are defined as follows: .sp .ne 2 -.mk .na \fB\fBSocket\fR \fR .ad .RS 18n -.rt Not used in Solaris, but for portability with other Card Services implementations, it should be set to the logical socket number. .RE .sp .ne 2 -.mk .na \fB\fBCardState\fR \fR .ad .RS 18n -.rt The \fBCardState\fR field is the bit-mapped output data returned from Card Services. The bits identify what Card Services thinks the current state of the installed \fBPC \fRCard is. The bits are: .sp .ne 2 -.mk .na \fBCS_STATUS_WRITE_PROTECTED\fR .ad @@ -100,7 +91,6 @@ Card is write protected .sp .ne 2 -.mk .na \fBCS_STATUS_CARD_LOCKED\fR .ad @@ -111,7 +101,6 @@ Card is locked .sp .ne 2 -.mk .na \fBCS_STATUS_EJECTION_REQUEST\fR .ad @@ -122,7 +111,6 @@ Ejection request in progress .sp .ne 2 -.mk .na \fBCS_STATUS_INSERTION_REQUEST\fR .ad @@ -133,7 +121,6 @@ Insertion request in progress .sp .ne 2 -.mk .na \fBCS_STATUS_BATTERY_DEAD\fR .ad @@ -144,7 +131,6 @@ Card battery is dead .sp .ne 2 -.mk .na \fBCS_STATUS_BATTERY_DEAD\fR .ad @@ -155,7 +141,6 @@ Card battery is dead (\fBBVD1\fR) .sp .ne 2 -.mk .na \fBCS_STATUS_BATTERY_LOW\fR .ad @@ -166,7 +151,6 @@ Card battery is low (\fBBVD2\fR) .sp .ne 2 -.mk .na \fBCS_STATUS_CARD_READY\fR .ad @@ -177,7 +161,6 @@ Card is READY .sp .ne 2 -.mk .na \fBCS_STATUS_CARD_INSERTED\fR .ad @@ -188,7 +171,6 @@ Card is inserted .sp .ne 2 -.mk .na \fBCS_STATUS_REQ_ATTN\fR .ad @@ -199,7 +181,6 @@ Extended status attention request .sp .ne 2 -.mk .na \fBCS_STATUS_RES_EVT1\fR .ad @@ -210,7 +191,6 @@ Extended status reserved event status .sp .ne 2 -.mk .na \fBCS_STATUS_RES_EVT2\fR .ad @@ -221,7 +201,6 @@ Extended status reserved event status .sp .ne 2 -.mk .na \fB CS_STATUS_RES_EVT3\fR .ad @@ -232,7 +211,6 @@ Extended status reserved event status .sp .ne 2 -.mk .na \fBCS_STATUS_VCC_50\fR .ad @@ -243,7 +221,6 @@ Extended status reserved event status .sp .ne 2 -.mk .na \fBCS_STATUS_VCC_33\fR .ad @@ -254,7 +231,6 @@ Extended status reserved event status .sp .ne 2 -.mk .na \fBCS_STATUS_VCC_XX\fR .ad @@ -272,89 +248,73 @@ not present in the \fBPRR\fR or \fBESR\fR, a simulated state bit value is returned as defined below: .sp .ne 2 -.mk .na \fBCS_STATUS_WRITE_PROTECTED\fR .ad .RS 29n -.rt Not write protected .RE .sp .ne 2 -.mk .na \fBCS_STATUS_BATTERY_DEAD\fR .ad .RS 29n -.rt Power good .RE .sp .ne 2 -.mk .na \fBPCS_STATUS_BATTERY_LOW\fR .ad .RS 29n -.rt Power good .RE .sp .ne 2 -.mk .na \fBCS_STATUS_CARD_READY\fR .ad .RS 29n -.rt Ready .RE .sp .ne 2 -.mk .na \fBCS_STATUS_REQ_ATTN\fR .ad .RS 29n -.rt Not set .RE .sp .ne 2 -.mk .na \fBCS_STATUS_RES_EVT1\fR .ad .RS 29n -.rt Not set .RE .sp .ne 2 -.mk .na \fBCS_STATUS_RES_EVT2\fR .ad .RS 29n -.rt Not set .RE .sp .ne 2 -.mk .na \fBCS_STATUS_RES_EVT3\fR .ad .RS 29n -.rt Not set .RE @@ -362,17 +322,14 @@ Not set .sp .ne 2 -.mk .na \fB\fBSocketState\fR \fR .ad .RS 18n -.rt The \fBSocketState\fR field is a bit-map of the current card and socket state. The bits are: .sp .ne 2 -.mk .na \fBCS_SOCK_STATUS_WRITE_PROTECT_CHANGE\fR .ad @@ -383,7 +340,6 @@ Write Protect .sp .ne 2 -.mk .na \fBECS_SOCK_STATUS_CARD_LOCK_CHANGE\fR .ad @@ -394,7 +350,6 @@ Card Lock Change .sp .ne 2 -.mk .na \fBCS_SOCK_STATUS_EJECTION_PENDING\fR .ad @@ -405,7 +360,6 @@ Ejection Request .sp .ne 2 -.mk .na \fBCS_SOCK_STATUS_INSERTION_PENDING\fR .ad @@ -416,7 +370,6 @@ Insertion Request .sp .ne 2 -.mk .na \fBCS_SOCK_STATUS_BATTERY_DEAD_CHANGE\fR .ad @@ -427,7 +380,6 @@ Battery Dead .sp .ne 2 -.mk .na \fBCS_SOCK_STATUS_BATTERY_LOW_CHANGE\fR .ad @@ -438,7 +390,6 @@ Battery Low .sp .ne 2 -.mk .na \fBCS_SOCK_STATUS_CARD_READY_CHANGE\fR .ad @@ -449,7 +400,6 @@ Ready Change .sp .ne 2 -.mk .na \fBCS_SOCK_STATUS_CARD_INSERTION_CHANGE\fR .ad @@ -470,12 +420,10 @@ only on the state reported in the \fBCardState\fR field. .sp .ne 2 -.mk .na \fB\fBraw_CardState\fR \fR .ad .RS 18n -.rt The \fBraw_CardState\fR field is a Solaris-specific extension that allows the client to determine if any card is inserted in the socket. The bit definitions in the \fBraw_CardState\fR field are identical to those in the \fBCardState\fR @@ -486,45 +434,37 @@ field with the exception that the \fBCS_STATUS_CARD_INSERTED\fR bit in the .SH RETURN VALUES .sp .ne 2 -.mk .na \fB\fBCS_SUCCESS\fR \fR .ad .RS 28n -.rt Successful operation. .RE .sp .ne 2 -.mk .na \fB\fBCS_BAD_HANDLE\fR \fR .ad .RS 28n -.rt Client handle is invalid. .RE .sp .ne 2 -.mk .na \fB\fBCS_BAD_SOCKET\fR \fR .ad .RS 28n -.rt Error getting socket state. .RE .sp .ne 2 -.mk .na \fB\fBCS_UNSUPPORTED_FUNCTION\fR \fR .ad .RS 28n -.rt No \fBPCMCIA \fRhardware installed. .RE |