1csx_ConvertSize(9F) Kernel Functions for Drivers csx_ConvertSize(9F)
2
3
4
6 csx_ConvertSize - convert device sizes
7
9 #include <sys/pccard.h>
10
11
12
13 int32_t csx_ConvertSize(convert_size_t *cs);
14
15
17 Solaris DDI Specific (Solaris DDI)
18
20 cs Pointer to a convert_size_t structure.
21
22
24 csx_ConvertSize() is a Solaris-specific extension that provides a
25 method for clients to convert from one type of device size representa‐
26 tion to another, that is, from devsize format to bytes and vice versa.
27
29 The structure members of convert_size_t are:
30
31 uint32_t Attributes;
32 uint32_t bytes;
33 uint32_t devsize;
34
35
36
37 The fields are defined as follows:
38
39 Attributes This is a bit-mapped field that identifies the type of
40 size conversion to be performed. The field is defined as
41 follows:
42
43 CONVERT_BYTES_TO_DEVSIZE Converts bytes to devsize
44 format.
45
46
47 CONVERT_DEVSIZE_TO_BYTES Converts devsize format to
48 bytes.
49
50
51
52 bytes If CONVERT_BYTES_TO_DEVSIZE is set, the value in the
53 bytes field is converted to a devsize format and
54 returned in the devsize field.
55
56
57 devsize If CONVERT_DEVSIZE_TO_BYTES is set, the value in the
58 devsize field is converted to a bytes value and returned
59 in the bytes field.
60
61
63 CS_SUCCESS Successful operation.
64
65
66 CS_BAD_SIZE Invalid bytes or devsize.
67
68
69 CS_UNSUPPORTED_FUNCTION No PCMCIA hardware installed.
70
71
73 This function may be called from user or kernel context.
74
76 csx_ModifyWindow(9F), csx_RequestWindow(9F)
77
78
79 PCCard 95 Standard, PCMCIA/JEIDA
80
81
82
83SunOS 5.11 19 Jul 1996 csx_ConvertSize(9F)