tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bus_dmamap_sync() for USB
bouyer%antioche.eu.org@localhost wrote:
> attached is a patch that adds bus_dmamap_sync() calls for uhci, ohci and ehci.
ohci on Cobalt Qube 2700 with umass seems working fine:
---
NetBSD 4.99.66 (PCIDEVS) #10: Wed Jun 25 00:54:15 JST 2008
tsutsui@mirage:/usr/src/sys/arch/cobalt/compile/PCIDEVS
Cobalt Qube 2700
total memory = 65536 KB
avail memory = 55880 KB
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
cpu0 at mainbus0: QED RM5200 CPU (0x2810) Rev. 1.0 with built-in FPU Rev. 1.0
cpu0: 16KB/32B 2-way set-associative L1 Instruction cache, 48 TLB entries
cpu0: 16KB/32B 2-way set-associative write-back L1 Data cache
:
ohci0 at pci0 dev 10 function 0: Opti 82C861 (rev. 0x10)
ohci0: interrupting at irq 9
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mips3_cp0_counter" frequency 75000000 Hz quality 100
uhub0 at usb0: Opti OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
:
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: vendor 0x05e3 USB TO IDE, rev 2.00/0.33, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <WDC WD80, 0BB-00JHC0, 0811> disk fixed
sd0: fabricating a geometry
sd0: 76319 MB, 76319 cyl, 64 head, 32 sec, 512 bytes/sect x 156301488 sectors
:
# newfs /dev/rsd0a
/dev/rsd0a: 76319.1MB (156301488 sectors) block size 16384, fragment size 2048
using 415 cylinder groups of 184.30MB, 11795 blks, 23296 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 377472, 754912, 1132352, 1509792, 1887232, 2264672, 2642112, 3019552,
...............................................................................
# mount /dev/sd0a /mnt
# tar clf - . | (cd /mnt; tar xf -)
# df /mnt
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd0a 76928960 1237028 71845484 1% /mnt
# umount /mnt
# fsck -fp /dev/rsd0a
/dev/rsd0a: 13412 files, 618514 used, 37845966 free (742 frags, 4730653 blocks,
0.0% fragmentation)
#
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index