diff options
author | phk <phk@FreeBSD.org> | 2005-09-28 18:06:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-09-28 18:06:25 +0000 |
commit | 48a3daa37c6443e81007d489a5a5df4ab2205b4d (patch) | |
tree | 93bbc1cddf41f301ccc4f06c37aa32c562ada9b3 /sys/sys/rman.h | |
parent | 5f9e2766d4f292d097aa16237a8fa1e548a8f819 (diff) | |
download | FreeBSD-src-48a3daa37c6443e81007d489a5a5df4ab2205b4d.zip FreeBSD-src-48a3daa37c6443e81007d489a5a5df4ab2205b4d.tar.gz |
puc(4) does strange things to resources in order to fool the
subdrivers to hook up.
It should probably be rewritten to implement a simple bus to which
the sub drivers attach using some kind of hint.
Until then, provide a couple of crutch functions with big warning
signs so it can survive the recent changes to struct resource.
Diffstat (limited to 'sys/sys/rman.h')
-rw-r--r-- | sys/sys/rman.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sys/rman.h b/sys/sys/rman.h index cc9e7dc..fc9e62d 100644 --- a/sys/sys/rman.h +++ b/sys/sys/rman.h @@ -174,6 +174,15 @@ void rman_set_start(struct resource *_r, u_long _start); void rman_set_virtual(struct resource *_r, void *_v); extern struct rman_head rman_head; + +/* + * XXX: puc.c is a big hack. + * XXX: it should be rewritten to act like a bridge and offer + * XXX: its own resource manager. + * XXX: until somebody has time, help it out with these two functions + */ +struct resource *rman_secret_puc_alloc_resource(int malloc_flag); +void rman_secret_puc_free_resource(struct resource *r); #endif /* _KERNEL */ #endif /* !_SYS_RMAN_H_ */ |