From owner-cvs-all Tue Oct 26 20:19:40 1999 Delivered-To: cvs-all@freebsd.org Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (Postfix) with ESMTP id 46DA7152F5; Tue, 26 Oct 1999 20:19:34 -0700 (PDT) (envelope-from luoqi@watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id XAA25545; Tue, 26 Oct 1999 23:19:31 -0400 (EDT) (envelope-from luoqi) Date: Tue, 26 Oct 1999 23:19:31 -0400 (EDT) From: Luoqi Chen Message-Id: <199910270319.XAA25545@lor.watermarkgroup.com> To: peter@netplex.com.au Subject: Re: cvs commit: src/sys/dev/aic aic_isa.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > > 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. > Cheers, > -Peter > -- > Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au > -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message