From owner-freebsd-current@FreeBSD.ORG Tue Sep 5 17:15:10 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E975916A4E5 for ; Tue, 5 Sep 2006 17:15:10 +0000 (UTC) (envelope-from apanda@cs.brown.edu) Received: from draco.services.brown.edu (draco.services.brown.edu [128.148.106.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADAA043D81 for ; Tue, 5 Sep 2006 17:14:54 +0000 (GMT) (envelope-from apanda@cs.brown.edu) Received: from [192.168.0.2] (Gregorian-B-182.resnet.brown.edu [138.16.25.182]) by draco.services.brown.edu (Switch-3.1.10/Switch-3.1.7/) with ESMTP id k85HEr9J020607 for ; Tue, 5 Sep 2006 13:14:53 -0400 (EDT) User-Agent: Microsoft-Entourage/11.2.3.060209 Date: Tue, 05 Sep 2006 13:14:51 -0400 From: Aurojit Panda To: Message-ID: Thread-Topic: Marvell/SysKonnect Yukon driver patch Thread-Index: AcbRDswQCsDAEj0CEduAjgAKlW/hFg== Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Brown-Proofpoint: Not Infected X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlx=-1 adultscore=0 adjust=0 reason=safe engine=3.1.0-0608080000 definitions=main-0609050009 X-Brown-MailScanner-SpamCheck: not spam, rule=notspam policy=default score=0 mlx=-1 adultscore=0 adjust=0 reason=safe engine=3.1.0-0608080000 definitions=main-0609050009 X-Mailman-Approved-At: Tue, 05 Sep 2006 17:56:21 +0000 Subject: Marvell/SysKonnect Yukon driver patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2006 17:15:11 -0000 The source from http://people.freebsd.org/~andre/mykbsd60x86-8.12.1.3-src.tgz does not compile because it uses IFP2ENADDR. Since Mac Minis and most Intel Macs seem to use Marvell/SysKonnect Ethernet cards and the 7-Current branch is the only thing that will boot on those, this was not working out for me, so here's a patch for if_yk.c in the root of the tar file, which allows this driver to work. 1569,1570c1569,1570 < } < #else --- > } > #elif __FreeBSD_version < 700006 1577a1578,1588 > SK_ADDR_LOGICAL_ADDRESS); > } > #else > > if (bcmp(IF_LLADDR(pAC->pIfnet), > pAC->Addr.Net[0].CurrentMacAddress.a,6)) { > > SkAddrOverride(pAC, > pAC, > 0, > (SK_MAC_ADDR*)IF_LLADDR(pAC->pIfnet), Aurojit Panda