From owner-p4-projects@FreeBSD.ORG Sat Apr 15 00:08:51 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BDD6B16A408; Sat, 15 Apr 2006 00:08:51 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8218116A402 for ; Sat, 15 Apr 2006 00:08:51 +0000 (UTC) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49B9443D46 for ; Sat, 15 Apr 2006 00:08:51 +0000 (GMT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3F08pFJ027461 for ; Sat, 15 Apr 2006 00:08:51 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3F08pBT027458 for perforce@freebsd.org; Sat, 15 Apr 2006 00:08:51 GMT (envelope-from marcel@freebsd.org) Date: Sat, 15 Apr 2006 00:08:51 GMT Message-Id: <200604150008.k3F08pBT027458@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Cc: Subject: PERFORCE change 95293 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 00:08:52 -0000 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_ */