Subject: Re: Libretto L2 USB IRQ Mapping
To: None <lennart@augustsson.net>
From: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>
List: tech-kern
Date: 04/24/2002 17:14:52
Hi,

       From: Lennart Augustsson <lennart@augustsson.net>
    Subject: Re: Libretto L2 USB IRQ Mapping
      Date : Wed, 24 Apr 2002 01:34:18 +0200
 Message-ID: <3CC5EF7A.8114EC65@augustsson.net>

$ Thanks for the tip.  Here's a simplified version of my patch.
$ It's local to dev/acpi now.

It is Cool.
Thanks for your efforts.

Regards
---
 Masanori Kanaoka	kanaoka@ann.hi-ho.ne.jp



NetBSD 1.5ZC (IDEA) #0: Wed Apr 24 12:10:48 JST 2002
    root@idea.k.vnop.net:/usr/src/sys/arch/i386/compile/IDEA
cpu0: Transmeta Crusoe (586-class), 597.79 MHz
cpu0: Processor revision 1.3.2.0
cpu0: Code Morphing Software Rev: 4.2.5-8-148
cpu0: 20010503 11:00 official release 4.2.5#1
cpu0: LongRun mode: 1  <600MHz 1600mV 100%>
cpu0: features 80893f<FPU,VME,DE,PSE,TSC,MSR,CX8,SEP>
cpu0: features 80893f<CMOV,MMX>
total memory = 110 MB
avail memory = 98 MB
using 1446 buffers containing 5784 KB of memory
BIOS32 rev. 0 found at 0xfb5bb
PCI BIOS rev. 2.1 found at 0xfcd73
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xf01c0, size 112 bytes (5 entries)
PCI Interrupt Router at 000:07:0 (Acer Labs M1543 PCI-ISA Bridge)
PCI fixup examining 1279:395
PCI fixup examining 1279:396
PCI fixup examining 1279:397
PCI fixup examining 5333:8c12
PCI fixup examining 10b9:5451
PCI fixup examining 10b9:1533
PCI fixup examining 8086:1229
PCI fixup examining 10b9:5229
PCI fixup examining 10b9:7101
PCI fixup examining 1179:617
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 10b9:5237
PCI bus #1 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1279 0x0395 
	10h mem  0xefd00000 0x00100000
		[OK]
000:00:1 0x1279 0x0396 
		[OK]
000:00:2 0x1279 0x0397 
		[OK]
000:04:0 0x5333 0x8c12 
	10h mem  0xe0000000 0x08000000
		[OK]
000:06:0 0x10b9 0x5451 
	10h port 0x00000000 0x00000100
	14h mem  0x00000000 0x00001000
		[NG]
000:07:0 0x10b9 0x1533 
		[OK]
000:14:0 0x8086 0x1229 
	10h mem  0xdffff000 0x00001000
	14h port 0x0000edc0 0x00000040
	18h mem  0xdfe00000 0x00100000
		[OK]
000:16:0 0x10b9 0x5229 
	20h port 0x0000edb0 0x00000010
		[OK]
000:17:0 0x10b9 0x7101 
		[OK]
000:18:0 0x1179 0x0617 
	10h mem  0x00000000 0x00001000
		[NG]
000:20:0 0x10b9 0x5237 
	10h mem  0xdfdfe000 0x00001000
		[OK]
--------------------------[  2 devices bogus]
 Physical memory end: 0x06f5a000
 PCI memory mapped I/O space start: 0x07000000
[PCIBIOS fixup stage]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1279 0x0395 
	10h mem  0xefd00000 0x00100000
		[OK]
000:00:1 0x1279 0x0396 
		[OK]
000:00:2 0x1279 0x0397 
		[OK]
000:04:0 0x5333 0x8c12 
	10h mem  0xe0000000 0x08000000
		[OK]
000:06:0 0x10b9 0x5451 
	10h port 0x00005800 0x00000100
	14h mem  0x07000000 0x00001000
		[OK]
000:07:0 0x10b9 0x1533 
		[OK]
