Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2001 06:07:03 +0300
From:      =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru>
To:        Nickolay Dudorov <nnd@mail.nsk.ru>
Cc:        current@FreeBSD.ORG, sos@FreeBSD.ORG, peter@FreeBSD.ORG, mi@aldan.algebra.com
Subject:   Re: ouch -- the second controller on Promise-66 is not detected!
Message-ID:  <20011031060702.A44053@nagual.pp.ru>
In-Reply-To: <200110310254.f9V2sZv04739@wint.itfs.nsk.su>
References:  <200110310037.f9V0bSW65011@aldan.algebra.com> <200110310254.f9V2sZv04739@wint.itfs.nsk.su>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 31, 2001 at 08:54:35 +0600, Nickolay Dudorov wrote:
> 	With the following patch I can now use all
> the channels on the HPT366 controller in my ABIT's BP6 mobo.

>      else {
> -	if (!(child = device_add_child(dev, "ata", 2)))
> +	if (!(child = device_add_child(dev, "ata", -1)))
>  	    return ENOMEM;

Yes, that way (don't use wired slots) looks acceptable too.

(BTW, why ENOMEM only here? device_add_child() can fail for _various_ 
reasons).

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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