Subject: Re: Does uhci work on macppc/big-endian?
To: None <port-macppc@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-macppc
Date: 03/04/2006 03:07:01
In article <060304010819.M0102074@mirage.ceres.dti.ne.jp>
I wrote:

> Maybe now I should try it on sgimips and prep, but
> I can't find my VIA uhci right now. (sorry)

Okay, now I dig out my uhci with VIA VT83C572
and put it on my O2, then it *sometimes* works
and sometimes doesn't:

---
NetBSD 3.99.16 (AIRTREK) #293: Sat Mar  4 02:14:06 JST 2006
        tsutsui@mirage:/usr/src/sys/arch/sgimips/compile/AIRTREK
total memory = 192 MB
(6848 KB reserved for ARCS)
avail memory = 177 MB
mainbus0 (root): SGI-IP32 [SGI, b], 1 processor
 :
uhci0 at pci0 dev 3 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x04)
uhci0: interrupting at crime interrupt 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
biomask 07 netmask 07 ttymask 07 clockmask 87
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: Logitech N48, rev 1.00/4.01, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 (mux ignored)
 :
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
 :
[ unplug mouse ]
uhidev0: at uhub0 port 1 (addr 2) disconnected
wsmouse0 detached
ums0 detached
uhidev0 detached
[ plug mouse again ]
uhub0: port 2, device disappeared after reset
[ unplug again ]
uhub0: port 2, device disappeared after reset
[ plug again ]
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: Logitech N48, rev 1.00/4.01, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 (mux ignored)
[ unplug ] 
uhidev0: at uhub0 port 1 (addr 2) disconnected
wsmouse0 detached
ums0 detached
uhidev0 detached
[ plug ]
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: Logitech N48, rev 1.00/4.01, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 (mux ignored)
 :
[ plug umass ]
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: BUFFALO USB Flash Disk, rev 2.00/1.00, addr 3
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, 1 lun per target
sd1 at scsibus2 target 0 lun 0: <BUFFALO, USB Flash Disk, 3.00> disk removable
sd1: 246 MB, 984 cyl, 16 head, 32 sec, 512 bytes/sect x 503808 sectors
[ unplug umass ]
umass0: at uhub0 port 2 (addr 3) disconnected
sd1 detached
scsibus2 detached
umass0 detached
[ plug umass ]
hidev0: at uhub0 port 1 (addr 2) disconnected
wsmouse0 detached
ums0 detached
uhidev0 detached
uhub0: port 1, device disappeared after reset
[ Umm, ums is not unplugged here but detached... ]
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: BUFFALO USB Flash Disk, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, 1 lun per target
sd1 at scsibus2 target 0 lun 0: <BUFFALO, USB Flash Disk, 3.00> disk removable
sd1: 246 MB, 984 cyl, 16 head, 32 sec, 512 bytes/sect x 503808 sectors
---

So, I guess there is no endianness problem, but some other problem.
---
Izumi Tsutsui