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/23/2002 21:10:58
Hi,
From: Lennart Augustsson <lennart@augustsson.net>
Subject: Re: Libretto L2 USB IRQ Mapping
Date : Mon, 22 Apr 2002 22:44:48 +0200
Message-ID: <3CC47640.46BE4FA0@augustsson.net>
$ Here is my interrupt routing patch.
I applied this patch and disable PCIBIOS_INTR_FIXUP.
It works for me.I attached my dmesg output.
USB mouse and cbb work fine.
It is Cool.
acpi has some pci access code(such as ApciOsWritePciConfiguration(),
ApciOsReadPciConfiguration()) in sys/dev/acpi/acpica.
Maybe it can set PCI devices.
Regards
---
Masanori Kanaoka kanaoka@ann.hi-ho.ne.jp
--------------------------[ 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 0xc04b1554
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: get link \134_SB_.PCI0.FNC0.LNKA
acpi0: bus=0 dev=4 pin=A line=11
acpi0: fixing up link \134_SB_.PCI0.FNC0.LNKB
acpi_allocate_resources: enter
acpi_allocate_resources: current
Resource structure 0.
IRQ Resource
Level Triggered
Active Low
Shared
0 Interrupts ( )
Resource structure 1.
EndTag Resource
acpi_allocate_resources: possible
Resource structure 0.
IRQ Resource
Level Triggered
Active Low
Shared
7 Interrupts ( 3 4 5 6 7 A B )
Resource structure 1.
EndTag Resource
acpi_allocate_resources: new
Resource structure 0.
IRQ Resource
Level Triggered
Active Low
Shared
1 Interrupts ( B )
Resource structure 1.
EndTag Resource
acpi_allocate_resources: done
acpi0: get link \134_SB_.PCI0.FNC0.LNKB
acpi0: bus=0 dev=18 pin=A line=11
acpi0: get link \134_SB_.PCI0.FNC0.LNKC
acpi0: bus=0 dev=14 pin=A line=10
acpi0: fixing up link \134_SB_.PCI0.FNC0.LNKH
acpi_allocate_resources: enter
acpi_allocate_resources: current
Resource structure 0.
IRQ Resource
Level Triggered
Active Low
Shared
0 Interrupts ( )
Resource structure 1.
EndTag Resource
acpi_allocate_resources: possible
Resource structure 0.
IRQ Resource
Level Triggered
Active Low
Shared
7 Interrupts ( 3 4 5 6 7 A B )
Resource structure 1.
EndTag Resource
acpi_allocate_resources: new
Resource structure 0.
IRQ Resource
Level Triggered
Active Low
Shared
1 Interrupts ( B )
Resource structure 1.
EndTag Resource
acpi_allocate_resources: done
acpi0: get link \134_SB_.PCI0.FNC0.LNKH
acpi0: bus=0 dev=6 pin=A line=11
acpi0: get link \134_SB_.PCI0.FNC0.LNKG
acpi0: bus=0 dev=20 pin=A line=7
acpi_pci_fixup table:
dev 20 pin=A line=7
dev 06 pin=A line=11
dev 14 pin=A line=10
dev 18 pin=A line=11
dev 04 pin=A line=11
skip , status=c037c661
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)
pci0: fixup intr 0:6:0 A: 255 -> 11
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
pci0: fixup intr 0:18:0 A: 255 -> 11
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.
com2 at pcmcia0 function 0: serial device
com2: ns16550a, working fifo
uhidev0 at uhub0 port 1 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
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 4 added (80x25, vt100 emulation)
uhidev0: at uhub0 port 1 (addr 2) disconnected
wsmouse1 detached
ums0 detached
uhidev0 detached