Re: PCI code from FreeBSD

看板DFBSD_kernel作者時間16年前 (2009/07/03 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/14 (看更多)
--BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Matthew Dillon <dillon@apollo.backplane.com> [090702 21:12]: > > Wait, you mean you ported the ACPI interrupt routing code? > Yep. All the ACPI-related work is here: http://github.com/polachok/dragonflybsd/tree/acpi2 See dmesg attached for example. --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.acpi" Copyright (c) 2003-2009 The DragonFly Project. Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. DragonFly 2.3.1-DEVELOPMENT #31: Thu Jul 2 17:12:32 MSD 2009 root@pinnsvin.forest:/usr/obj/usr/src/sys/GENERIC TSC clock: 799988782 Hz, i8254 clock: 1193168 Hz CPU: Mobile AMD Sempron(tm) Processor 3300+ (800.01-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x20fc2 Stepping = 2 Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> Features2=0x1<SSE3> AMD Features=0xc0500000<NX,AMIE,DSP,3DNow!> real memory = 468320256 (457344K bytes) avail memory = 440942592 (430608K bytes) Preloaded elf kernel "/boot/kernel" at 0xc081a000. Preloaded elf module "/boot/modules/vesa.ko" at 0xc081a290. Preloaded elf module "/boot/modules/acpi.ko" at 0xc081a33c. Pentium Pro MTRR support enabled md0: Malloc disk ACPI: RSDP 0xf7ed0 00014 (v0 PTLTD ) ACPI: RSDT 0x1beaa446 00034 (v1 PTLTD RSDT 06040000 LTP 00000000) ACPI: FACP 0x1beaedff 00074 (v1 FUJ W37 06040000 W37 000F4240) ACPI: DSDT 0x1beaa47a 04985 (v1 FUJ W37 06040000 MSFT 0100000E) ACPI: FACS 0x1beaffc0 00040 ACPI: SSDT 0x1beaee73 000F7 (v1 PTLTD POWERNOW 06040000 LTP 00000001) ACPI: APIC 0x1beaef6a 0005A (v1 PTLTD APIC 06040000 LTP 00000000) ACPI: MCFG 0x1beaefc4 0003C (v1 PTLTD MCFG 06040000 LTP 00000000) sched_ithd: stray interrupt 7 on cpu 0 npx0: <math processor> on motherboard npx0: INT 16 interface Using XMM optimized bcopy/copyin/copyout acpi0: <PTLTD RSDT> on motherboard acpi0: Power Button (fixed) Warning: ACPI is disabling APM's device. You can't run both acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_ec0: <Embedded Controller: GPE 0x3> port 0x66,0x62 on acpi0 acpi_lid0: <Control Method Lid Switch> on acpi0 acpi_button0: <Sleep Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pcib0: (null)->0.19.INTA, prt->Source: \\_SB_.PCI0.LPC0.LNKD prt->SourceIndex: 0 pcib0: slot 19 INTA routed to irq 11 via \\_SB_.PCI0.LPC0.LNKD pcib0: (null)->0.19.INTA, prt->Source: \\_SB_.PCI0.LPC0.LNKD prt->SourceIndex: 0 pcib0: slot 19 INTA routed to irq 11 via \\_SB_.PCI0.LPC0.LNKD pcib0: (null)->0.19.INTA, prt->Source: \\_SB_.PCI0.LPC0.LNKD prt->SourceIndex: 0 pcib0: slot 19 INTA routed to irq 11 via \\_SB_.PCI0.LPC0.LNKD pcib0: (null)->0.20.INTA, prt->Source: \\_SB_.PCI0.LPC0.LNKA prt->SourceIndex: 0 pcib0: slot 20 INTA routed to irq 11 via \\_SB_.PCI0.LPC0.LNKA pcib0: (null)->0.20.INTB, prt->Source: \\_SB_.PCI0.LPC0.LNKB prt->SourceIndex: 0 pcib0: slot 20 INTB routed to irq 11 via \\_SB_.PCI0.LPC0.LNKB pcib0: (null)->0.20.INTB, prt->Source: \\_SB_.PCI0.LPC0.LNKB prt->SourceIndex: 0 pcib0: slot 20 INTB routed to irq 11 via \\_SB_.PCI0.LPC0.LNKB pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0 pci1: <ACPI PCI bus> on pcib1 pcib1: (null)->1.5.INTA, prt->Source: \\_SB_.PCI0.LPC0.LNKB prt->SourceIndex: 0 pcib1: slot 5 INTA routed to irq 11 via \\_SB_.PCI0.LPC0.LNKB vgapci0: <VGA-compatible display> port 0x9000-0x90ff mem 0xd0100000-0xd010ffff,0xd4000000-0xd7ffffff irq 11 at device 5.0 on pci1 ohci0: <ATI SB400 USB Controller> mem 0xd0000000-0xd0000fff irq 11 at device 19.0 on pci0 usb0: OHCI version 1.0, legacy support usb0: <ATI SB400 USB Controller> on ohci0 usb0: USB revision 1.0 uhub0: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0 uhub0: 4 ports with 4 removable, self powered ohci1: <ATI SB400 USB Controller> mem 0xd0001000-0xd0001fff irq 11 at device 19.1 on pci0 usb1: OHCI version 1.0, legacy support usb1: <ATI SB400 USB Controller> on ohci1 usb1: USB revision 1.0 uhub1: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1 uhub1: 4 ports with 4 removable, self powered atapci0: <ATI IXP400 UDMA133 controller> port 0x8410-0x841f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 irq 11 at device 20.1 on pci0 ata0: <ATA channel 0> on atapci0 ad0: 152627MB <SAMSUNG HM160HC LQ100-10> at ata0-master UDMA100 ata1: <ATA channel 1> on atapci0 acd0: DVDR <HL-DT-ST DVD-RW GWA-4082N/CW02> at ata1-master UDMA33 isab0: <PCI-ISA bridge> at device 20.3 on pci0 isa0: <ISA bus> on isab0 pcib2: <ACPI PCI-PCI bridge> at device 20.4 on pci0 pci_link7: BIOS IRQ 7 for 2.7.INTA is invalid pci2: <ACPI PCI bus> on pcib2 pcib2: (null)->2.5.INTA, prt->Source: \\_SB_.PCI0.LPC0.LNKE prt->SourceIndex: 0 pcib2: slot 5 INTA routed to irq 11 via \\_SB_.PCI0.LPC0.LNKE pcib2: (null)->2.7.INTA, prt->Source: \\_SB_.PCI0.LPC0.LNKH prt->SourceIndex: 0 pcib2: slot 7 INTA routed to irq 10 via \\_SB_.PCI0.LPC0.LNKH pcib2: (null)->2.9.INTC, prt->Source: \\_SB_.PCI0.LPC0.LNKG prt->SourceIndex: 0 pcib2: slot 9 INTC routed to irq 10 via \\_SB_.PCI0.LPC0.LNKG pcib2: (null)->2.9.INTA, prt->Source: \\_SB_.PCI0.LPC0.LNKE prt->SourceIndex: 0 pcib2: slot 9 INTA routed to irq 11 via \\_SB_.PCI0.LPC0.LNKE rl0: <RealTek 8139 10/100BaseTX> port 0xa000-0xa0ff mem 0xd0216000-0xd02160ff irq 10 at device 7.0 on pci2 miibus0: <MII bus> on rl0 rlphy0: <RealTek internal media interface> on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: MAC address: 00:0a:e4:b2:39:be cbb0: <TI6411 PCI-CardBus Bridge> at device 9.0 on pci2 cardbus0: <CardBus bus> on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pcib2: cbb0->2.9.INTA, prt->Source: \\_SB_.PCI0.LPC0.LNKE prt->SourceIndex: 0 pcib2: slot 9 INTA routed to irq 11 via \\_SB_.PCI0.LPC0.LNKE fwohci0: vendor=104c, dev=8032 fwohci0: <1394 Open Host Controller Interface> mem 0xd0210000-0xd0213fff,0xd0216800-0xd0216fff irq 10 at device 9.2 on pci2 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channel is 4. fwohci0: EUI64 00:0a:e4:05:48:10:0b:53 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: <IEEE1394(FireWire) bus> on fwohci0 fwe0: <Ethernet over FireWire> on firewire0 fwe0: MAC address: 02:0a:e4:10:0b:53 sbp0: <SBP-2/SCSI over FireWire> on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) acpi_tz0: <Thermal Zone> on acpi0 acpi_tz1: <Thermal Zone> on acpi0 atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 battery0: <ACPI Control Method Battery> on acpi0 acpi_acad0: <AC Adapter> on acpi0 cpu0: <ACPI CPU> on acpi0 cpu_cst0: <ACPI CPU C-State> on cpu0 cpu_pst0: <ACPI CPU P-State> on cpu0 orm0: <Option ROMs> at iomem 0xc0000-0xcffff,0xdc000-0xdffff on isa0 pmtimer0 on isa0 fdc0: ready for input in output fdc0: cmd 3 failed at out byte 1 of 3 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: can't drain, serial port might not exist, disabling sio1: can't drain, serial port might not exist, disabling ppc0: parallel port not found. ip: MPSAFE arp: MPSAFE Mounting root from hammer:/dev/ad0s3a cd0 at ata1 bus 0 target 0 lun 0 cd0: <HL-DT-ST DVD-RW GWA-4082N CW02> Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [240685 x 2048 byte records] acpi_ec0: wait timed out (response), forcing polled mode system power profile changed to 'economy' sched_ithd: stray interrupt 7 on cpu 0 --BXVAT5kNtrzKuDFl--
文章代碼(AID): #1AJFNh00 (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #1AJFNh00 (DFBSD_kernel)