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
8d7edd1726
commit
6b5907b353
@ -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