From owner-freebsd-questions@FreeBSD.ORG Mon Jan 12 01:25:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E095A16A4CE for ; Mon, 12 Jan 2004 01:25:58 -0800 (PST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 069EE43D55 for ; Mon, 12 Jan 2004 01:25:57 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp104-184.lns1.adl1.internode.on.net [150.101.104.184])i0C9PrqR099980; Mon, 12 Jan 2004 19:55:54 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: Paul Hoffman , freebsd-questions@freebsd.org Date: Mon, 12 Jan 2004 19:55:53 +1030 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200401121955.53383.malcolm.kay@internode.on.net> Subject: Re: How do I add a third ATA controller to 4.8? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 09:25:59 -0000 On Mon, 12 Jan 2004 15:43, Paul Hoffman wrote: > Greetings again. I have a Dell 600SC that has three ATA controllers > on the motherboard, and I'm running 4.8 quite happily on it. The > GENERIC kernel has the following: > > device ata0 at isa? port IO_WD1 irq 14 > device ata1 at isa? port IO_WD2 irq 15 > I gather that these lines or for legacy isa based controllers and have li= ttle relevance for reasonably modern machines. A single line: device ata should cope with all the ATA controllers on a current model PC. > Since I didn't know the irq used by the third controller (it's not > listed in their documentation, of course!), I blithely tried adding: > > device ata2 at isa? port IO_WD3 > > However, when rebuilding this kernel, I get the following error: > > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. > -I../../../include -I../../contrib/ipfilter -D_KERNEL -include > opt_global.h -mpreferred-stack-boundary=3D2 ioconf.c > ioconf.c:48: `IO_WD3' undeclared here (not in a function) > ioconf.c:48: initializer element is not constant > ioconf.c:48: (near initialization for `ata2_resources[1].u.longval') > *** Error code 1 > I suspect you are being too clever; the GENERIC kernel will possibly find it. (No personal experience with 3 or more ATA controllers) Malcolm Kay