aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bus.h
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2017-10-28 18:56:27 +0000
committerIan Lepore <ian@FreeBSD.org>2017-10-28 18:56:27 +0000
commit6b5907b3539e785222da8b6316d1f9213b46336b (patch)
tree75e541bb6b19d6f29e8f61cbe396c08d78a89288 /sys/sys/bus.h
parent8d7edd17260e241cbc3dc44135ff8290b228c902 (diff)
downloadsrc-6b5907b3539e785222da8b6316d1f9213b46336b.tar.gz
src-6b5907b3539e785222da8b6316d1f9213b46336b.zip
Add a #define RESOURCE_SPEC_END. Similar to DEVMETHOD_END and
KOBJMETHOD_END, this is to serve as the end marker in an array of resource_spec structures.
Notes
Notes: svn path=/head/; revision=325060
Diffstat (limited to 'sys/sys/bus.h')
-rw-r--r--sys/sys/bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index c398d9630ad6..34644c24aa98 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -491,6 +491,7 @@ struct resource_spec {
int rid;
int flags;
};
+#define RESOURCE_SPEC_END {-1, 0, 0}
int bus_alloc_resources(device_t dev, struct resource_spec *rs,
struct resource **res);