From owner-freebsd-sparc64@FreeBSD.ORG Mon Jul 19 19:28:00 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C1FD16A4CE for ; Mon, 19 Jul 2004 19:28:00 +0000 (GMT) Received: from gatekeeper.radio-do.de (gatekeeper.Radio-do.de [193.101.164.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 654A143D4C for ; Mon, 19 Jul 2004 19:27:59 +0000 (GMT) (envelope-from fn@radio-do.de) Received: by gatekeeper.radio-do.de (Milliard Gargantubrain Mail Daemon, from userid 65534) id 27DE6536; Mon, 19 Jul 2004 21:27:58 +0200 (CEST) Received: from [IPv6?2001?600?1032?666??7] (pbook.radio-do.de [IPv6:2001:600:1032:666::7])ESMTP id 536C22B9; Mon, 19 Jul 2004 21:27:56 +0200 (CEST) In-Reply-To: <20040719184127.GA20452@ida.interface-business.de> References: <20040719170238.GA3121@sunhsc.germany.sun.com> <20040719172658.GC10699@electra.cse.Buffalo.EDU> <20040719184127.GA20452@ida.interface-business.de> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Frank Nobis Date: Mon, 19 Jul 2004 21:27:54 +0200 To: Joerg Wunsch X-Mailer: Apple Mail (2.618) X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on gatekeeper.radio-do.de X-Spam-Level: X-Spam-Status: No, hits=-3.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 cc: freebsd-sparc64@freebsd.org Subject: Re: Quad ethernet card on AXi starts with identical MAC addresses on 5.2.1R X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2004 19:28:00 -0000 Am 19. Jul 2004 um 20:41 schrieb Joerg Wunsch: >> The pathway I followed seemed to dig the MAC address out of the >> ID-PROM no matter what. In particular hme_pci_attach() seems to >> call OF_getetheraddr() which in turn seems to blindly dig the MAC >> address out of the idprom. > > I've also got that impression. > > I'd also be interested in a way to dig out the MAC address of the card > (which must be possible, somehow -- after all, there are four address > labels on the NVRAM [or whatever it is] on the card itself), so it > would be possible to e. g. use a QFE card (which once has been a huge > investment) on a non-sparc64 FreeBSD system. It seems that right now, > the only dependency of the hme driver on sparc64 is the call to OFW to > obtain the MAC address... > I found a reference to "local-mac-address" in OF_getetheraddr2 in=20 ofw_machdep.c return (OF_getprop(node, "local-mac-address", addr, ETHER_ADDR_LEN)) but I can't see how setting local-mac-address to true makes sense here. OF_getetheraddr reads a OF property of "idprom". In theory there must=20 be a similar property for the QFE card. But I am not the OF guru to dig=20= into that further. Gru=DF Frank --=20 Frank Nobis, Thielenstr. 12, 44369 Dortmund Q: Because it reverses the logical flow of conversation. A: Why is putting a reply at the top of the message frowned upon?