From owner-cvs-all Sun Oct 31 20:17:46 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 983741519A; Sun, 31 Oct 1999 20:17:38 -0800 (PST) (envelope-from peter@netplex.com.au) Received: by overcee.netplex.com.au (Postfix, from userid 433) id 110211CC6; Mon, 1 Nov 1999 12:17:37 +0800 (WST) Date: Mon, 1 Nov 1999 12:17:37 +0800 From: Peter Wemm To: Luoqi Chen Cc: peter@netplex.com.au, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/aic aic_isa.c Message-ID: <19991101121737.J51160@overcee.netplex.com.au> References: <199910270319.XAA25545@lor.watermarkgroup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <199910270319.XAA25545@lor.watermarkgroup.com>; from luoqi@watermarkgroup.com on Tue, Oct 26, 1999 at 11:19:31PM -0400 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Tue, Oct 26, 1999 at 11:19:31PM -0400, Luoqi Chen wrote: > > > luoqi 1999/10/25 12:11:45 PDT > > > > > > Modified files: (Branch: RELENG_3) > > > sys/dev/aic aic_isa.c > > > Log: > > > Negate return of aic_isa_attach(): isa device's attach method returns 0 > > > for failure and 1 for success. > > > > As I recall, it's something along the lines of: > > 0 = failure > > >0 = number of ports at iobase consumed.. > > -1 = success but with unknown number of ports > > > > ie: 4 ports consumed at 0x300 (0x300-303) would return 4, not 1. > > > I understand this is the case for the probe method. Are you saying it is the > same for attach? I checked the code, in fact, the return from attach is > completely ignored, so there's no way to tell for sure. But I looked at > a couple of other drivers, they seem to return only 0 or 1. Heh, brain parse error.. I read it as "probe" not "attach".. Sorry. :-) -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message