Subject: tcic driver for NetBSD/alpha
To: None <port-alpha@netbsd.org>
From: Michael Kukat <michael@unixiron.org>
List: port-alpha
Date: 10/05/2002 16:14:45
Hi !

Maybe someone is interested:

i'm just playing around with the tcic driver. This shall be activated for the
alpha port here, and my first tries gave some success. But i think, the driver
itself could need some tuning. For the first step, here is what to do to enable
tcic on alpha:

See the file /sys/dev/isa/tcic2_isa.c:

In lines 363, 366 and 396, the part "h->sc->intr_est" has to be changed to
"(isa_chipset_tag_t) h->sc->intr_est" to compile without errors with the
alpha-special isa_machdep.h. As i looked up all types used, this seems to be
the correct way to handle this. The alternative would be a change in the tcic
header file, where an XXX is around the declaration of the structure :)

The second step is just copying the whole tcic stuff from files.i386 to
files.alpha in the i386/alpha conf directory. After this, you can include tcic
in your config file, and it seems to work fine. Except lots of other problems
(usually, just one card (if any) is recognized, if you insert 2 cards,
hot-plugging doesn't work...), this does something useful:

tcic0 at isa0 port 0x240-0x24f iomem 0xd0000-0xdffff irq : using irq 10
tcic0: Databook DB86082B has sockets A and B
pcmcia0 at tcic0 socket 0
ep0 at pcmcia0 function 0 port 0x330-0x33f: 3Com 3c589 10Mbps Ethernet
ep0: address 00:60:08:bb:3d:2c, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)

As Wintendo also has some problems with both slots used, i assume, it's just a
hardware problem. I wondered how it works with just 1 IRQ...

...Michael

-- 
http://www.bsdfans.org/     Home Powered by: (Net|Open|Free)BSD IRIX NonStop-UX
Solaris AIX HP-UX Tru64 MUNIX Ultrix VMS SINIX Dolphin_Unix OpenStep MacOS A/UX