From owner-freebsd-mobile Mon Jan 17 23:42:14 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id B698E14FC5 for ; Mon, 17 Jan 2000 23:42:11 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id AAA67243; Tue, 18 Jan 2000 00:42:10 -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 AAA15379; Tue, 18 Jan 2000 00:42:30 -0700 (MST) Message-Id: <200001180742.AAA15379@harmony.village.org> To: Tatsumi Hosokawa Subject: Re: One more serious problem with -current PCCARD support Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Sun, 16 Jan 2000 15:24:21 +0900." <86r9fisfe2.wl@ringo.FromTo.Cc> References: <86r9fisfe2.wl@ringo.FromTo.Cc> <86u2kesizg.wl@ringo.FromTo.Cc> Date: Tue, 18 Jan 2000 00:42:30 -0700 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <86r9fisfe2.wl@ringo.FromTo.Cc> Tatsumi Hosokawa writes: : At Sun, 16 Jan 2000 14:06:43 +0900, : Tatsumi Hosokawa wrote: : : > "ether" subcommand in /etc/pccard.conf does not work with -current : > if_ed. So, IBM Creditcard Ethernet and some major ed cards will have : > invalid MAC address. : : Hmm... I'm just working on this but I feel it's difficult. Are there : any clean way to pass 6-byte length data (MAC address) from : sys/pccard/pccard.c to sys/dev/ed, or another way to do the same : thing? I want to set MAC address to sc->arpcom of sys/dev/ed, but : nobody but sys/pccard/ knows the correct value of MAC address in the : kernel. Right now the ethernet information is passed between the kernel and pccardd in the misc field of the dev attach. I've likely broken the association between it and the MAC address in current's oldcard. Likely the fastest way to deal with this would be to add the misc field to the pccard ivars that get stuck on the device and have an accessor function to grab it from there. This should solve the problem of needing to pass down the ethernet addresses. I can try to find some time to code this up... I'd have done it if I had one of the bad ethernet cards :-). Actually, that reminds me that I do need to fix if_sn_pccard.c in a similar way... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message