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_MAPMEMPAGE 9F "Jul 19, 1996"
8 csx_MapMemPage \- map the memory area on a PC Card
12 #include <sys/pccard.h>
16 \fBint32_t\fR \fBcsx_MapMemPage\fR(\fBwindow_handle_t\fR \fIwh\fR, \fBmap_mem_page_t *\fR\fImp\fR);
22 Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR
30 Window handle returned from \fBcsx_RequestWindow\fR(9F).
39 Pointer to a \fBmap_mem_page_t\fR structure.
45 This function maps the memory area on a \fBPC \fRCard into a page of a window
46 allocated with the \fBcsx_RequestWindow\fR(9F) function.
50 The structure members of \fBmap_mem_page_t\fR are:
54 uint32_t CardOffset; /* card offset */
55 uint32_t Page; /* page number */
61 The fields are defined as follows:
65 \fB\fBCardOffset\fR \fR
68 The absolute offset in bytes from the beginning of the \fBPC \fRCard to map
78 Used internally by Card Services; clients must set this field to \fB0\fR before
79 calling this function.
86 \fB\fBCS_SUCCESS\fR \fR
95 \fB\fBCS_BAD_HANDLE\fR \fR
98 Client handle is invalid.
104 \fB\fBCS_BAD_OFFSET\fR \fR
113 \fB\fBCS_BAD_PAGE\fR \fR
122 \fB\fBCS_NO_CARD\fR \fR
125 No \fBPC \fRCard in socket.
131 \fB\fBCS_UNSUPPORTED_FUNCTION\fR \fR
134 No \fBPCMCIA \fRhardware installed.
140 This function may be called from user or kernel context.
144 \fBcsx_ModifyWindow\fR(9F), \fBcsx_ReleaseWindow\fR(9F),
145 \fBcsx_RequestWindow\fR(9F)
148 \fIPC Card 95 Standard, PCMCIA/JEIDA\fR