From owner-cvs-all Mon Nov 22 2:58:18 1999 Delivered-To: cvs-all@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 8202514C21; Mon, 22 Nov 1999 02:57:46 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id KAA10210; Mon, 22 Nov 1999 10:59:34 GMT (envelope-from dfr@nlsystems.com) Date: Mon, 22 Nov 1999 10:59:34 +0000 (GMT) From: Doug Rabson To: Peter Wemm Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/pci pci.c In-Reply-To: <19991122103727.982511C6D@overcee.netplex.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Mon, 22 Nov 1999, Peter Wemm wrote: > Doug Rabson wrote: > > On Sat, 20 Nov 1999, Peter Wemm wrote: > > > > > peter 1999/11/20 06:54:29 PST > > > > > > Modified files: > > > sys/pci pci.c > > > Log: > > > Allow NULL for startp and/or countp in bus_get_resource() so that you can > > > get one of the two without having to use a dummy variable. > > > > Or use bus_get_resource_{start,count}(). This change should go in > > isa_common.c as well and the 'documentation' for BUS_GET_RESOURCE in > > bus_if.m should be changed. > > But bus_get_resource_start() (for example) returns 0 on error.. That's > indistinguishable from (say) irq 0... The helpers weren't all that useful > after all. Oh well. They are still useful if you know by some other means that the resource exists. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message