From owner-freebsd-questions@FreeBSD.ORG Sun Jan 11 21:13:17 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 0F90C16A4CE for ; Sun, 11 Jan 2004 21:13:17 -0800 (PST) Received: from above.proper.com (above.proper.com [208.184.76.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 205C443D1F for ; Sun, 11 Jan 2004 21:13:15 -0800 (PST) (envelope-from phoffman@proper.com) Received: from [10.0.2.2] (adsl-63-202-92-157.dsl.snfc21.pacbell.net [63.202.92.157]) (authenticated bits=0) by above.proper.com (8.12.10/8.12.8) with ESMTP id i0C5DBic087820 for ; Sun, 11 Jan 2004 21:13:11 -0800 (PST) (envelope-from phoffman@proper.com) Mime-Version: 1.0 X-Sender: phoffprop@mail.proper.com Message-Id: X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . Date: Sun, 11 Jan 2004 21:13:14 -0800 To: freebsd-questions@FreeBSD.ORG From: Paul Hoffman Content-Type: text/plain; charset="us-ascii" ; format="flowed" Subject: 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 05:13:17 -0000 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 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=2 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 So, what am I supposed to add to the kernel to add this third controller? --Paul Hoffman