minor fixes for safecopy & safemap tests
[minix.git] / lib / libdevman / local.h
blob3af4268b42696048394aca7a25db4e55d4911d8b
1 #ifndef _LIB_LIBDEVMAN_LOCAL
2 #define _LIB_LIBDEVMAN_LOCAL
4 #include <sys/queue.h>
5 #include <minix/com.h>
7 #define DEVMAN_DEV_NAME_LEN 32
9 struct devman_dev {
10 int dev_id;
11 int parent_dev_id;
12 char name[DEVMAN_DEV_NAME_LEN];
13 char *subsys;
14 void *data;
15 int (*bind_cb) (void *data, endpoint_t ep);
16 int (*unbind_cb)(void *data, endpoint_t ep);
17 TAILQ_HEAD(static_attribute_head, devman_static_attribute) attrs;
18 TAILQ_ENTRY(devman_dev) dev_list;
21 struct devman_static_attribute {
22 char *name;
23 char *data;
24 TAILQ_ENTRY(devman_static_attribute) list;
27 #endif