Subject: Re: tcic does not see cards
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Michael Kukat <michael@bsdfans.org>
List: netbsd-users
Date: 03/12/2003 10:27:51
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--0-1195856622-1047461271=:10642
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello,

On Wed, 12 Mar 2003, Jukka Marin wrote:
> I'm trying to get a tcic ISA<->PCMCIA adapter working (i386/NetBSD 1.6.1_RC2):

This driver has loads of bugs. I fixed some of this for now, and i am able to
insert a card while running (kernel threads for card recognition were
disabled), some interrupt assignment problems still exist. But i didn't commit
the changes for now, because it is not really tested.

If i find the time, i will continue this. For now, i added my current state of
the patch, without any warranty. This bases on 1.6 distribution-kernel.

BTW: This also adds tcic for alpha platforms, where i was developing the
patches.

...Michael

-- 
http://www.unixiron.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

--0-1195856622-1047461271=:10642
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="tcic.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.44.0303121027510.10642@calchas.unixiron.org>
Content-Description: 
Content-Disposition: attachment; filename="tcic.patch"

ZGlmZiAtTmFydSBzeXMub3JpZy9hcmNoL2FscGhhL2NvbmYvZmlsZXMuYWxw
aGEgc3lzL2FyY2gvYWxwaGEvY29uZi9maWxlcy5hbHBoYQ0KLS0tIHN5cy5v
cmlnL2FyY2gvYWxwaGEvY29uZi9maWxlcy5hbHBoYQlUdWUgQXByIDE2IDIy
OjUwOjE3IDIwMDINCisrKyBzeXMvYXJjaC9hbHBoYS9jb25mL2ZpbGVzLmFs
cGhhCVNhdCBPY3QgIDUgMTA6MjI6NDMgMjAwMg0KQEAgLTU4Niw2ICs1ODYs
MjUgQEANCiAjIENvZGUgY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