aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2004-06-30 16:54:10 +0000
committerWarner Losh <imp@FreeBSD.org>2004-06-30 16:54:10 +0000
commit0363a12688c09006ad2970ca63ef81acb69239a7 (patch)
treef8c488389a89e7643ebdbebc2795acba37ee315f /sys
parent0d055a20bfe8df2033199741d08038725a245f75 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpica/acpi.c1
-rw-r--r--sys/i386/i386/nexus.c1
-rw-r--r--sys/kern/subr_bus.c1
-rw-r--r--sys/kern/subr_rman.c1
-rw-r--r--sys/sys/rman.h6
5 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index e7ffbe7dea353..97540bbf2cad1 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -29,6 +29,7 @@
* $FreeBSD$
*/
+#define __RMAN_RESOURCE_VISIBLE
#include "opt_acpi.h"
#include <sys/param.h>
#include <sys/kernel.h>
diff --git a/sys/i386/i386/nexus.c b/sys/i386/i386/nexus.c
index 3812c0a1acf34..6c72129de2430 100644
--- a/sys/i386/i386/nexus.c
+++ b/sys/i386/i386/nexus.c
@@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$");
#include "opt_isa.h"
+#define __RMAN_RESOURCE_VISIBLE
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index cff6e7f38bae1..8c8b799aa7e0b 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$");
#include "opt_bus.h"
+#define __RMAN_RESOURCE_VISIBLE
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/filio.h>
diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c
index 754695b5cb828..5eb4bc22d5dd9 100644
--- a/sys/kern/subr_rman.c
+++ b/sys/kern/subr_rman.c
@@ -58,6 +58,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#define __RMAN_RESOURCE_VISIBLE
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
diff --git a/sys/sys/rman.h b/sys/sys/rman.h
index 68dd1bde6e638..d3af804574957 100644
--- a/sys/sys/rman.h
+++ b/sys/sys/rman.h
@@ -93,6 +93,7 @@ struct u_rman {
* at some point in the future, particularly if we want to support 36-bit
* addresses on IA32 hardware.
*/
+#ifdef __RMAN_RESOURCE_VISIBLE
TAILQ_HEAD(resource_head, resource);
struct resource {
TAILQ_ENTRY(resource) r_link;
@@ -119,6 +120,11 @@ struct rman {
const char *rm_descr; /* text descripion of this resource */
};
TAILQ_HEAD(rman_head, rman);
+#else
+struct resource;
+struct rman;
+struct device;
+#endif
int rman_activate_resource(struct resource *r);
int rman_await_resource(struct resource *r, int pri, int timo);