Subject: Re: USB support in Qube2?
To: None <kiyohara@kk.iij4u.or.jp>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-cobalt
Date: 01/12/2004 02:42:03
In article <20040112.021300.74745352.kiyohara@kk.iij4u.or.jp>
kiyohara@kk.iij4u.or.jp wrote:

> I see datasheet at GT-64111, and determain I/O and memory space. I don't
> known gt on RaQ2. RaQ2 gt is it GT-64011?

Hmm, dmesg says it has GT-64111:

>>Galileo Technology GT-64011 System Controller (miscellaneous memory, \
>>revision 0x11) at ? dev 0 function 0 (intrswiz 0, intrpin 0x1, \
>>i/o off, mem on, no quirks): Galileo GT-64111 System Controller, rev 1

BTW, could you try PCI siop (or some other devices which use mem space)
on your Qube2? On my RaQ2, siop0 works with mem base==0x00102000
with patch I posted:
http://mail-index.netbsd.org/port-cobalt/2003/11/24/0002.html
but I don't know how it works...

---
 :
siop0 at pci0 dev 8 function 0: PCI configuration registers:
  Common header:
    0x00: 0x00061000 0x82000017 0x01000002 0x00000000

    Vendor Name: Symbios Logic (0x1000)
    Device Name: 53c860 (0x0006)
    Command register: 0x0017
      I/O space accesses: on
      Memory space accesses: on
      Bus mastering: on
      Special cycles: off
      MWI transactions: on
      Palette snooping: off
      Parity error checking: off
      Address/data stepping: off
      System error (SERR): off
      Fast back-to-back transactions: off
    Status register: 0x8200
      Capability List support: off
      66 MHz capable: off
      User Definable Features (UDF) support: off
      Fast back-to-back capable: off
      Data parity error detected: off
      DEVSEL timing: medium (0x1)
      Slave signaled Target Abort: off
      Master received Target Abort: off
      Master received Master Abort: off
      Asserted System Error (SERR): off
      Parity error detected: on
    Class Name: mass storage (0x01)
    Subclass Name: SCSI (0x00)
    Interface: 0x00
    Revision ID: 0x02
    BIST: 0x00
    Header Type: 0x00 (0x00)
    Latency Timer: 0x00
    Cache Line Size: 0x00

  Type 0 ("normal" device) header:
    0x10: 0x10102001 0x00102000 0x00000000 0x00000000
    0x20: 0x00000000 0x00000000 0x00000000 0x00000000
    0x30: 0x00000000 0x00000000 0x00000000 0x40080104

    Base address register at 0x10
      type: 32-bit i/o
      base: 0x10102000, size: 0x00000100
    Base address register at 0x14
      type: 32-bit nonprefetchable memory
      base: 0x00102000, size: 0x00000100
    Base address register at 0x18
      not implemented(?)
    Base address register at 0x1c
      not implemented(?)
    Base address register at 0x20
      not implemented(?)
    Base address register at 0x24
      not implemented(?)
    Cardbus CIS Pointer: 0x00000000
    Subsystem vendor ID: 0x0000
    Subsystem ID: 0x0000
    Expansion ROM Base Address: 0x00000000
    Reserved @ 0x34: 0x00000000
    Reserved @ 0x38: 0x00000000
    Maximum Latency: 0x40
    Minimum Grant: 0x08
    Interrupt pin: 0x01 (pin A)
    Interrupt line: 0x04

  Device-dependent header:
    0x40: 0x00000000 0x00000000 0x00000000 0x00000000
    0x50: 0x00000000 0x00000000 0x00000000 0x00000000
    0x60: 0x00000000 0x00000000 0x00000000 0x00000000
    0x70: 0x00000000 0x00000000 0x00000000 0x00000000
    0x80: 0x000000c0 0x1f000000 0x00000000 0x02000080
    0x90: 0xffffffff 0xffffff00 0x2031f000 0x00a0a8f0
    0xa0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xb0: 0xfffffe38 0x20000000 0x00000000 0x00fffe38
    0xc0: 0x00000000 0x0f500000 0x0f000000 0x00000007
    0xd0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xe0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xf0: 0x00000000 0x00000000 0x00000000 0x00000000

    Don't know how to pretty-print device-dependent header.

Symbios Logic 53c860 (SCSI mass storage, revision 0x02) at ? dev 8 function 0 (intrswiz 0, intrpin 0x1, i/o on, mem on, no quirks): Symbios Logic 53c860 (ultra scsi)
siop0: using mem space    <=== (this printf is added by the following patch)
siop0: interrupting at irq 4
scsibus0 at siop0: 8 targets, 8 luns per target
 :
scsibus0: waiting 2 seconds for devices to settle...
wd0 at atabus0 drive 0: <IBM-DTTA-351680>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 16124 MB, 32760 cyl, 16 head, 63 sec, 512 bytes/sect x 33022080 sectors
wd0: 32-bit data port
 :
---
Index: siop_pci_common.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/siop_pci_common.c,v
retrieving revision 1.21
diff -u -r1.21 siop_pci_common.c
--- siop_pci_common.c	25 Oct 2003 21:31:20 -0000	1.21
+++ siop_pci_common.c	11 Jan 2004 17:40:29 -0000
@@ -289,10 +289,12 @@
 	    &iot, &ioh, &ioaddr, NULL) == 0);
 
 	if (memh_valid) {
+printf("%s: using mem space\n", siop_sc->sc_dev.dv_xname);
 		siop_sc->sc_rt = memt;
 		siop_sc->sc_rh = memh;
 		siop_sc->sc_raddr = memaddr;
 	} else if (ioh_valid) {
+printf("%s: using I/O space\n", siop_sc->sc_dev.dv_xname);
 		siop_sc->sc_rt = iot;
 		siop_sc->sc_rh = ioh;
 		siop_sc->sc_raddr = ioaddr;
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp