37 #define DISK_VERSION TOPO_VERSION
38
39 /* Max. number of devices for thumper */
40 #define DEVID_MAX 48
41
42 /* Properties added to the "storage" pgroup: */
43 #define TOPO_PGROUP_STORAGE "storage"
44 #define TOPO_STORAGE_LOGICAL_DISK_NAME "logical-disk"
45 #define TOPO_STORAGE_MODEL "model"
46 #define TOPO_STORAGE_MANUFACTURER "manufacturer"
47 #define TOPO_STORAGE_SERIAL_NUM "serial-number"
48 #define TOPO_STORAGE_FIRMWARE_REV "firmware-revision"
49 #define TOPO_STORAGE_CAPACITY "capacity-in-bytes"
50
51 /*
52 * Properties for binding group: The binding group required in platform
53 * specific xml that describes 'bay' nodes containing internal disks.
54 */
55 #define TOPO_PGROUP_BINDING "binding"
56 #define TOPO_BINDING_OCCUPANT "occupant-path"
57
58 /*
59 * device node information.
60 */
61 typedef struct dev_di_node {
62 topo_list_t ddn_list; /* list of devices */
63
64 /* the following two fields are always defined */
65 char *ddn_devid; /* devid of device */
66 char *ddn_dpath; /* path to devinfo (may be vhci) */
67 char **ddn_ppath; /* physical path to device (phci) */
68 /*
69 * the ppath count also indicates number of target port and
70 * possible number of attached port and bridge port.
71 */
72 int ddn_ppath_count;
73
74 char *ddn_lpath; /* logical path (public /dev name) */
75
76 char *ddn_mfg; /* misc information about device */
|
37 #define DISK_VERSION TOPO_VERSION
38
39 /* Max. number of devices for thumper */
40 #define DEVID_MAX 48
41
42 /* Properties added to the "storage" pgroup: */
43 #define TOPO_PGROUP_STORAGE "storage"
44 #define TOPO_STORAGE_LOGICAL_DISK_NAME "logical-disk"
45 #define TOPO_STORAGE_MODEL "model"
46 #define TOPO_STORAGE_MANUFACTURER "manufacturer"
47 #define TOPO_STORAGE_SERIAL_NUM "serial-number"
48 #define TOPO_STORAGE_FIRMWARE_REV "firmware-revision"
49 #define TOPO_STORAGE_CAPACITY "capacity-in-bytes"
50
51 /*
52 * Properties for binding group: The binding group required in platform
53 * specific xml that describes 'bay' nodes containing internal disks.
54 */
55 #define TOPO_PGROUP_BINDING "binding"
56 #define TOPO_BINDING_OCCUPANT "occupant-path"
57 #define TOPO_BINDING_DRIVER "driver"
58
59 /*
60 * device node information.
61 */
62 typedef struct dev_di_node {
63 topo_list_t ddn_list; /* list of devices */
64
65 /* the following two fields are always defined */
66 char *ddn_devid; /* devid of device */
67 char *ddn_dpath; /* path to devinfo (may be vhci) */
68 char **ddn_ppath; /* physical path to device (phci) */
69 /*
70 * the ppath count also indicates number of target port and
71 * possible number of attached port and bridge port.
72 */
73 int ddn_ppath_count;
74
75 char *ddn_lpath; /* logical path (public /dev name) */
76
77 char *ddn_mfg; /* misc information about device */
|