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_GETFIRSTCLIENT 9F "May 16, 1997"
8 csx_GetFirstClient, csx_GetNextClient \- return first or next client
12 #include <sys/pccard.h>
16 \fBint32_t\fR \fBcsx_GetFirstClient\fR(\fBget_firstnext_client_t *\fR\fIfnc\fR);
21 \fBint32_t\fR \fBcsx_GetNextClient\fR(\fBget_firstnext_client_t *\fR\fIfnc\fR);
27 Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR
35 Pointer to a \fBget_firstnext_client_t\fR structure.
41 The functions \fBcsx_GetFirstClient()\fR and \fBcsx_GetNextClient()\fR return
42 information about the first or subsequent \fBPC \fRcards, respectively, that
43 are installed in the system.
47 The structure members of \fBget_firstnext_client_t\fR are:
51 uint32_t Socket; /* socket number */
52 uint32_t Attributes; /* attributes */
53 client_handle_t client_handle; /* client handle */
54 uint32_t num_clients; /* number of clients */
60 The fields are defined as follows:
67 If the \fBCS_GET_FIRSTNEXT_CLIENT_SOCKET_ONLY\fR attribute is set, return
68 information only on the \fBPC \fRcard installed in this socket.
74 \fB\fBAttributes\fR \fR
77 This field indicates the type of client. The field is bit-mapped; the following
82 \fBCS_GET_FIRSTNEXT_CLIENT_ALL_CLIENTS\fR
86 Return information on all clients.
92 \fBCS_GET_FIRSTNEXT_CLIENT_SOCKET_ONLY\fR
96 Return client information for the specified socket only.
104 \fB\fBclient_handle\fR \fR
107 The client handle of the \fBPC \fRcard driver is returned in this field.
113 \fB\fBnum_clients\fR \fR
116 The number of clients is returned in this field.
123 \fB\fBCS_SUCCESS\fR \fR
126 Successful operation.
132 \fB\fBCS_BAD_HANDLE\fR \fR
135 Client handle is invalid.
141 \fB\fBCS_BAD_SOCKET\fR \fR
144 Socket number is invalid.
150 \fB\fBCS_NO_CARD\fR \fR
153 No \fBPC \fRCard in socket.
159 \fB\fBCS_NO_MORE_ITEMS\fR \fR
162 \fBPC \fRCard driver does not handle the \fBCS_EVENT_CLIENT_INFO\fR event.
168 \fB\fBCS_UNSUPPORTED_FUNCTION\fR \fR
171 No \fBPCMCIA \fRhardware installed.
177 This function may be called from user or kernel context.
181 \fBcsx_event_handler\fR(9E)
184 \fIPC Card 95 Standard,\fR PCMCIA/JEIDA