aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_bus.c
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2010-09-08 17:35:06 +0000
committerAndriy Gapon <avg@FreeBSD.org>2010-09-08 17:35:06 +0000
commit3b0620e06cbcdbbcb22b9b68edc0b0ea823477b1 (patch)
tree242e64c508f009b2d419462789853049430fc2a3 /sys/kern/subr_bus.c
parent8f8ae306c6ed2e97ec73f8f3ccf488984fe04971 (diff)
downloadsrc-3b0620e06cbcdbbcb22b9b68edc0b0ea823477b1.tar.gz
src-3b0620e06cbcdbbcb22b9b68edc0b0ea823477b1.zip
subr_bus: use hexadecimal representation for bit flags
It seems that this format is more custom in our code, and it is more convenient too. Suggested by: jhb No objection: imp MFC after: 1 week
Notes
Notes: svn path=/head/; revision=212325
Diffstat (limited to 'sys/kern/subr_bus.c')
-rw-r--r--sys/kern/subr_bus.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index 8714b5f0c7ae..9912d980383d 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -122,14 +122,14 @@ struct device {
device_state_t state; /**< current device state */
uint32_t devflags; /**< api level flags for device_get_flags() */
u_int flags; /**< internal device flags */
-#define DF_ENABLED 1 /* device should be probed/attached */
-#define DF_FIXEDCLASS 2 /* devclass specified at create time */
-#define DF_WILDCARD 4 /* unit was originally wildcard */
-#define DF_DESCMALLOCED 8 /* description was malloced */
-#define DF_QUIET 16 /* don't print verbose attach message */
-#define DF_DONENOMATCH 32 /* don't execute DEVICE_NOMATCH again */
-#define DF_EXTERNALSOFTC 64 /* softc not allocated by us */
-#define DF_REBID 128 /* Can rebid after attach */
+#define DF_ENABLED 0x01 /* device should be probed/attached */
+#define DF_FIXEDCLASS 0x02 /* devclass specified at create time */
+#define DF_WILDCARD 0x04 /* unit was originally wildcard */
+#define DF_DESCMALLOCED 0x08 /* description was malloced */
+#define DF_QUIET 0x10 /* don't print verbose attach message */
+#define DF_DONENOMATCH 0x20 /* don't execute DEVICE_NOMATCH again */
+#define DF_EXTERNALSOFTC 0x40 /* softc not allocated by us */
+#define DF_REBID 0x80 /* Can rebid after attach */
u_int order; /**< order from device_add_child_ordered() */
void *ivars; /**< instance variables */
void *softc; /**< current driver's variables */