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_REQUESTSOCKETMASK 9F "Jul 19, 1996"
8 csx_RequestSocketMask, csx_ReleaseSocketMask \- set or clear the client's
13 #include <sys/pccard.h>
17 \fBint32_t\fR \fBcsx_RequestSocketMask\fR(\fBclient_handle_t\fR \fIch\fR,
18 \fBrequest_socket_mask_t *\fR\fIsm\fR);
23 \fBint32_t\fR \fBcsx_ReleaseSocketMask\fR(\fBclient_handle_t\fR \fIch\fR,
24 \fBrelease_socket_mask_t *\fR\fIrm\fR);
30 Solaris \fBDDI\fR Specific (Solaris \fBDDI\fR)
38 Client handle returned from \fBcsx_RegisterClient\fR(9F).
47 Pointer to a \fBrequest_socket_mask_t\fR structure.
56 Pointer to a \fBrelease_socket_mask_t\fR structure.
62 The function \fBcsx_RequestSocketMask()\fR sets the client's client event mask
63 and enables the client to start receiving events at its event callback handler.
64 Once this function returns successfully, the client can start receiving events
65 at its event callback handler. Any pending events generated from the call to
66 \fBcsx_RegisterClient\fR(9F) will be delivered to the client after this call as
67 well. This allows the client to set up the event handler mutexes before the
68 event handler gets called.
71 \fBcsx_RequestSocketMask()\fR must be used before calling
72 \fBcsx_GetEventMask\fR(9F) or \fBcsx_SetEventMask\fR(9F) for the client event
76 The function \fBcsx_ReleaseSocketMask()\fR clears the client's client event
81 The structure members of \fBrequest_socket_mask_t\fR are:
85 uint32_t Socket; /* socket number */
86 uint32_t EventMask; /* event mask to set or return */
92 The structure members of \fBrelease_socket_mask_t\fR are:
96 uint32_t Socket; /* socket number */
102 The fields are defined as follows:
109 Not used in Solaris, but for portability with other Card Services
110 implementations, it should be set to the logical socket number.
116 \fB\fBEventMask\fR\fR
119 This field is bit-mapped. Card Services performs event notification based on
120 this field. See \fBcsx_event_handler\fR(9E) for valid event definitions and for
121 additional information about handling events.
128 \fB\fBCS_SUCCESS\fR\fR
131 Successful operation.
137 \fB\fBCS_BAD_HANDLE\fR\fR
140 Client handle is invalid.
146 \fB\fBCS_IN_USE\fR\fR
149 \fBcsx_ReleaseSocketMask()\fR has not been done.
155 \fB\fBCS_BAD_SOCKET\fR\fR
158 \fBcsx_RequestSocketMask()\fR has not been done.
164 \fB\fBCS_UNSUPPORTED_FUNCTION\fR\fR
167 No \fBPCMCIA\fR hardware installed.
173 These functions may be called from user or kernel context.
177 \fBcsx_event_handler\fR(9E), \fBcsx_GetEventMask\fR(9F),
178 \fBcsx_RegisterClient\fR(9F), \fBcsx_SetEventMask\fR(9F)
181 \fIPC Card 95 Standard\fR, PCMCIA/JEIDA