000:14:0 0x8086 0x1229 
	10h mem  0xdffff000 0x00001000
	14h port 0x0000edc0 0x00000040
	18h mem  0xdfe00000 0x00100000
		[OK]
000:16:0 0x10b9 0x5229 
	20h port 0x0000edb0 0x00000010
		[OK]
000:17:0 0x10b9 0x7101 
		[OK]
000:18:0 0x1179 0x0617 
	10h mem  0x07001000 0x00001000
		[OK]
000:20:0 0x10b9 0x5237 
	10h mem  0xdfdfe000 0x00001000
		[OK]
--------------------------[  0 devices bogus]
mainbus0 (root)
 tbxface-0207 [01] AcpiLoadTables        : ACPI Tables successfully loaded
Parsing Methods:.............................................................................................
93 Control Methods found and parsed (509 nodes total)
ACPI Namespace successfully loaded at root 0xc04b1534
acpi0 at mainbus0
evxfevnt-0179 [02] AcpiEnable            : Transition to ACPI mode successful
acpi0: fixed-feature power button present
acpi_pci_fixup starts:
acpi0: fixing up PCI
acpi0: fixing up link \134_SB_.PCI0.FNC0.LNKB
acpi fixup pci intr: 0:18:0 A: 255 -> 11
acpi0: fixing up link \134_SB_.PCI0.FNC0.LNKH
acpi fixup pci intr: 0:6:0 A: 255 -> 11
skip \M-R\M-cD\M-@\^L\M-mD\M-@, status=c01ed4da
PNP0C01 at acpi0 not configured
PNP0A03 at acpi0 not configured
skip PNP0C0F, status=b
skip PNP0C0F, status=b
skip PNP0C0F, status=b
skip PNP0C0F, status=b
skip PNP0C0F, status=b
PNP0200 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0800 at acpi0 not configured
PNP0C04 at acpi0 not configured
PNP0303 at acpi0 not configured
PNP0F13 at acpi0 not configured
PNP0B00 at acpi0 not configured
PNP0C02 at acpi0 not configured
acpilid0 at acpi0: ACPI Lid Switch
PNP0C0A at acpi0 not configured
acpiacad0 at acpi0: ACPI AC Adapter
acpiacad0: AC adapter connected
skip TOS6200, status=b
skip TOS6201, status=b
PNP0C0B at acpi0 not configured
PNP0C0B at acpi0 not configured
PNP0C0B at acpi0 not configured
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Transmeta Corp LongRun Northbridge (rev. 0x01)
Transmeta Corp SDRAM Controller (RAM memory) at pci0 dev 0 function 1 not configured
Transmeta Corp BIOS Scratchpad (RAM memory) at pci0 dev 0 function 2 not configured
vga1 at pci0 dev 4 function 0: S3 Savage/IX+MV (rev. 0x13)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (80x25, vt100 emulation)
autri0 at pci0 dev 6 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x01)
autri0: interrupting at irq 11
autri0: Asahi Kasei AK4543 codec; headphone, 18 bit DAC, 18 bit ADC, AKM 3D
audio0 at autri0: full duplex, mmap, independent
midi0 at autri0: 4DWAVE MIDI UART
pcib0 at pci0 dev 7 function 0
pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x00)
fxp0 at pci0 dev 14 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at irq 10
fxp0: Ethernet address 00:00:39:fa:d6:d1
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pciide0 at pci0 dev 16 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc3)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK2018GAP>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 19077 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 39070080 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel ignored (disabled)
Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci0 dev 17 function 0 not configured
cbb0 at pci0 dev 18 function 0: Toshiba ToPIC100 CardBus-PCI Bridge (rev. 0x32)
ohci0 at pci0 dev 20 function 0: Acer Labs M5237 USB Host Controller (rev. 0x03)
ohci0: interrupting at irq 7
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0
pcmcia0 at cardslot0
biomask e9fd netmask edfd ttymask fdff
ACPI: WARNING: Callback scheduled before thread present.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 4 added (80x25, vt100 emulation)
com2 at pcmcia0 function 0: serial device
com2: ns16550a, working fifo
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: Logitech N48, rev 1.00/4.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0