svn commit: r325060 - head/sys/sys
Ian Lepore
ian at FreeBSD.org
Sat Oct 28 18:56:29 UTC 2017
Author: ian
Date: Sat Oct 28 18:56:27 2017
New Revision: 325060
URL: https://svnweb.freebsd.org/changeset/base/325060
Log:
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.
Modified:
head/sys/sys/bus.h
Modified: head/sys/sys/bus.h
==============================================================================
--- head/sys/sys/bus.h Sat Oct 28 18:54:45 2017 (r325059)
+++ head/sys/sys/bus.h Sat Oct 28 18:56:27 2017 (r325060)
@@ -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);
More information about the svn-src-all
mailing list