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:
parent
e3173e7118
commit
f78cb26e83
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user