From owner-freebsd-questions Tue Jun 30 15:19:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA16681 for freebsd-questions-outgoing; Tue, 30 Jun 1998 15:19:53 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from tnt.isi.edu (tnt.isi.edu [128.9.128.128]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA16636; Tue, 30 Jun 1998 15:19:39 -0700 (PDT) (envelope-from faber@ISI.EDU) Received: from ISI.EDU (vex-e.isi.edu [128.9.160.240]) by tnt.isi.edu (8.8.7/8.8.6) with ESMTP id PAA17311; Tue, 30 Jun 1998 15:17:37 -0700 (PDT) Message-Id: <199806302217.PAA17311@tnt.isi.edu> To: Mike Smith cc: "Steve Bernacki Jr." , freebsd-questions@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG Subject: Re: Any Success w/ Hitachi VisionBook PRO? In-reply-to: Your message of "Tue, 30 Jun 1998 14:03:59 PDT." <199806302103.OAA07965@dingo.cdrom.com> X-Url: http://www.isi.edu/~faber Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 30 Jun 1998 15:17:36 -0700 From: Ted Faber Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: >Steve Bernacki Jr.: >> Grumble. It sees the hardware, but refuses to bind the lnc driver to it. >> My roomate has the same identical laptop running Redhat v4.2 with no >> problems -- it identifies the card as "PCNET/PCI-II 79C970A at 0xfcc0, >> assigned irq 11". > >Ted Faber has a patch that makes it work on his Hitachi >system; I've been talking to him just recently about this in order to >see if we can't make use of it. I just knew my name would come up here. I should be able to get time to make the changes Mike and I discussed this week, and get some real code to him, as opposed to my (functional) hack job. Steve, if you want to try a patch, you can try the one attached. It's relative to /sys. (It's also based on 2.2.4?-RELEASE, but has applied flawlessly to 2.2.6-RELEASE). If you need help applying it or have problems, let me know. Oh, and tell me if it works. I'd like to know that it works on machines other than my MX-133. *** pci/if_lnc_p.c.orig Fri Apr 4 08:48:12 1997 --- pci/if_lnc_p.c Sun Aug 3 00:10:24 1997 *************** *** 75,81 **** unsigned iobase; void *lnc; /* device specific data for interrupt handler ... */ ! iobase = pci_conf_read(config_id, PCI_MAP_REG_START) & ~PCI_MAP_IO; lnc = lnc_attach_ne2100_pci(unit, iobase); if (!lnc) --- 75,86 ---- unsigned iobase; void *lnc; /* device specific data for interrupt handler ... */ ! /* pci_map_port correctly initializes bridge chips -- tvf */ ! ! if ( !pci_map_port(config_id,PCI_MAP_REG_START,(u_short *)&iobase) ) ! printf("lnc%d: pci_port_map_attach failed?!\n",unit); ! else ! printf("lnc%d: pci port mapped to %x\n",unit,iobase); lnc = lnc_attach_ne2100_pci(unit, iobase); if (!lnc) *** i386/isa/if_lnc.h.orig Tue Sep 10 01:21:57 1996 --- i386/isa/if_lnc.h Sat Aug 2 23:45:02 1997 *************** *** 69,74 **** --- 69,75 ---- #define Am79C961 0x2260 #define Am79C965 0x2430 #define Am79C970 0x0242 + #define HITACHI_Am79C970 0x2621 /* Board types */ #define UNKNOWN 0 *** i386/isa/if_lnc.c.orig Tue Apr 8 03:59:30 1997 --- i386/isa/if_lnc.c Sun Aug 3 14:59:06 1997 *************** *** 1068,1073 **** --- 1068,1075 ---- * do NOT try to ISA attach the PCI version */ return (0); + case HITACHI_Am79C970: + return (PCnet_PCI); default: break; } *************** *** 1197,1203 **** if (sc) { bzero (sc, sizeof *sc); ! if ((ne2100_probe(sc, iobase) == 0) || (lnc_attach_sc(sc, unit) == 0)) { free(sc, M_DEVBUF); sc = NULL; --- 1199,1209 ---- if (sc) { bzero (sc, sizeof *sc); ! #ifdef HITACHI_MX ! if ((ne2100_probe(sc, iobase) == NE2100_IOSIZE) ! #else ! if ((ne2100_probe(sc, iobase) == 0) ! #endif || (lnc_attach_sc(sc, unit) == 0)) { free(sc, M_DEVBUF); sc = NULL; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message