1csx_MapMemPage(9F) Kernel Functions for Drivers csx_MapMemPage(9F)
2
3
4
6 csx_MapMemPage - map the memory area on a PC Card
7
9 #include <sys/pccard.h>
10
11
12
13 int32_t csx_MapMemPage(window_handle_t wh, map_mem_page_t *mp);
14
15
17 Solaris DDI Specific (Solaris DDI)
18
20 wh Window handle returned from csx_RequestWindow(9F).
21
22
23 mp Pointer to a map_mem_page_t structure.
24
25
27 This function maps the memory area on a PC Card into a page of a window
28 allocated with the csx_RequestWindow(9F) function.
29
31 The structure members of map_mem_page_t are:
32
33 uint32_t CardOffset; /* card offset */
34 uint32_t Page; /* page number */
35
36
37
38 The fields are defined as follows:
39
40 CardOffset The absolute offset in bytes from the beginning of the
41 PC Card to map into system memory.
42
43
44 Page Used internally by Card Services; clients must set this
45 field to 0 before calling this function.
46
47
49 CS_SUCCESS Successful operation.
50
51
52 CS_BAD_HANDLE Client handle is invalid.
53
54
55 CS_BAD_OFFSET Offset is invalid.
56
57
58 CS_BAD_PAGE Page is not zero.
59
60
61 CS_NO_CARD No PC Card in socket.
62
63
64 CS_UNSUPPORTED_FUNCTION No PCMCIA hardware installed.
65
66
68 This function may be called from user or kernel context.
69
71 csx_ModifyWindow(9F), csx_ReleaseWindow(9F), csx_RequestWindow(9F)
72
73
74 PC Card 95 Standard, PCMCIA/JEIDA
75
76
77
78SunOS 5.11 19 Jul 1996 csx_MapMemPage(9F)