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 2017-10-28 18:56:27 +00:00
parent e3173e7118
commit f78cb26e83

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