xref: /minix/minix/servers/devman/devinfo.h (revision 83133719)
1 #ifndef DEVMAN_DEVINFO_H
2 #define DEVMAN_DEVINFO_H 1
3 
4 
5 struct devman_dev {
6 	int dev_id;
7 	int parent_dev_id;
8 	char *name;
9 	char *subsys;
10 	void *data;
11 	TAILQ_HEAD(static_attribute_head, devman_static_attribute) attrs;
12 };
13 
14 struct devman_static_attribute {
15 	char *name;
16 	char *data;
17 	TAILQ_ENTRY(devman_static_attribute) list;
18 };
19 
20 /* used for serializing */
21 struct devman_device_info {
22 	int count;
23 	int parent_dev_id;
24 	unsigned name_offset;
25 	unsigned subsystem_offset;
26 };
27 
28 struct devman_device_info_entry {
29 	unsigned type;
30 	unsigned name_offset;
31 	unsigned data_offset;
32 	unsigned req_nr;
33 };
34 
35 #endif
36