From owner-freebsd-hackers Tue Jul 21 15:31:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA29788 for freebsd-hackers-outgoing; Tue, 21 Jul 1998 15:31:55 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from Octopussy.MI.Uni-Koeln.DE (Octopussy.MI.Uni-Koeln.DE [134.95.166.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA29755; Tue, 21 Jul 1998 15:31:39 -0700 (PDT) (envelope-from se@dialup124.zpr.uni-koeln.de) Received: from dialup124.zpr.Uni-Koeln.DE (dialup124.zpr.Uni-Koeln.DE [134.95.219.124]) by Octopussy.MI.Uni-Koeln.DE (8.8.8/8.8.8) with ESMTP id AAA10201; Wed, 22 Jul 1998 00:31:18 +0200 (MET DST) Received: (from se@localhost) by dialup124.zpr.Uni-Koeln.DE (8.8.8/8.6.9) id AAA05147; Wed, 22 Jul 1998 00:11:57 +0200 (CEST) X-Face: " Date: Wed, 22 Jul 1998 00:11:56 +0200 From: Stefan Esser To: Graham Wheeler , hackers@FreeBSD.ORG Cc: Stefan Esser Subject: Re: Building a kernel with PCI devices Mail-Followup-To: Graham Wheeler , hackers@FreeBSD.ORG References: <199807211322.PAA03583@cdsec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93i In-Reply-To: <199807211322.PAA03583@cdsec.com>; from Graham Wheeler on Tue, Jul 21, 1998 at 03:22:43PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 1998-07-21 15:22 +0200, Graham Wheeler wrote: > Hi all > > I was just wondering: if one is creating a config file for a kernel > that should support multiple 3Com 3C59x NICs, should one have multiple > vx entries in the config? I have built a kernel with: > > device vx0 > device vx1 > device vx2 > > The resulting kernel does support multiple cards, but I thought that > it may be possible to use just a single vx entry and still be able to > support multiple cards. The same question applies to the tx, fxp and > de drivers. Does anyone know? Yes, sure, I do ... Just use one single entry per driver. All data structures are dynamically allocated by each driver for each device that is found during the PCI bus scan. There currently is no way to associate "flags" with PCI devices in the way this can be done for ISA device entries in the config file. In case you want to assign fixed device names to cards in certain PCI slots, there is preliminary support in pci_compat.c. But this is more useful for SCSI cards, I assume. (Prevents cleaning of an assumed scratch drive if some host adapter has been removed from a system and another one takes its PCI device name ...) But even then you still need only one line per PCI driver in the kernel config file ... Regards, STefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message