diff options
author | dfr <dfr@FreeBSD.org> | 1999-09-07 08:42:49 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-09-07 08:42:49 +0000 |
commit | e2da291638899ecbc4fb439bebf44d5763be13f4 (patch) | |
tree | da7778a2053253c07923bdb2565c4919af210b53 /sys/kern | |
parent | 2325c8f0cd1729626bf053cb03df56503d5ac806 (diff) | |
download | FreeBSD-src-e2da291638899ecbc4fb439bebf44d5763be13f4.zip FreeBSD-src-e2da291638899ecbc4fb439bebf44d5763be13f4.tar.gz |
Change isa_get/set_flags() to device_get/set_flags().
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_bus.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index d03e656..7368717 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -610,6 +610,7 @@ make_device(device_t parent, const char *name, dev->nameunit = NULL; dev->desc = NULL; dev->busy = 0; + dev->devflags = 0; dev->flags = DF_ENABLED; dev->order = 0; if (unit == -1) @@ -892,6 +893,12 @@ device_get_desc(device_t dev) return dev->desc; } +u_int32_t +device_get_flags(device_t dev) +{ + return dev->devflags; +} + int device_print_prettyname(device_t dev) { @@ -955,6 +962,12 @@ device_set_desc_copy(device_t dev, const char* desc) device_set_desc_internal(dev, desc, TRUE); } +void +device_set_flags(device_t dev, u_int32_t flags) +{ + dev->devflags = flags; +} + void * device_get_softc(device_t dev) { |