Hide struct resource and struct rman. You must define
__RMAN_RESOURCE_VISIBLE to see inside these now. Reviewed by: dfr, njl (not njr)
This commit is contained in:
parent
0d055a20bf
commit
0363a12688
@ -29,6 +29,7 @@
|
|||||||
* $FreeBSD$
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define __RMAN_RESOURCE_VISIBLE
|
||||||
#include "opt_acpi.h"
|
#include "opt_acpi.h"
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
|
@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
|
|
||||||
#include "opt_isa.h"
|
#include "opt_isa.h"
|
||||||
|
|
||||||
|
#define __RMAN_RESOURCE_VISIBLE
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/bus.h>
|
#include <sys/bus.h>
|
||||||
|
@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
|
|
||||||
#include "opt_bus.h"
|
#include "opt_bus.h"
|
||||||
|
|
||||||
|
#define __RMAN_RESOURCE_VISIBLE
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/conf.h>
|
#include <sys/conf.h>
|
||||||
#include <sys/filio.h>
|
#include <sys/filio.h>
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__FBSDID("$FreeBSD$");
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
|
#define __RMAN_RESOURCE_VISIBLE
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
|
@ -93,6 +93,7 @@ struct u_rman {
|
|||||||
* at some point in the future, particularly if we want to support 36-bit
|
* at some point in the future, particularly if we want to support 36-bit
|
||||||
* addresses on IA32 hardware.
|
* addresses on IA32 hardware.
|
||||||
*/
|
*/
|
||||||
|
#ifdef __RMAN_RESOURCE_VISIBLE
|
||||||
TAILQ_HEAD(resource_head, resource);
|
TAILQ_HEAD(resource_head, resource);
|
||||||
struct resource {
|
struct resource {
|
||||||
TAILQ_ENTRY(resource) r_link;
|
TAILQ_ENTRY(resource) r_link;
|
||||||
@ -119,6 +120,11 @@ struct rman {
|
|||||||
const char *rm_descr; /* text descripion of this resource */
|
const char *rm_descr; /* text descripion of this resource */
|
||||||
};
|
};
|
||||||
TAILQ_HEAD(rman_head, rman);
|
TAILQ_HEAD(rman_head, rman);
|
||||||
|
#else
|
||||||
|
struct resource;
|
||||||
|
struct rman;
|
||||||
|
struct device;
|
||||||
|
#endif
|
||||||
|
|
||||||
int rman_activate_resource(struct resource *r);
|
int rman_activate_resource(struct resource *r);
|
||||||
int rman_await_resource(struct resource *r, int pri, int timo);
|
int rman_await_resource(struct resource *r, int pri, int timo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user