summaryrefslogtreecommitdiff
path: root/lib/libdevinfo
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2009-11-15 16:44:43 +0000
committerAttilio Rao <attilio@FreeBSD.org>2009-11-15 16:44:43 +0000
commit1262810177dfdaa06e76f915f0a3ed6db75d4bd6 (patch)
treea803af1c94671a1fcfeeaba899652b29e87f3253 /lib/libdevinfo
parent793c70425a4a4dbb1e2bd70da61c85ecc3c0d30f (diff)
Notes
Diffstat (limited to 'lib/libdevinfo')
-rw-r--r--lib/libdevinfo/devinfo.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/libdevinfo/devinfo.h b/lib/libdevinfo/devinfo.h
index 3e580f20d502..2b497431909d 100644
--- a/lib/libdevinfo/devinfo.h
+++ b/lib/libdevinfo/devinfo.h
@@ -32,20 +32,12 @@
#include <sys/cdefs.h>
#include <sys/_types.h>
+#include <sys/bus.h>
typedef __uintptr_t devinfo_handle_t;
#define DEVINFO_ROOT_DEVICE ((devinfo_handle_t)0)
-/*
- * State of the device.
- */
-/* XXX not sure if I want a copy here, or expose sys/bus.h */
-typedef enum devinfo_state {
- DIS_NOTPRESENT = 10, /* not probed or probe failed */
- DIS_ALIVE = 20, /* probe succeeded */
- DIS_ATTACHED = 30, /* attach method called */
- DIS_BUSY = 40 /* device is open */
-} devinfo_state_t;
+typedef enum device_state devinfo_state_t;
struct devinfo_dev {
devinfo_handle_t dd_handle; /* device handle */