From owner-freebsd-questions Tue Apr 18 4:45: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from proxy.kiuca.kiev.ua (host.kiuca.gu.net [194.93.181.222]) by hub.freebsd.org (Postfix) with ESMTP id CF4DF37B614 for ; Tue, 18 Apr 2000 04:44:34 -0700 (PDT) (envelope-from qd@H8-gate.kiuca.kiev.ua) Received: from inetgate.avt (H8-gate.kiuca.kiev.ua [194.93.181.210]) by proxy.kiuca.kiev.ua (8.9.3/8.9.3) with ESMTP id OAA22082; Tue, 18 Apr 2000 14:45:30 +0300 (EEST) (envelope-from qd@H8-gate.kiuca.kiev.ua) Received: (from qd@localhost) by inetgate.avt (8.9.3/8.9.3) id RAA01009; Tue, 18 Apr 2000 17:47:23 +0300 (EEST) (envelope-from qd) Date: Tue, 18 Apr 2000 17:47:15 +0300 From: Valery Zamarayev To: questions@freebsd.org Cc: Blaz Zupan Subject: PnP ISA and PCI ed unit numbering Message-ID: <20000418174715.A965@hostel8.kiuca.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, FreeBSD'ers ! I encountered some kind of problem. I have a FreeBSD based router between four 10MB/s Ethernet segments. (3.3-RELEASE) The box has 3 PCI NE2000 NIC's and an ISA PnP NIC NE2000. While they work OK on separately, I cannot make them work together In kernel configuration I have: controller pnp0 device ed? and the settings in /boot/kernel.conf to make PnP stuff work. PCI card are detected first as ed0, ed1, ed2 and then ISA PnP card is detected as ... ed0 I assume that PCI and PnP detection code assigns code starting from 0 or 1 or whatever it is in kernel config and does not check if such unit already exists for such device. I saw on archies that Blaz Zupan has already had such a problem, but he was only advised to change his NIC. (I feel I'll eventually do the same :) Now my question is: Can I make kernel assign unit numbers for devices my way ? I believe it is easy to hack PnP code to assign unit numbers for devices it finds, starting from some number, e.g. 4, and it would solve the problem. I didn't succeed in digging kernel source for it since I am neither kernel nor unix expert at all. Please, help those who know how to do it. -- Valery Zamarayev To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message