Date: Sat, 15 Apr 2006 00:08:51 GMT From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95293 for review Message-ID: <200604150008.k3F08pBT027458@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95293 Change 95293 by marcel@marcel_nfs on 2006/04/15 00:08:07 Remove the puc(4) specific hacks to rman. I'm going to rewrite puc(4) to use its own rman. Affected files ... .. //depot/projects/uart/kern/subr_rman.c#7 edit .. //depot/projects/uart/sys/rman.h#7 edit Differences ... ==== //depot/projects/uart/kern/subr_rman.c#7 (text+ko) ==== @@ -122,31 +122,6 @@ return (r); } -/* - * 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) -{ - struct resource_i *r; - - r = int_alloc_resource(malloc_flag); - if (r) - return (&r->r_r); - return (NULL); -} - -void -rman_secret_puc_free_resource(struct resource *r) -{ - - free(r->__r_i, M_RMAN); -} - int rman_init(struct rman *rm) { ==== //depot/projects/uart/sys/rman.h#7 (text+ko) ==== @@ -149,14 +149,6 @@ 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_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604150008.k3F08pBT027458>