1csx_Parse_CISTPL_DEVICEGEOK(e9rFn)el Functions for Dricvsexr_sParse_CISTPL_DEVICEGEO(9F)
2
3
4
6 csx_Parse_CISTPL_DEVICEGEO - parse the Device Geo tuple
7
9 #include <sys/pccard.h>
10
11
12
13 int32_t csx_Parse_CISTPL_DEVICEGEO(client_handle_t ch, tuple_t *tp,
14 cistpl_devicegeo_t *pt);
15
16
18 Solaris DDI Specific (Solaris DDI)
19
21 ch Client handle returned from csx_RegisterClient(9F).
22
23
24 tp Pointer to a tuple_t structure (see tuple(9S)) returned by a
25 call to csx_GetFirstTuple(9F) or csx_GetNextTuple(9F).
26
27
28 pt Pointer to a cistpl_devicegeo_t structure which contains the
29 parsed Device Geo tuple information upon return from this func‐
30 tion.
31
32
34 This function parses the Device Geo tuple, CISTPL_DEVICEGEO, into a
35 form usable by PC Card drivers.
36
37
38 The CISTPL_DEVICEGEO tuple describes the device geometry of common mem‐
39 ory partitions.
40
42 The structure members of cistpl_devicegeo_t are:
43
44 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].bus;
45 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].ebs;
46 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].rbs;
47 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].wbs;
48 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].part;
49 uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].hwil;
50
51
52
53 The fields are defined as follows:
54
55 info[CISTPL_DEVICEGEO_MAX_PARTITIONS].bus
56
57 This field indicates the card interface width in bytes for the
58 given partition.
59
60
61 info[CISTPL_DEVICEGEO_MAX_PARTITIONS].ebs
62
63 This field indicates the minimum erase block size for the given
64 partition.
65
66
67 info[CISTPL_DEVICEGEO_MAX_PARTITIONS].rbs
68
69 This field indicates the minimum read block size for the given par‐
70 tition.
71
72
73 info[CISTPL_DEVICEGEO_MAX_PARTITIONS].wbs
74
75 This field indicates the minimum write block size for the given
76 partition.
77
78
79 info[CISTPL_DEVICEGEO_MAX_PARTITIONS].part
80
81 This field indicates the segment partition subdivisions for the
82 given partition.
83
84
85 info[CISTPL_DEVICEGEO_MAX_PARTITIONS].hwil
86
87 This field indicates the hardware interleave
88
89
91 CS_SUCCESS Successful operation.
92
93
94 CS_BAD_HANDLE Client handle is invalid.
95
96
97 CS_UNKNOWN_TUPLE Parser does not know how to parse tuple.
98
99
100 CS_NO_CARD No PC Card in socket.
101
102
103 CS_NO_CIS No Card Information Structure (CIS) on PC
104 Card.
105
106
107 CS_UNSUPPORTED_FUNCTION No PCMCIA hardware installed.
108
109
111 This function may be called from user or kernel context.
112
114 csx_GetFirstTuple(9F), csx_GetNextTuple(9F), csx_GetTupleData(9F),
115 csx_Parse_CISTPL_DEVICEGEO_A(9F), csx_RegisterClient(9F), tuple(9S)
116
117
118 PC Card 95 Standard, PCMCIA/JEIDA
119
120
121
122SunOS 5.11 16 May 1997 csx_Parse_CISTPL_DEVICEGEO(9F)