From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 00:22:55 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1BA716A4CE for ; Tue, 28 Oct 2003 00:22:55 -0800 (PST) Received: from mail011.syd.optusnet.com.au (mail011.syd.optusnet.com.au [211.29.132.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0135B43FA3 for ; Tue, 28 Oct 2003 00:22:54 -0800 (PST) (envelope-from anthony@carmoda.com) Received: from carmoda3 (c210-49-147-182.kelvn1.qld.optusnet.com.au [210.49.147.182])h9S8MoF01546 for ; Tue, 28 Oct 2003 19:22:52 +1100 From: "Anthony Carmody" To: Date: Tue, 28 Oct 2003 18:28:09 +1000 Message-ID: <007901c39d2d$6b940de0$7000a8c0@carmoda3> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <000f01c39d17$f5dd8550$7000a8c0@carmoda3> Subject: RE: patching a device driver X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: anthony@carmoda.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2003 08:22:56 -0000 ok, i have answered my own question. a few additions to my if_fxp.c file, and a kernel recompile and bingo. make sure you get the order right. static u_char fxp_cb_config_template[] = { 0x0, 0x0, /* cb_status */ 0x0, 0x0, /* cb_command */ 0x0, 0x0, 0x0, 0x0, /* link_addr */ 0x0, /* 0 */ 0x0, /* 1 */ 0x0, /* 2 */ 0x0, /* 3 */ 0x0, /* 4 */ 0x0, /* 5 */ 0x32, /* 6 */ 0x0, /* 7 */ 0x0, /* 8 */ 0x0, /* 9 */ 0x6, /* 10 */ 0x0, /* 11 */ 0x0, /* 12 */ 0x0, /* 13 */ 0xf2, /* 14 */ 0x48, /* 15 */ 0x0, /* 16 */ 0x02, /* 17 */ <= added by me 0x40, /* 18 */ 0xf0, /* 19 */ 0x0, /* 20 */ 0x3f, /* 21 */ 0x5 /* 22 */ }; struct fxp_ident { u_int16_t devid; char *name; }; /* * Claim various Intel PCI device identifiers for this driver. The * sub-vendor and sub-device field are extensively used to identify * particular variants, but we don't currently differentiate between * them. */ static struct fxp_ident fxp_ident_table[] = { { 0x1029, "Intel 82559 PCI/CardBus Pro/100" }, { 0x1030, "Intel 82559 Pro/100 Ethernet" }, { 0x1031, "Intel 82801CAM (ICH3) Pro/100 VE Ethernet" }, { 0x1032, "Intel 82801CAM (ICH3) Pro/100 VE Ethernet" }, { 0x1033, "Intel 82801CAM (ICH3) Pro/100 VM Ethernet" }, { 0x1034, "Intel 82801CAM (ICH3) Pro/100 VM Ethernet" }, { 0x1035, "Intel 82801CAM (ICH3) Pro/100 Ethernet" }, { 0x1036, "Intel 82801CAM (ICH3) Pro/100 Ethernet" }, { 0x1037, "Intel 82801CAM (ICH3) Pro/100 Ethernet" }, { 0x1038, "Intel 82801CAM (ICH3) Pro/100 VM Ethernet" }, { 0x1039, "Intel 82801DB (ICH4) Pro/100 VE Ethernet" }, { 0x103A, "Intel 82801DB (ICH4) Pro/100 Ethernet" }, { 0x103B, "Intel 82801DB (ICH4) Pro/100 VM Ethernet" }, { 0x103C, "Intel 82801DB (ICH4) Pro/100 Ethernet" }, { 0x103D, "Intel 82801DB (ICH4) Pro/100 VE Ethernet" }, { 0x103E, "Intel 82801DB (ICH4) Pro/100 VM Ethernet" }, { 0x1050, "Intel 82562EZ PHY 10/100 Fast Ethernet" }, <= added by me { 0x1059, "Intel 82551QM Pro/100 M Mobile Connection" }, { 0x1209, "Intel 82559ER Embedded 10/100 Ethernet" }, { 0x1229, "Intel 82557/8/9 EtherExpress Pro/100(B) Ethernet" }, { 0x2449, "Intel 82801BA/CAM (ICH2/3) Pro/100 Ethernet" }, { 0, NULL }, }; > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of carmoda > Sent: Tuesday, 28 October 2003 3:55 PM > To: freebsd-questions@freebsd.org > Subject: patching a device driver > > > Hi, > > I have found some instructions on how to patch a device > driver [so as to get > an onboard network card to get picked up]. I was wondering if > anyone had any > instructions on how to go about adding the patch, i have never done it > before... > > freebsd-questions@freebsd.org. > > http://lists.freebsd.org/pipermail/freebsd-bugs/2003-June/001240.html > > > > > > > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >