From owner-freebsd-stable Fri Jun 12 05:20:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA26799 for freebsd-stable-outgoing; Fri, 12 Jun 1998 05:20:23 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from cesit1.unifi.it (cesit1.unifi.it [150.217.1.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA26650 for ; Fri, 12 Jun 1998 05:19:52 -0700 (PDT) (envelope-from ugo@dsi.UNIFI.IT) Received: from aguirre.dsi.unifi.it by CESIT1.UNIFI.IT (PMDF V5.1-10 #23168) with SMTP id <01IY5HDPQ1OQ0004W7@CESIT1.UNIFI.IT> for freebsd-stable@FreeBSD.ORG; Fri, 12 Jun 1998 14:19:40 MET Received: from dsi.unifi.it (ppp-firenze71-74.iol.it) by aguirre.dsi.unifi.it (4.1/SMI-4.1) id AA25159; Fri, 12 Jun 1998 14:19:01 +0200 Received: from pegasus.home.net (pegasus.home.net [192.168.1.3]) by dsi.unifi.it (8.8.8/8.8.8) with ESMTP id MAA03726; Fri, 12 Jun 1998 12:38:50 +0200 (MET DST envelope-from ugo) Received: (from ugo@localhost) by pegasus.home.net (8.8.8/8.8.8) id MAA03636; Fri, 12 Jun 1998 12:38:50 +0200 (MET DST envelope-from ugo) Date: Fri, 12 Jun 1998 12:38:50 +0200 (MET DST) From: Ugo Paternostro Subject: Re: PnP support for if_ed, and more... In-reply-to: <199806060121.SAA02536@dingo.cdrom.com> To: Mike Smith Cc: Luigi Rizzo , freebsd-stable@FreeBSD.ORG, eivind@yes.no (Eivind Eklund) Message-id: Organization: Not an organization MIME-version: 1.0 X-Mailer: XFMail 1.2 [p0] on FreeBSD Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Priority: 3 (Normal) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 06-Jun-98 Mike Smith wrote about "Re: PnP support for if_ed, and more...": > and then work out a mechanism to scan the 'compatible device ID' > descriptors (0x1c) and pretend that the device is one of these if the > first pass (try for an exact match on the device ID) fails. The code is working here. I have a few questions: - I'm working on -stable, so someone else should take care of -current... [well this isn't really a question :-)] - I would like to MFC some code (mainly isa.c 1.103 -> 1.104), but I understand that I should avoid mixing the diffs togheter. What do you suggest? Should I reply to my own PR (i386/6792) with just the Compatible Device ID patch and open a new PR to backport that isa.c change? The problem is that I need to change both isa.c and pnp.c at the same time to let that MFC work, so at the end of the game I need to change pnp.c twice. - I used the same array for both Vendor IDs and Compatible Device IDs, like in: static struct edpnp_ids { u_long vend_id; char *id_str; } edpnp_ids[] = { { 0x1980635e, "WSC8019"}, { 0xd680d041, "NE2000 Compatible"}, { 0 } }; and it works: [...] Probing for PnP devices: CSN 1 Vendor ID: WSC9008 [0x0890635e] Serial 0xdea47218 Comp ID: PNP80d6 [0xd680 d041] ed1: address 00:20:18:72:a4:de, type NE2000 (16 bit) ed1 (edpnp sn 0xdea47218) at 0x280 irq 12 drq -1 flags 0x0 i d 14 Probing for devices on the ISA bus: [...] Should I fix/remove bogus/useless Vendor IDs from if_ed.c and sio.c? - I still would like to remove that structure definition (edpnp_ids) from sio.c and if_ed.c to put it into pnp.h - talking about sio.c, I don't have anymore the SupraExpress internal modem, so I don't know what its Compatible Device ID looks like. There are a lot of possible definitions in devids.txt (see PNP0500 -> PNP0502, plus PNPCxxx -> PNPDxxx). I would be glad to everyone that sends to me its pnpinfo output... > \\ Sometimes you're ahead, \\ Mike Smith Bye, UP To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message