Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Oct 1999 23:19:31 -0400 (EDT)
From:      Luoqi Chen <luoqi@watermarkgroup.com>
To:        peter@netplex.com.au
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/aic aic_isa.c
Message-ID:  <199910270319.XAA25545@lor.watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910270319.XAA25545>