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_MAPLOGSOCKET 9F "Jul 19, 1996"
8 csx_MapLogSocket \- return the physical socket number associated with the
13 #include <sys/pccard.h>
17 \fBint32_t\fR \fBcsx_MapLogSocket\fR(\fBclient_handle_t\fR \fIch\fR, \fBmap_log_socket_t *\fR\fIls\fR);
23 Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR
31 Client handle returned from \fBcsx_RegisterClient\fR(9F).
40 Pointer to a \fBmap_log_socket_t\fR structure.
46 This function returns the physical socket number associated with the client
51 The structure members of \fBmap_log_socket_t\fR are:
55 uint32_t LogSocket; /* logical socket number */
56 uint32_t PhyAdapter; /* physical adapter number */
57 uint32_t PhySocket; /* physical socket number */
63 The fields are defined as follows:
67 \fB\fBLogSocket\fR \fR
70 Not used by this implementation of Card Services and can be set to any
77 \fB\fBPhyAdapter\fR \fR
80 Returns the physical adapter number, which is always \fB0\fR in the Solaris
81 implementation of Card Services.
87 \fB\fBPhySocket\fR \fR
90 Returns the physical socket number associated with the client handle. The
91 physical socket number is typically used as part of an error or message string
92 or if the client creates minor nodes based on the physical socket number.
99 \fB\fBCS_SUCCESS\fR \fR
102 Successful operation.
108 \fB\fBCS_BAD_HANDLE\fR \fR
111 Client handle is invalid.
117 \fB\fBCS_UNSUPPORTED_FUNCTION\fR \fR
120 No \fBPCMCIA \fRhardware installed.
126 This function may be called from user or kernel context.
130 \fBcsx_RegisterClient\fR(9F)
133 \fIPC Card 95 Standard, PCMCIA/JEIDA\fR