From 6b5907b3539e785222da8b6316d1f9213b46336b Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Sat, 28 Oct 2017 18:56:27 +0000 Subject: [PATCH] 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. --- sys/sys/bus.h | 1 + 1 file changed, 1 insertion(+) 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);