Date: Tue, 30 Jun 1998 15:17:36 -0700 From: Ted Faber <faber@ISI.EDU> To: Mike Smith <mike@smith.net.au> Cc: "Steve Bernacki Jr." <steve@ziplink.net>, freebsd-questions@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG Subject: Re: Any Success w/ Hitachi VisionBook PRO? Message-ID: <199806302217.PAA17311@tnt.isi.edu> In-Reply-To: Your message of "Tue, 30 Jun 1998 14:03:59 PDT." <199806302103.OAA07965@dingo.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <faber@isi.edu> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806302217.PAA17311>