Date: Wed, 22 Jul 1998 00:11:56 +0200 From: Stefan Esser <se@FreeBSD.ORG> To: Graham Wheeler <gram@cdsec.com>, hackers@FreeBSD.ORG Cc: Stefan Esser <se@FreeBSD.ORG> Subject: Re: Building a kernel with PCI devices Message-ID: <19980722001156.C2578@mi.uni-koeln.de> In-Reply-To: <199807211322.PAA03583@cdsec.com>; from Graham Wheeler on Tue, Jul 21, 1998 at 03:22:43PM %2B0200 References: <199807211322.PAA03583@cdsec.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1998-07-21 15:22 +0200, Graham Wheeler <gram@cdsec.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980722001156.C2578>