From owner-freebsd-questions Sat May 6 20:29:41 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA00630 for questions-outgoing; Sat, 6 May 1995 20:29:41 -0700 Received: from warrane.connect.com.au (warrane.connect.com.au [192.189.54.33]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id UAA00623 for ; Sat, 6 May 1995 20:29:26 -0700 Received: (from uucp@localhost) by warrane.connect.com.au with UUCP id NAA14542 (8.6.11/IDA-1.6); Sun, 7 May 1995 13:28:54 +1000 Received: from testing.jhbs.com.au (testing.jhbs.com.au [128.102.0.2]) by ubik.jhbs.com.au (8.6.9/8.6.9) with ESMTP id MAA232294; Sun, 7 May 1995 12:58:36 +1000 Received: (from bens@localhost) by testing.jhbs.com.au (8.6.9/8.6.9) id MAA40020; Sun, 7 May 1995 12:58:41 +1000 Date: Sun, 7 May 1995 12:58:41 +1000 (EET) From: Ben Seaman MIS To: Chuck Robey cc: Jeff Haynes , questions@FreeBSD.org Subject: Re: Driver for SMC Ultra ethernet card. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@FreeBSD.org Precedence: bulk Hi, The SMC elite ultra needs a patch if you are running 2.0R. I just downloaded it and the driver is working just fine. Here is the patch file: > From jhbs.com.au!bens Wed May 3 01:41:27 1995 > Date: Wed, 3 May 1995 09:06:28 +1000 (EET) > From: Ben Seaman MIS > To: "Steven E. Piette" > Subject: Re: SMC8416T > > Thanks Steve, we can't go to -current here because we have a controlled > production environment. Can you send the patches over to me and some > instructions on how to apply them. > > On Tue, 2 May > 1995, Steven E. Piette wrote: > > > > > > Date: Tue, 18 Apr 1995 18:14:41 +1000 (EET) > > > From: Ben Seaman MIS > > > To: questions FreeBSD > > > Subject: SMC8416T > > > > > > > > > Hi, > > > > > > I have been trying to configure some SMC Elite cards which I am told are > > > type 8416T (thats whats written on the card). The SMC guy told me that > > > these cards are compatible with the 8216T, but only use 8K memory-mapped > > > I/O rather than the 16K used by the 8216. This is a problem on my FreeBSD2.0 > > > system as the driver thinks they are "SMC8216T" and sets memsize = 16k. > > > When the driver initialises i/o memory it fails at the 8k point. Is there > > > any support for the SMC8416T in one of the later SNAPs, or does anyone > > > out there have an update for if_ed.c to support this card? > > > > > > regards, > > > Ben > > > > I hope someone has gotten back to you before this... > > > > There is support for the SMC EtherEZ card in -current and I have patches > > to 2.0R to add support as well. Email me if you need them. > > > > Steve > > > Ben > Here's the patches to be applied to the files in /usr/src/sys/i386/isa. The easiest way to apply them is to cd there and then feed each one to patch (patch -p is790) { + outb(sc->asic_addr + ED_WD790_HWR, + inb(sc->asic_addr + ED_WD790_HWR) | ED_WD790_HWR_SWH); + + switch (inb(sc->asic_addr + ED_WD790_RAR) & ED_WD790_RAR_SZ64) { + case ED_WD790_RAR_SZ64: + memsize = 65536; + break; + case ED_WD790_RAR_SZ32: + memsize = 32768; + break; + case ED_WD790_RAR_SZ16: + memsize = 16384; + break; + case ED_WD790_RAR_SZ8: + memsize = 8192; + break; + } + outb(sc->asic_addr + ED_WD790_HWR, + inb(sc->asic_addr + ED_WD790_HWR) & ~ED_WD790_HWR_SWH); + } + #if ED_DEBUG printf("type = %x type_str=%s isa16bit=%d memsize=%d id_msize=%d\n", sc->type, sc->type_str, isa16bit, memsize, isa_dev->id_msize); *************** *** 546,556 **** sc->cr_proto = ED_CR_RD2; } else { outb(sc->asic_addr + ED_WD_MSR, ED_WD_MSR_MENB); ! outb(sc->asic_addr + 0x04, (inb(sc->asic_addr + 0x04) | 0x80)); ! outb(sc->asic_addr + 0x0b, ((kvtop(sc->mem_start) >> 13) & 0x0f) | ((kvtop(sc->mem_start) >> 11) & 0x40) | ! (inb(sc->asic_addr + 0x0b) & 0xb0)); ! outb(sc->asic_addr + 0x04, (inb(sc->asic_addr + 0x04) & ~0x80)); sc->cr_proto = 0; } --- 570,580 ---- sc->cr_proto = ED_CR_RD2; } else { outb(sc->asic_addr + ED_WD_MSR, ED_WD_MSR_MENB); ! outb(sc->asic_addr + ED_WD790_HWR, (inb(sc->asic_addr + ED_WD790_HWR) | ED_WD790_HWR_SWH)); ! outb(sc->asic_addr + ED_WD790_RAR, ((kvtop(sc->mem_start) >> 13) & 0x0f) | ((kvtop(sc->mem_start) >> 11) & 0x40) | ! (inb(sc->asic_addr + ED_WD790_RAR) & 0xb0)); ! outb(sc->asic_addr + ED_WD790_HWR, (inb(sc->asic_addr + ED_WD790_HWR) & ~ED_WD790_HWR_SWH)); sc->cr_proto = 0; } Steve Piette Applied Computer Technology steve@simon.chi.il.US. 7N852 Phar Lap Drive (708) 513-6920 St. Charles, IL 60175-6868 ------------------------------------------------------------------------------- On Sat, 6 May 1995, Chuck Robey wrote: > On Fri, 5 May 1995, Jeff Haynes wrote: > > > I am trying to get an SMC elite ultra working in FreeBSD. I assumed that > > I am supposed to use the ed0 driver, but upon boot up I get a message that > > says "failed to clear shared memory at c8000 - check configuration". > > I have the config on the card set to irq 10 io base 280 iomem c8000. > > The SMC "ezstart" utility shows the adapter type as 8216T. What driver > > do I use for this card? If it is ed0, any suggestions on what might > > be wrong? > > > > Thanks > > -- > > Jeff Haynes > > jeff@tenforwd.wiz.com > > http:/www.cactus.org/~jhaynes/ > > > > You don't say whether you've made a custom kernel. Did you know that all > devices have default addresses? Try looking at > /usr/src/sys/i386/conf/GENERIC for a list of what's been compiled into > the GENERIC kernel. You can always change this by using the -c option > when booting, but a better method (so I feel) is to gen yourself up a custom > kernel, with the address at c8000, instead of the default d8000. > > ----------------------------+----------------------------------------------- > Chuck Robey | Interests include any kind of voice or data > chuckr@eng.umd.edu | communications topic, C programming, and Unix. > 7608 Topton St. | > New Carrollton, MD 20784 | I run Journey2 (Freebsd 2.0) and n3lxx > (301) 459-2316 | (FreeBSD 1.1.5.1) and am I happy! > ----------------------------+----------------------------------------------- > regards, Ben ************************************************************************* * Ben Seaman bens@jhbs.com.au * * AIX/Network Systems Specialist * * Nettrack Pty Ltd * * * * 61-2-8588527 (work) James Hardie Building Services * * 61-2-4384385 (office) * *************************************************************************