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.
This commit is contained in:
Ian Lepore 2017-10-28 18:56:27 +00:00
parent 8d7edd1726
commit 6b5907b353

View File

@ -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);