Kernel Functions for Drivers csxMapMemPage(9F)
NAME
csxMapMemPage - map the memory area on a PC Card
SYNOPSIS
#include
int32t csxMapMemPage(windowhandlet wh, mapmempaget *mp);
INTERFACE LEVEL
Solaris DI Specific (Solaris DI)
PARAMETERS
wh Window handle returned from csxRequestWindow(9F).
mp Pointer to a mapmempaget structure.
DESCRIPTION
This function maps the memory area on a PC Card into a page
of a window allocated with the csxRequestWindow(9F) func-
tion.
STRUCTURE MEMBERS
The structure members of mapmempaget are:
uint32t CardOffset; /* card offset */
uint32t Page; /* page number */
The fields are defined as follows:
CardOffset The absolute offset in bytes from the begin-
ning of the PC Card to map into system
memory.
Page Used internally by Card Services; clients
must set this field to 0 before calling this
function.
RETURN VALUES
CSUCES Successful operation.
CSBADHANDLE Client handle is invalid.
SunOS 5.11 Last change: 19 Jul 1996 1
Kernel Functions for Drivers csxMapMemPage(9F)
CSBADOFSET Offset is invalid.
CSBADPAGE Page is not zero.
CSNOCARD No PC Card in socket.
CSUNSUPORTEDFUNCTION No PCMCIA hardware installed.
CONTEXT
This function may be called from user or kernel context.
SEE ALSO
csxModifyWindow(9F), csxReleaseWindow(9F),
csxRequestWindow(9F)
PC Card 95 Standard, PCMCIA/JEIDA
SunOS 5.11 Last change: 19 Jul 1996 2
|