From owner-cvs-all Mon Nov 22 2:37:49 1999 Delivered-To: cvs-all@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id 8F2E014FB5; Mon, 22 Nov 1999 02:37:43 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 982511C6D; Mon, 22 Nov 1999 18:37:27 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: Doug Rabson Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/pci pci.c In-Reply-To: Message from Doug Rabson of "Mon, 22 Nov 1999 10:23:52 GMT." Date: Mon, 22 Nov 1999 18:37:27 +0800 From: Peter Wemm Message-Id: <19991122103727.982511C6D@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message