From owner-freebsd-current Wed Dec 20 11:42: 7 2000 From owner-freebsd-current@FreeBSD.ORG Wed Dec 20 11:42:05 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 60F4C37B400 for ; Wed, 20 Dec 2000 11:42:04 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.0/8.11.0) with ESMTP id eBKJg2s20585; Wed, 20 Dec 2000 12:42:03 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id MAA10802; Wed, 20 Dec 2000 12:42:01 -0700 (MST) Message-Id: <200012201942.MAA10802@harmony.village.org> To: Makoto MATSUSHITA Subject: Re: Why 'lnc.ko' instead of 'if_lnc.ko' ? Cc: current@FreeBSD.ORG In-reply-to: Your message of "Thu, 21 Dec 2000 03:28:46 +0900." <20001221032846U.matusita@jp.FreeBSD.org> References: <20001221032846U.matusita@jp.FreeBSD.org> <20001221021801G.matusita@jp.FreeBSD.org> <200012201805.eBKI5is41536@billy-club.village.org> Date: Wed, 20 Dec 2000 12:42:01 -0700 From: Warner Losh Sender: imp@harmony.village.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20001221032846U.matusita@jp.FreeBSD.org> Makoto MATSUSHITA writes: : imp> Typo, I think. The module needs to be named if_XXX.ko for the : imp> automatic kldload in ifconfig to work. : : OK, attached below is a (trivial) patch to fix this. This is a good start at a fix. However, all the attachments for the lnc device also need to be called if_lnc. And they need to share the same devclass_t so that unit numbers don't go wonky on you (eg, if you have a isa and a pci lnc card in the same system, you might get two lnc0's). The ed driver has this problem as well. The ep driver doesn't. The ep driver is wrong in that its name is ep rather than if_ep. The sn driver I think gets these both right, but I think its dependence on pcic is bogus. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message