Subject: Re: CardBus on Libretto L2
To: None <boquist@crt.se>
From: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>
List: tech-kern
Date: 08/15/2001 23:42:32
Hi,

       From: Urban Boquist <boquist@crt.se>
    Subject: Re: CardBus on Libretto L2
      Date : Wed, 15 Aug 2001 15:21:29 +0200

$ I don't know if this is related but on my Toshiba Portege I have to
$ set "Cardbus 16bit mode" in the BIOS for it to work. If I do that it
$ acts like a ToPIC95B and cardbus works just fine. If I instead set the
$ BIOS to "Auto" it acts like a ToPIC97 and cardbus does not work.

When pccbb attach,pccbb_chipinit() call from pccbb_pci_callback().
pccbb_chipinit() do setup "Cardbus 16bit mode" for ToPIC95B,
but does not setup for ToPIC97,ToPIC100.
 
How about next patch?
Regards!
---
 Masanori Kanaoka	kanaoka@ann.hi-ho.ne.jp
Index: sys/dev/pci/pccbb.c
===================================================================
RCS file: /ftp/cvs/syssrc/sys/dev/pci/pccbb.c,v
retrieving revision 1.65
diff -u -r1.65 pccbb.c
--- sys/dev/pci/pccbb.c 2001/07/06 18:06:59     1.65
+++ sys/dev/pci/pccbb.c 2001/08/15 14:31:58
@@ -809,6 +809,7 @@
                break;
 
        case CB_TOPIC95B:
+       case CB_TOPIC97:
                reg = pci_conf_read(pc, tag, TOPIC_SOCKET_CTRL);
                reg |= TOPIC_SOCKET_CTRL_SCR_IRQSEL;
                pci_conf_write(pc, tag, TOPIC_SOCKET_CTRL, reg);