Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2004 15:39:28 -0400
From:      Jung-uk Kim <jkim@niksun.com>(by way of Jung-uk Kim <jkim@niksun.com>)
To:        freebsd-acpi@freebsd.org
Subject:   Compaq R3000Z and ACPI
Message-ID:  <200407081539.28959.jkim@niksun.com>

next in thread | raw e-mail | index | archive | help

--Boundary-00=_wLa7Aa3t1mLIRsx
Content-Type: text/plain;
  charset="euc-kr"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Today I wrote:
> I have a Compaq Presario R3000Z laptop.  I made it working but ACPI
> seems completely broken.
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=67745
> http://docs.freebsd.org/cgi/mid.cgi?200407071823.41541.jkim
>
> When ACPI is enabled, keyboard controller port1 (0x60?) resource
> allocation fails (atkbdc_probe() from src/sys/isa/atkbdc_isa.c).  I
> have no idea why Compaq/HP did this but the keyboard controller
> doesn't look standard (if there's such thing).
>
> Anyway, I need ACPI guru's opinion.  Can anyone take a quick look at
> the attachments and give me any clue?

I guess mailman cut the attachments. :-(  Plain text now.

Sorry,

Jung-uk Kim

--Boundary-00=_wLa7Aa3t1mLIRsx
Content-Type: text/plain;
  charset="euc-kr";
  name="dmesg.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="dmesg.txt"

ACPI set debug layer 'ACPI_BUS' level 'ACPI_LV_VERBOSE'
Copyright (c) 1992-2004 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.
FreeBSD 5.2-CURRENT #0: Thu Jul  8 11:25:32 EDT 2004
    jkim@presario.mj.niksun.com:/usr/src/sys/amd64/compile/PRESARIO
Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff80774000.
Preloaded acpi_dsdt "/boot/r3000z.aml" at 0xffffffff80774250.
ACPI APIC Table: <NVIDIA NV_APIC_>
Calibrating clock(s) ... i8254 clock: 1193173 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254" frequency 1193182 Hz quality 0
Calibrating TSC clock ... TSC clock: 797945756 Hz
CPU: AMD Athlon(tm) 64 Processor 3200+ (797.95-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf4a  Stepping = 10
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
L1 2MB data TLB: 8 entries, fully associative
L1 2MB instruction TLB: 8 entries, fully associative
L1 4KB data TLB: 32 entries, fully associative
L1 4KB instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 2MB unified TLB: 0 entries, disabled/not present
L2 4KB data TLB: 512 entries, 4-way associative
L2 4KB instruction TLB: 512 entries, 4-way associative
L2 unified cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 16-way associative
real memory  = 536281088 (511 MB)
Physical memory chunk(s):
0x0000000000001000 - 0x000000000009efff, 647168 bytes (158 pages)
0x00000000007fa000 - 0x000000001f03bfff, 511975424 bytes (124994 pages)
avail memory = 508063744 (484 MB)
APIC: CPU 0 has ACPI ID 0
ACPI: DSDT was overridden.
   tbget-0374: *** Info: Table [DSDT] replaced by host OS
MADT: Found IO APIC ID 2, Interrupt 0 at 0xfec00000
ioapic0: Changing APIC ID to 2
ioapic0: Routing external 8259A's -> intpin 0
ioapic0: intpin 0 -> ExtINT (edge, high)
ioapic0: intpin 1 -> ISA IRQ 1 (edge, high)
ioapic0: intpin 2 -> ISA IRQ 2 (edge, high)
ioapic0: intpin 3 -> ISA IRQ 3 (edge, high)
ioapic0: intpin 4 -> ISA IRQ 4 (edge, high)
ioapic0: intpin 5 -> ISA IRQ 5 (edge, high)
ioapic0: intpin 6 -> ISA IRQ 6 (edge, high)
ioapic0: intpin 7 -> ISA IRQ 7 (edge, high)
ioapic0: intpin 8 -> ISA IRQ 8 (edge, high)
ioapic0: intpin 9 -> ISA IRQ 9 (edge, high)
ioapic0: intpin 10 -> ISA IRQ 10 (edge, high)
ioapic0: intpin 11 -> ISA IRQ 11 (edge, high)
ioapic0: intpin 12 -> ISA IRQ 12 (edge, high)
ioapic0: intpin 13 -> ISA IRQ 13 (edge, high)
ioapic0: intpin 14 -> ISA IRQ 14 (edge, high)
ioapic0: intpin 15 -> ISA IRQ 15 (edge, high)
ioapic0: intpin 16 -> PCI IRQ 16 (level, low)
ioapic0: intpin 17 -> PCI IRQ 17 (level, low)
ioapic0: intpin 18 -> PCI IRQ 18 (level, low)
ioapic0: intpin 19 -> PCI IRQ 19 (level, low)
ioapic0: intpin 20 -> PCI IRQ 20 (level, low)
ioapic0: intpin 21 -> PCI IRQ 21 (level, low)
ioapic0: intpin 22 -> PCI IRQ 22 (level, low)
ioapic0: intpin 23 -> PCI IRQ 23 (level, low)
MADT: intr override: source 9, irq 9
ioapic0: intpin 9 trigger: level
ioapic0: intpin 9 polarity: low
MADT: intr override: source 0, irq 2
ioapic0: Routing IRQ 0 -> intpin 2
ioapic0: intpin 2 trigger: edge
ioapic0: intpin 2 polarity: high
lapic0: Routing NMI -> LINT1
lapic0: LINT1 trigger: edge
lapic0: LINT1 polarity: active-high
ioapic0 <Version 1.1> irqs 0-23 on motherboard
cpu0 BSP:
     ID: 0x00000000   VER: 0x00040010 LDR: 0x01000000 DFR: 0x0fffffff
  lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff
wlan: <802.11 Link Layer>
null: <null device, zero device>
mem: <memory & I/O>
random: <entropy source, Software, Yarrow>
acpi0: <PTLTD   RSDT> on motherboard
acpi0: [GIANT-LOCKED]
pci_open(1):	mode 1 addr port (0x0cf8) is 0x80001110
pci_open(1a):	mode1res=0x80000000 (0x80000000)
pci_cfgcheck:	device 0 [class=060000] [hdr=00] is there (id=00d110de)
AcpiOsDerivePciId: bus 0 dev 1 func 0
acpi0: Power Button (fixed)
ACPI timer looks GOOD min = 5, max = 6, width = 1
ACPI timer looks GOOD min = 5, max = 6, width = 1
ACPI timer looks GOOD min = 5, max = 6, width = 1
ACPI timer looks GOOD min = 5, max = 6, width = 1
ACPI timer looks GOOD min = 5, max = 6, width = 1
ACPI timer looks GOOD min = 5, max = 6, width = 1
ACPI timer looks GOOD min = 5, max = 6, width = 1
ACPI timer looks GOOD min = 5, max = 6, width = 1
ACPI timer looks GOOD min = 5, max = 6, width = 1
ACPI timer looks GOOD min = 5, max = 6, width = 1
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
cpu0: <ACPI CPU (2 Cx states)> port 0x530-0x537 on acpi0
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
acpi_tz0: <Thermal Zone> port 0x530-0x537 on acpi0
acpi_button0: <Power Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
ACPI PCI link initial configuration:
\\_SB_.PCI0.LSMB irq   0: [ 20 21 22] low,level,sharable 0.1.0
\\_SB_.PCI0.LUS0 irq   0: [ 20 21 22] low,level,sharable 0.2.0
\\_SB_.PCI0.LUS1 irq   0: [ 20 21 22] low,level,sharable 0.2.1
\\_SB_.PCI0.LUS2 irq   0: [ 20 21 22] low,level,sharable 0.2.2
\\_SB_.PCI0.LACI irq   0: [ 20 21 22] low,level,sharable 0.6.0
\\_SB_.PCI0.LMCI irq   0: [ 20 21 22] low,level,sharable 0.6.1
\\_SB_.PCI0.LPID irq   0: [ 20 21 22] low,level,sharable 0.8.0
\\_SB_.PCI0.LTID irq   0: [ 20 21 22] low,level,sharable 0.9.0
ACPI PCI link before setting link priority:
\\_SB_.PCI0.LSMB:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	0
\\_SB_.PCI0.LUS0:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	0
\\_SB_.PCI0.LUS1:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	0
\\_SB_.PCI0.LUS2:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	0
\\_SB_.PCI0.LACI:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	0
\\_SB_.PCI0.LMCI:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	0
\\_SB_.PCI0.LPID:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	0
\\_SB_.PCI0.LTID:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	0
ACPI PCI link before fixup for boot-disabled links:
\\_SB_.PCI0.LSMB:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	80
\\_SB_.PCI0.LUS0:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	80
\\_SB_.PCI0.LUS1:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	80
\\_SB_.PCI0.LUS2:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	80
\\_SB_.PCI0.LACI:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	80
\\_SB_.PCI0.LMCI:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	80
\\_SB_.PCI0.LPID:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	80
\\_SB_.PCI0.LTID:
	interrupts:	    20    21    22
	penalty:	    80    80    80
	references:	1
	priority:	80
ACPI PCI link after fixup for boot-disabled links:
ACPI PCI link arbitrated configuration:
\\_SB_.PCI0.LSMB irq  22: [ 20 21 22] low,level,sharable 0.1.0
\\_SB_.PCI0.LUS0 irq  21: [ 20 21 22] low,level,sharable 0.2.0
\\_SB_.PCI0.LUS1 irq  20: [ 20 21 22] low,level,sharable 0.2.1
\\_SB_.PCI0.LUS2 irq  22: [ 20 21 22] low,level,sharable 0.2.2
\\_SB_.PCI0.LACI irq  21: [ 20 21 22] low,level,sharable 0.6.0
\\_SB_.PCI0.LMCI irq  20: [ 20 21 22] low,level,sharable 0.6.1
\\_SB_.PCI0.LPID irq  22: [ 20 21 22] low,level,sharable 0.8.0
\\_SB_.PCI0.LTID irq  21: [ 20 21 22] low,level,sharable 0.9.0
pci0: <ACPI PCI bus> on pcib0
pci0: physical bus=0
	map[10]: type 3, range 32, base e8000000, size 27, enabled
found->	vendor=0x10de, dev=0x00d1, revid=0xa4
	bus=0, slot=0, func=0
	class=06-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0106, statreg=0x00b0, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
found->	vendor=0x10de, dev=0x00d0, revid=0xa6
	bus=0, slot=1, func=0
	class=06-01-00, hdrtype=0x00, mfdev=1
	cmdreg=0x000f, statreg=0x00a0, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	map[20]: type 4, range 32, base 00002040, size  6, enabled
	map[24]: type 4, range 32, base 00002000, size  6, enabled
pcib0: matched entry for 0.1.INTA (src \\_SB_.PCI0.LSMB)
pcib0: slot 1 INTA is routed to irq 22
found->	vendor=0x10de, dev=0x00d4, revid=0xa4
	bus=0, slot=1, func=1
	class=0c-05-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0001, statreg=0x00b0, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x03 (750 ns), maxlat=0x01 (250 ns)
	intpin=a, irq=22
	powerspec 2  supports D0 D3  current D0
	map[10]: type 1, range 32, base e0000000, size 12, enabled
pcib0: matched entry for 0.2.INTA (src \\_SB_.PCI0.LUS0)
pcib0: slot 2 INTA is routed to irq 21
found->	vendor=0x10de, dev=0x00d7, revid=0xa5
	bus=0, slot=2, func=0
	class=0c-03-10, hdrtype=0x00, mfdev=1
	cmdreg=0x0007, statreg=0x00b0, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x03 (750 ns), maxlat=0x01 (250 ns)
	intpin=a, irq=21
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 1, range 32, base e0001000, size 12, enabled
pcib0: matched entry for 0.2.INTB (src \\_SB_.PCI0.LUS1)
pcib0: slot 2 INTB is routed to irq 20
found->	vendor=0x10de, dev=0x00d7, revid=0xa5
	bus=0, slot=2, func=1
	class=0c-03-10, hdrtype=0x00, mfdev=1
	cmdreg=0x0007, statreg=0x00b0, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x03 (750 ns), maxlat=0x01 (250 ns)
	intpin=b, irq=20
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 1, range 32, base e0004000, size  8, enabled
pcib0: matched entry for 0.2.INTC (src \\_SB_.PCI0.LUS2)
pcib0: slot 2 INTC is routed to irq 22
found->	vendor=0x10de, dev=0x00d8, revid=0xa2
	bus=0, slot=2, func=2
	class=0c-03-20, hdrtype=0x00, mfdev=1
	cmdreg=0x0006, statreg=0x00b0, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x03 (750 ns), maxlat=0x01 (250 ns)
	intpin=c, irq=22
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 4, range 32, base 00001400, size  8, enabled
	map[14]: type 4, range 32, base 00001c00, size  7, enabled
	map[18]: type 1, range 32, base e0002000, size 12, enabled
pcib0: matched entry for 0.6.INTA (src \\_SB_.PCI0.LACI)
pcib0: slot 6 INTA is routed to irq 21
found->	vendor=0x10de, dev=0x00da, revid=0xa2
	bus=0, slot=6, func=0
	class=04-01-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0007, statreg=0x00b0, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x02 (500 ns), maxlat=0x05 (1250 ns)
	intpin=a, irq=21
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 4, range 32, base 00001800, size  8, enabled
	map[14]: type 4, range 32, base 00001c80, size  7, enabled
	map[18]: type 1, range 32, base e0003000, size 12, enabled
pcib0: matched entry for 0.6.INTB (src \\_SB_.PCI0.LMCI)
pcib0: slot 6 INTB is routed to irq 20
found->	vendor=0x10de, dev=0x00d9, revid=0xa2
	bus=0, slot=6, func=1
	class=07-03-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0007, statreg=0x00b0, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x02 (500 ns), maxlat=0x05 (1250 ns)
	intpin=b, irq=20
	powerspec 2  supports D0 D3  current D0
	map[20]: type 4, range 32, base 00002080, size  4, enabled
found->	vendor=0x10de, dev=0x00d5, revid=0xa5
	bus=0, slot=8, func=0
	class=01-01-8a, hdrtype=0x00, mfdev=0
	cmdreg=0x0005, statreg=0x00b0, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x03 (750 ns), maxlat=0x01 (250 ns)
	powerspec 2  supports D0 D3  current D0
found->	vendor=0x10de, dev=0x00dd, revid=0xa2
	bus=0, slot=10, func=0
	class=06-04-00, hdrtype=0x01, mfdev=0
	cmdreg=0x0107, statreg=0x00a0, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x02 (500 ns)
found->	vendor=0x10de, dev=0x00d2, revid=0xa4
	bus=0, slot=11, func=0
	class=06-04-00, hdrtype=0x01, mfdev=0
	cmdreg=0x0107, statreg=0x0220, cachelnsz=0 (dwords)
	lattimer=0x10 (480 ns), mingnt=0x0f (3750 ns), maxlat=0x00 (0 ns)
found->	vendor=0x1022, dev=0x1100, revid=0x00
	bus=0, slot=24, func=0
	class=06-00-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0000, statreg=0x0010, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
found->	vendor=0x1022, dev=0x1101, revid=0x00
	bus=0, slot=24, func=1
	class=06-00-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
found->	vendor=0x1022, dev=0x1102, revid=0x00
	bus=0, slot=24, func=2
	class=06-00-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
found->	vendor=0x1022, dev=0x1103, revid=0x00
	bus=0, slot=24, func=3
	class=06-00-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
WARNING: Unable to detach object data from \\_SB_.PCI0.USB0 - AE_NOT_FOUND
WARNING: Unable to detach object data from \\_SB_.PCI0.USB1 - AE_NOT_FOUND
WARNING: Unable to detach object data from \\_SB_.PCI0.USB2 - AE_NOT_FOUND
WARNING: Unable to detach object data from \\_SB_.PCI0.IDE0 - AE_NOT_FOUND
WARNING: Unable to detach object data from \\_SB_.PCI0.SMB0 - AE_NOT_FOUND
WARNING: Unable to detach object data from \\_SB_.PCI0.AUD0 - AE_NOT_FOUND
WARNING: Unable to detach object data from \\_SB_.PCI0.MODM - AE_NOT_FOUND
WARNING: Unable to detach object data from \\_SB_.PCI0.LPC0 - AE_NOT_FOUND
WARNING: Unable to detach object data from \\_SB_.PCI0.P2P0 - AE_NOT_FOUND
WARNING: Unable to detach object data from \\_SB_.PCI0.AGP0 - AE_NOT_FOUND
agp0: <nVidia nForce3 host to AGP bridge> mem 0xe8000000-0xefffffff at device 0.0 on pci0
AMD64: 1 Misc. Control unit(s) found.
agp0: Reserved 0x8000000 bytes for rid 0x10 type 3 at 0xe8000000
agp0: allocating GATT for aperture of size 128M
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
ohci0: <nVidia nForce3 USB Controller> mem 0xe0000000-0xe0000fff irq 21 at device 2.0 on pci0
ohci0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xe0000000
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <nVidia nForce3 USB Controller> on ohci0
usb0: USB revision 1.0
uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <nVidia nForce3 USB Controller> mem 0xe0001000-0xe0001fff irq 20 at device 2.1 on pci0
ohci1: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xe0001000
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: SMM does not respond, resetting
usb1: <nVidia nForce3 USB Controller> on ohci1
usb1: USB revision 1.0
uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pci0: <serial bus, USB> at device 2.2 (no driver attached)
pcm0: <Nvidia nForce3> port 0x1c00-0x1c7f,0x1400-0x14ff mem 0xe0002000-0xe0002fff irq 21 at device 6.0 on pci0
pcm0: Reserved 0x100 bytes for rid 0x10 type 4 at 0x1400
pcm0: Reserved 0x80 bytes for rid 0x14 type 4 at 0x1c00
pcm0: [GIANT-LOCKED]
pcm0: <Analog Devices AD1981B AC97 Codec (id = 0x41445374)>
pcm0: Codec features headphone, 20 bit DAC, 5 bit master volume, no 3D Stereo Enhancement
pcm0: Primary codec extended features variable rate PCM, reserved 1, AMAP, reserved 4
pcm0: sndbuf_setmap a4b000, 4000; 0xffffffff94e34000 -> a4b000
pcm0: sndbuf_setmap a4f000, 4000; 0xffffffff94e38000 -> a4f000
pci0: <simple comms> at device 6.1 (no driver attached)
atapci0: <nVidia nForce3 UDMA133 controller> port 0x2080-0x208f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 8.0 on pci0
atapci0: Reserved 0x10 bytes for rid 0x20 type 4 at 0x2080
atapci0: Reserved 0x8 bytes for rid 0x10 type 4 at 0x1f0
atapci0: Reserved 0x1 bytes for rid 0x14 type 4 at 0x3f6
ata0: reset tp1 mask=03 ostat0=50 ostat1=00
ata0-master: stat=0x50 err=0x01 lsb=0x00 msb=0x00
ata0-slave:  stat=0x00 err=0x01 lsb=0x00 msb=0x00
ata0: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
atapci0: Reserved 0x8 bytes for rid 0x18 type 4 at 0x170
atapci0: Reserved 0x1 bytes for rid 0x1c type 4 at 0x376
ata1: reset tp1 mask=03 ostat0=50 ostat1=01
ata1-master: stat=0x00 err=0x01 lsb=0x14 msb=0xeb
ata1-slave:  stat=0x01 err=0x04 lsb=0x00 msb=0x00
ata1: reset tp2 stat0=00 stat1=01 devices=0x4<ATAPI_MASTER>
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pcib1: <ACPI PCI-PCI bridge> at device 10.0 on pci0
pcib1:   secondary bus     2
pcib1:   subordinate bus   2
pcib1:   I/O decode        0x3000-0x7fff
pcib1:   memory decode     0xe0100000-0xe17fffff
pcib1:   prefetched decode 0xfff00000-0xfffff
ACPI PCI link initial configuration:
\\_SB_.PCI0.LNK1 irq   0: [ 16 18 19] low,level,sharable 2.0.0
\\_SB_.PCI0.LNK2 irq   0: [ 16 18 19] low,level,sharable 2.1.0
\\_SB_.PCI0.LNK3 irq   0: [ 17] low,level,sharable 2.2.0
\\_SB_.PCI0.LNK1 irq   0: [ 16 18 19] low,level,sharable 2.4.0
\\_SB_.PCI0.LNK2 irq   0: [ 16 18 19] low,level,sharable 2.4.1
ACPI PCI link before setting link priority:
\\_SB_.PCI0.LNK1:
	interrupts:	    16    18    19
	penalty:	   440   440   440
	references:	2
	priority:	0
\\_SB_.PCI0.LNK2:
	interrupts:	    16    18    19
	penalty:	   440   440   440
	references:	2
	priority:	0
\\_SB_.PCI0.LNK3:
	interrupts:	    17
	penalty:	   110
	references:	1
	priority:	0
ACPI PCI link before fixup for boot-disabled links:
\\_SB_.PCI0.LNK1:
	interrupts:	    16    18    19
	penalty:	   440   440   440
	references:	2
	priority:	880
\\_SB_.PCI0.LNK2:
	interrupts:	    16    18    19
	penalty:	   440   440   440
	references:	2
	priority:	880
\\_SB_.PCI0.LNK3:
	interrupts:	    17
	penalty:	   110
	references:	1
	priority:	110
ACPI PCI link after fixup for boot-disabled links:
ACPI PCI link arbitrated configuration:
\\_SB_.PCI0.LNK1 irq  19: [ 16 18 19] low,level,sharable 2.0.0
\\_SB_.PCI0.LNK2 irq  18: [ 16 18 19] low,level,sharable 2.1.0
\\_SB_.PCI0.LNK3 irq  17: [ 17] low,level,sharable 2.2.0
\\_SB_.PCI0.LNK1 irq  19: [ 16 18 19] low,level,sharable 2.4.0
\\_SB_.PCI0.LNK2 irq  18: [ 16 18 19] low,level,sharable 2.4.1
pci2: <ACPI PCI bus> on pcib1
pci2: physical bus=2
	map[10]: type 1, range 32, base e0108000, size 11, enabled
pcib1: device (null) requested decoded memory range 0xe0108000-0xe01087ff
	map[14]: type 1, range 32, base e0100000, size 14, enabled
pcib1: device (null) requested decoded memory range 0xe0100000-0xe0103fff
pcib1: matched entry for 2.0.INTA (src \\_SB_.PCI0.LNK1)
pcib1: slot 0 INTA is routed to irq 19
found->	vendor=0x104c, dev=0x8026, revid=0x00
	bus=2, slot=0, func=0
	class=0c-00-10, hdrtype=0x00, mfdev=0
	cmdreg=0x0116, statreg=0x0210, cachelnsz=16 (dwords)
	lattimer=0x40 (1920 ns), mingnt=0x02 (500 ns), maxlat=0x04 (1000 ns)
	intpin=a, irq=19
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 4, range 32, base 00007000, size  8, enabled
pcib1: device (null) requested decoded I/O range 0x7000-0x70ff
	map[14]: type 1, range 32, base e0108800, size  8, enabled
pcib1: device (null) requested decoded memory range 0xe0108800-0xe01088ff
pcib1: matched entry for 2.1.INTA (src \\_SB_.PCI0.LNK2)
pcib1: slot 1 INTA is routed to irq 18
found->	vendor=0x10ec, dev=0x8139, revid=0x10
	bus=2, slot=1, func=0
	class=02-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0107, statreg=0x0290, cachelnsz=0 (dwords)
	lattimer=0x40 (1920 ns), mingnt=0x20 (8000 ns), maxlat=0x40 (16000 ns)
	intpin=a, irq=18
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 1, range 32, base e0104000, size 13, enabled
pcib1: device (null) requested decoded memory range 0xe0104000-0xe0105fff
pcib1: matched entry for 2.2.INTA (src \\_SB_.PCI0.LNK3)
pcib1: slot 2 INTA is routed to irq 17
found->	vendor=0x14e4, dev=0x4320, revid=0x03
	bus=2, slot=2, func=0
	class=02-80-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0106, statreg=0x0000, cachelnsz=0 (dwords)
	lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	intpin=a, irq=17
	map[10]: type 1, range 32, base e0106000, size 12, enabled
pcib1: device (null) requested decoded memory range 0xe0106000-0xe0106fff
pcib1: matched entry for 2.4.INTA (src \\_SB_.PCI0.LNK1)
pcib1: slot 4 INTA is routed to irq 19
found->	vendor=0x104c, dev=0xac54, revid=0x01
	bus=2, slot=4, func=0
	class=06-07-00, hdrtype=0x02, mfdev=1
	cmdreg=0x0107, statreg=0x0210, cachelnsz=8 (dwords)
	lattimer=0x40 (1920 ns), mingnt=0x40 (16000 ns), maxlat=0x03 (750 ns)
	intpin=a, irq=19
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 1, range 32, base e0107000, size 12, enabled
pcib1: device (null) requested decoded memory range 0xe0107000-0xe0107fff
pcib1: matched entry for 2.4.INTB (src \\_SB_.PCI0.LNK2)
pcib1: slot 4 INTB is routed to irq 18
found->	vendor=0x104c, dev=0xac54, revid=0x01
	bus=2, slot=4, func=1
	class=06-07-00, hdrtype=0x02, mfdev=1
	cmdreg=0x0103, statreg=0x0210, cachelnsz=8 (dwords)
	lattimer=0x40 (1920 ns), mingnt=0x40 (16000 ns), maxlat=0x03 (750 ns)
	intpin=b, irq=18
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 4, range 32, base 00007400, size  6, enabled
pcib1: device (null) requested decoded I/O range 0x7400-0x743f
found->	vendor=0x104c, dev=0x8201, revid=0x01
	bus=2, slot=4, func=2
	class=08-80-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0107, statreg=0x0210, cachelnsz=16 (dwords)
	lattimer=0x40 (1920 ns), mingnt=0x07 (1750 ns), maxlat=0x04 (1000 ns)
	powerspec 2  supports D0 D3  current D0
WARNING: Unable to detach object data from \\_SB_.PCI0.P2P0.MAC0 - AE_NOT_FOUND
fwohci0: vendor=104c, dev=8026
fwohci0: <1394 Open Host Controller Interface> mem 0xe0100000-0xe0103fff,0xe0108000-0xe01087ff irq 19 at device 0.0 on pci2
fwohci0: latency timer 64 -> 64.
fwohci0: cache size 16 -> 16.
fwohci0: Reserved 0x800 bytes for rid 0x10 type 3 at 0xe0108000
fwohci0: [GIANT-LOCKED]
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 46:3f:02:00:46:3f:02:00
fwohci0: resetting OHCI...done (loop=0)
fwohci0: fwphy_rddata: 0x2 loop=0, retry=0
fwohci0: fwphy_rddata: 0x3 loop=0, retry=0
fwohci0: Phy 1394a available S400, 1 ports.
fwohci0: fwphy_rddata: 0x5 loop=0, retry=0
fwohci0: Enable 1394a Enhancements
fwohci0: fwphy_rddata: 0x5 loop=0, retry=0
fwohci0: fwphy_rddata: 0x2 loop=0, retry=0
fwohci0: fwphy_rddata: 0x4 loop=0, retry=0
fwohci0: fwphy_rddata: 0x4 loop=0, retry=0
fwohci0: fwphy_rddata: 0x4 loop=0, retry=0
fwohci0: Link S400, max_rec 2048 bytes.
fwohci0: BUS_OPT 0xa002 -> 0xf800a002
fwohci0: fwohci_set_intr: 1
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 46:3f:02:3f:02:00
fwe0: bpf attached
fwe0: Ethernet address: 46:3f:02:3f:02:00
sbp0: <SBP-2/SCSI over FireWire> on firewire0
sbp_attach (cold=1)
sbp_post_busreset
fwohci0: Initiate bus reset
fwohci0: fwphy_rddata: 0x1 loop=0, retry=0
fwohci0: fwphy_rddata: 0x1 loop=0, retry=0
fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
fwohci0: fw_set_bus_manager: 0->0 (loop=0)
firewire0: bus manager 0 (me)
send phy_config root_node=-1 gap_count=5
fwohci0: maxdesc: 2
fwohci0: start AT DMA status=0
rl0: Reserved 0x100 bytes for rid 0x10 type 4 at 0x7000
rl0: <RealTek 8139 10/100BaseTX> port 0x7000-0x70ff mem 0xe0108800-0xe01088ff irq 18 at device 1.0 on pci2
pcib1: device rl0 requested decoded I/O range 0x7000-0x70ff
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: bpf attached
rl0: Ethernet address: 00:0f:b0:01:8c:4c
rl0: [GIANT-LOCKED]
pci2: <network> at device 2.0 (no driver attached)
cbb0: <PCI-CardBus Bridge> mem 0xe0106000-0xe0106fff irq 19 at device 4.0 on pci2
cbb0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xe0106000
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb0: [MPSAFE]
cbb0: PCI Configuration space:
  0x00: 0xac54104c 0x02100107 0x06070001 0x00824008 
  0x10: 0xe0106000 0x020000a0 0x40040302 0xfffff000 
  0x20: 0x00000000 0xfffff000 0x00000000 0xfffffffc 
  0x30: 0x00000000 0xfffffffc 0x00000000 0x07400113 
  0x40: 0x006d103c 0x00000001 0x00000000 0x00000000 
  0x50: 0x00000000 0x00000000 0x00000000 0x00000000 
  0x60: 0x00000000 0x00000000 0x00000000 0x00000000 
  0x70: 0x00000000 0x00000000 0x00000000 0x00000000 
  0x80: 0x08449061 0x10000019 0x00020015 0x01111d22 
  0x90: 0x606402c0 0x00000000 0x00000000 0x00000000 
  0xa0: 0xfe120001 0x00c00000 0x00000000 0x00000000 
  0xb0: 0x00000000 0x00000000 0x00000000 0x00000000 
  0xc0: 0x00000000 0x00000000 0x00000000 0x00000000 
  0xd0: 0x00000000 0x00000000 0x00000000 0x00000000 
  0xe0: 0x00000000 0x00000000 0x00000000 0x00000000 
  0xf0: 0x00000000 0x00000000 0x00000000 0x00000000 
cbb1: <PCI-CardBus Bridge> mem 0xe0107000-0xe0107fff irq 18 at device 4.1 on pci2
cbb1: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xe0107000
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
cbb1: [MPSAFE]
cbb1: PCI Configuration space:
  0x00: 0xac54104c 0x02100107 0x06070001 0x00824008 
  0x10: 0xe0107000 0x020000a0 0x40060502 0xfffff000 
  0x20: 0x00000000 0xfffff000 0x00000000 0xfffffffc 
  0x30: 0x00000000 0xfffffffc 0x00000000 0x07400212 
  0x40: 0x006d103c 0x00000001 0x00000000 0x00000000 
  0x50: 0x00000000 0x00000000 0x00000000 0x00000000 
  0x60: 0x00000000 0x00000000 0x00000000 0x00000000 
  0x70: 0x00000000 0x00000000 0x00000000 0x00000000 
  0x80: 0x08449161 0x10000019 0x00020015 0x01111d22 
  0x90: 0x606402c0 0x00000000 0x00000000 0x00000000 
  0xa0: 0xfe120001 0x00c00000 0x00000000 0x00000000 
  0xb0: 0x00000000 0x00000000 0x00000000 0x00000000 
  0xc0: 0x00000000 0x00000000 0x00000000 0x00000000 
  0xd0: 0x00000000 0x00000000 0x00000000 0x00000000 
  0xe0: 0x00000000 0x00000000 0x00000000 0x00000000 
  0xf0: 0x00000000 0x00000000 0x00000000 0x00000000 
pci2: <base peripheral> at device 4.2 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pcib2:   secondary bus     1
pcib2:   subordinate bus   1
pcib2:   I/O decode        0xf000-0xfff
pcib2:   memory decode     0xe2000000-0xe2ffffff
pcib2:   prefetched decode 0xf0000000-0xf80fffff
ACPI PCI link initial configuration:
\\_SB_.PCI0.LNK5 irq   0: [ 16 18 19] low,level,sharable 1.0.0
ACPI PCI link before setting link priority:
\\_SB_.PCI0.LNK5:
	interrupts:	    16    18    19
	penalty:	   550   750   750
	references:	1
	priority:	0
ACPI PCI link before fixup for boot-disabled links:
\\_SB_.PCI0.LNK5:
	interrupts:	    16    18    19
	penalty:	   550   750   750
	references:	1
	priority:	683
ACPI PCI link after fixup for boot-disabled links:
ACPI PCI link arbitrated configuration:
\\_SB_.PCI0.LNK5 irq  16: [ 16 18 19] low,level,sharable 1.0.0
pci1: <ACPI PCI bus> on pcib2
pci1: physical bus=1
	map[10]: type 1, range 32, base e2000000, size 24, enabled
pcib2: device (null) requested decoded memory range 0xe2000000-0xe2ffffff
	map[14]: type 3, range 32, base f0000000, size 27, enabled
pcib2: device (null) requested decoded memory range 0xf0000000-0xf7ffffff
	map[18]: type 3, range 32, base f8000000, size 19, enabled
pcib2: device (null) requested decoded memory range 0xf8000000-0xf807ffff
pcib2: matched entry for 1.0.INTA (src \\_SB_.PCI0.LNK5)
pcib2: slot 0 INTA is routed to irq 16
found->	vendor=0x10de, dev=0x0179, revid=0xa3
	bus=1, slot=0, func=0
	class=03-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0007, statreg=0x02b0, cachelnsz=0 (dwords)
	lattimer=0x40 (1920 ns), mingnt=0x05 (1250 ns), maxlat=0x01 (250 ns)
	intpin=a, irq=16
	powerspec 2  supports D0 D3  current D0
WARNING: Unable to detach object data from \\_SB_.PCI0.AGP0.VGA_ - AE_NOT_FOUND
pci1: <display, VGA> at device 0.0 (no driver attached)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
acpi_acad0: <AC Adapter> on acpi0
AcpiOsDerivePciId: bus 0 dev 1 func 0
AcpiOsDerivePciId: bus 0 dev 1 func 0
AcpiOsDerivePciId: bus 0 dev 1 func 0
AcpiOsDerivePciId: bus 0 dev 1 func 1
AcpiOsDerivePciId: bus 0 dev 1 func 1
AcpiOsDerivePciId: bus 0 dev 1 func 0
acpi_ec0: <Embedded Controller: GPE 0x21> port 0x66,0x62 on acpi0
acpi_ec0: info: new max delay is 90 us
acpi_ec0: info: new max delay is 430 us
acpi_ec0: info: new max delay is 11000 us
acpi_cmbat0: <Control Method Battery> on acpi0
psmcpnp0 irq 12 on acpi0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: using extended I/O port range
ppc0: ECP SPP ECP+EPP SPP
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 1 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
unknown: not probed (disabled)
unknown: not probed (disabled)
unknown: not probed (disabled)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
unknown: not probed (disabled)
unknown: not probed (disabled)
unknown: not probed (disabled)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
mss_detect, busy still set (0xff)
fdc: fdc0 already exists; skipping it
ppc: ppc0 already exists; skipping it
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
sc: sc0 already exists; skipping it
vga: vga0 already exists; skipping it
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
orm0: <ISA Option ROMs> at iomem 0xd4000-0xd4fff,0xd0000-0xd3fff on isa0
atkbdc0: <Keyboard controller (i8042)> failed to probe at port 0x64,0x60 on isa0
pcic0 failed to probe at port 0x3e0 iomem 0xd0000 on isa0
pcic1: not probed (disabled)
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: irq maps: 0xe81 0xe81 0xe81 0xe81
sio0: probe failed test(s): 0 1 2 4 6 7 9
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
sio1: irq maps: 0xe81 0xe81 0xe81 0xe81
sio1: probe failed test(s): 0 1 2 4 6 7 9
sio1 failed to probe at port 0x2f8-0x2ff irq 3 on isa0
sio2: not probed (disabled)
sio3: not probed (disabled)
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xffffffff800b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 54 80 
bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
VGA parameters in BIOS for mode 24
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
EGA/VGA parameters to be used for mode 24
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 54 80 
bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
isa_probe_children: probing PnP devices
Device configuration finished.
procfs registered
Timecounter "TSC" frequency 797945756 Hz quality 800
Timecounters tick every 0.976 msec
lo0: bpf attached
Interrupt storm detected on "irq21: pcm0 ohci0"; throttling interrupt source
Current DB 0
ch = 0
 Current OP   KEY INT BR   len     Addr   Depend Stat: Cnt
1eafb000 OUTL ST2 ALL ALL    12 00000000 1eafb080 8411:0008 RUN,ACTIVE, ack complete(11)
0x000000e0 0x00450000 0xffbaffff 0x00000000
acpi_acad0: acline initialization start
acpi_acad0: On Line
acpi_acad0: acline initialization done, tried 1 times
acpi_cmbat0: battery initialization start
ata0-master: pio=0x0c wdma=0x22 udma=0x45 cable=80pin
ata0-master: setting PIO4 on nVidia nForce3 chip
ata0-master: setting UDMA100 on nVidia nForce3 chip
ad0: <IC25N060ATMR04-0/MO3OAD5A> ATA-6 disk at ata0-master
ad0: 57231MB (117210240 sectors), 116280 C, 16 H, 63 S, 512 B
ad0: 16 secs/int, 1 depth queue, UDMA100
GEOM: new disk ad0
ata1-master: pio=0x0c wdma=0x22 udma=0xffffffff cable=40pin
ata1-master: setting PIO4 on nVidia nForce3 chip
acd0: <DW-224E-A/A.2F> CDRW drive at ata1 as master
acd0: read 4134KB/s (4134KB/s) write 4134KB/s (4134KB/s), 1658KB buffer, PIO4
acd0: Reads: CDR, CDRW, CDDA stream, DVDROM, DVDR, DVDRAM, packet
acd0: Writes: CDR, CDRW, test write
acd0: Audio: play, 256 volume levels
acd0: Mechanism: ejectable tray, unlocked
acd0: Medium: no/blank disc
pcm0: measured ac97 link rate at 47997 Hz, will use 48000 Hz
bus_explore done
sbp_post_explore (sbp_cold=2)
acpi_cmbat0: battery initialization done, tried 1 times
[0] f:00 typ:7 s(CHS):0/1/1 e(CHS):1023/254/63 s:63 l:19534977
[1] f:00 typ:165 s(CHS):1023/255/63 e(CHS):1023/254/63 s:19535040 l:90108585
[2] f:80 typ:165 s(CHS):1023/255/63 e(CHS):1023/254/63 s:109643625 l:7566615
[3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
GEOM: Configure ad0s1, start 32256 length 10001908224 end 10001940479
GEOM: Configure ad0s2, start 10001940480 length 46135595520 end 56137535999
GEOM: Configure ad0s3, start 56137536000 length 3874106880 end 60011642879
GEOM: Configure ad0s2a, start 0 length 268435456 end 268435455
GEOM: Configure ad0s2b, start 268435456 length 2097152000 end 2365587455
GEOM: Configure ad0s2c, start 0 length 46135595520 end 46135595519
GEOM: Configure ad0s2e, start 2365587456 length 536870912 end 2902458367
GEOM: Configure ad0s2f, start 2902458368 length 268435456 end 3170893823
GEOM: Configure ad0s2g, start 3170893824 length 10485760000 end 13656653823
GEOM: Configure ad0s2h, start 13656653824 length 32478941696 end 46135595519
GEOM: Configure ad0s3a, start 0 length 268435456 end 268435455
GEOM: Configure ad0s3c, start 0 length 3874106880 end 3874106879
GEOM: Configure ad0s3d, start 268435456 length 536870912 end 805306367
GEOM: Configure ad0s3e, start 805306368 length 3068800512 end 3874106879
(probe0:ata0:0:0:0): error 22
(probe0:ata0:0:0:0): Unretryable Error
(probe3:ata1:0:1:0): error 22
(probe3:ata1:0:1:0): Unretryable Error
(probe0:ata0:0:0:0): error 22
(probe0:ata0:0:0:0): Unretryable Error
(probe3:ata1:0:1:0): error 22
(probe3:ata1:0:1:0): Unretryable Error
(probe1:ata0:0:1:0): error 22
(probe1:ata0:0:1:0): Unretryable Error
(probe1:ata0:0:1:0): error 22
(probe1:ata0:0:1:0): Unretryable Error
(probe2:ata1:0:0:0): error 22
(probe2:ata1:0:0:0): Unretryable Error
(probe2:ata1:0:0:0): error 6
(probe2:ata1:0:0:0): Unretryable Error
(probe2:ata1:0:0:0): error 22
(probe2:ata1:0:0:0): Unretryable Error
(probe6:sbp0:0:2:0): error 22
(probe6:sbp0:0:2:0): Unretryable Error
(probe10:sbp0:0:6:0): error 22
(probe10:sbp0:0:6:0): Unretryable Error
(probe4:sbp0:0:0:0): error 22
(probe4:sbp0:0:0:0): Unretryable Error
(probe7:sbp0:0:3:0): error 22
(probe7:sbp0:0:3:0): Unretryable Error
(probe8:sbp0:0:4:0): error 22
(probe8:sbp0:0:4:0): Unretryable Error
(probe5:sbp0:0:1:0): error 22
(probe5:sbp0:0:1:0): Unretryable Error
(probe9:sbp0:0:5:0): error 22
(probe9:sbp0:0:5:0): Unretryable Error
pass0 at ata1 bus 0 target 0 lun 0
pass0: <TEAC DW-224E-A A.2F> Removable CD-ROM SCSI-0 device 
pass0: 16.000MB/s transfers
GEOM: new disk cd0
ioapic0: routing intpin 4 (ISA IRQ 4) to cluster 0
ioapic0: routing intpin 6 (ISA IRQ 6) to cluster 0
ioapic0: routing intpin 7 (ISA IRQ 7) to cluster 0
ioapic0: routing intpin 8 (ISA IRQ 8) to cluster 0
ioapic0: routing intpin 9 (ISA IRQ 9) to cluster 0
ioapic0: routing intpin 14 (ISA IRQ 14) to cluster 0
ioapic0: routing intpin 15 (ISA IRQ 15) to cluster 0
ioapic0: routing intpin 18 (PCI IRQ 18) to cluster 0
ioapic0: routing intpin 19 (PCI IRQ 19) to cluster 0
ioapic0: routing intpin 20 (PCI IRQ 20) to cluster 0
ioapic0: routing intpin 21 (PCI IRQ 21) to cluster 0
(cd0:ata1:0:0:0): error 6
(cd0:ata1:0:0:0): Unretryable Error
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TEAC DW-224E-A A.2F> Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
(cd0:ata1:0:0:0): error 6
(cd0:ata1:0:0:0): Unretryable Error
(cd0:ata1:0:0:0): error 6
(cd0:ata1:0:0:0): Unretryable Error
(cd0:ata1:0:0:0): error 6
(cd0:ata1:0:0:0): Unretryable Error
Mounting root from ufs:/dev/ad0s3a
start_init: trying /sbin/init

--Boundary-00=_wLa7Aa3t1mLIRsx
Content-Type: text/plain;
  charset="euc-kr";
  name="r3000z.asl"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="r3000z.asl"

/*
  RSD PTR: OEM=PTLTD, ACPI_Rev=1.0x (0)
	RSDT=0x1ff7a87e, cksum=253
 */
/*
  RSDT: Length=52, Revision=1, Checksum=122,
	OEMID=PTLTD, OEM Table ID=  RSDT, OEM Revision=0x6040000,
	Creator ID= LTP, Creator Revision=0x0
	Entries={ 0x1ff7ee13, 0x1ff7ee87, 0x1ff7eee1, 0x1ff7ef09 }
 */
/*
  FACP: Length=116, Revision=1, Checksum=128,
	OEMID=NVIDIA, OEM Table ID=CK8, OEM Revision=0x6040000,
	Creator ID=PTL_, Creator Revision=0xf4240
 	FACS=0x1ff7ffc0, DSDT=0x1ff7a8b2
	INT_MODEL=PIC
	Preferred_PM_Profile=Unspecified (0)
	SCI_INT=9
	SMI_CMD=0x842e, ACPI_ENABLE=0xf0, ACPI_DISABLE=0xf1, S4BIOS_REQ=0x0
	PSTATE_CNT=0x0
	PM1a_EVT_BLK=0x8000-0x8003
	PM1a_CNT_BLK=0x8004-0x8005
	PM2_CNT_BLK=0x801c-0x801c
	PM_TMR_BLK=0x8008-0x800b
	GPE0_BLK=0x8020-0x8027
	GPE1_BLK=0x84a0-0x84af, GPE1_BASE=32
	P_LVL2_LAT=5 us, P_LVL3_LAT=65535 us
	FLUSH_SIZE=0, FLUSH_STRIDE=0
	DUTY_OFFSET=1, DUTY_WIDTH=0
	DAY_ALRM=125, MON_ALRM=126, CENTURY=50
	IAPC_BOOT_ARCH=
	Flags={WBINVD,PROC_C1,SLP_BUTTON,RTC_S4}
 */
/*
  FACS:	Length=64, HwSig=0x00000000, Firm_Wake_Vec=0x00000000
	Global_Lock=
	Flags=
	Version=0
 */
/*
  DSDT: Length=17761, Revision=1, Checksum=51,
	OEMID=NVIDIA, OEM Table ID=CK8, OEM Revision=0x6040000,
	Creator ID=MSFT, Creator Revision=0x100000e
 */
/*
  APIC: Length=90, Revision=1, Checksum=52,
	OEMID=NVIDIA, OEM Table ID=NV_APIC_, OEM Revision=0x6040000,
	Creator ID= LTP, Creator Revision=0x0
	Local APIC ADDR=0xfee00000
	Flags={PC-AT}

	Type=Local APIC
	ACPI CPU=0
	Flags={ENABLED}
	APIC ID=0

	Type=IO APIC
	APIC ID=2
	INT BASE=0
	ADDR=0x00000000fec00000

	Type=INT Override
	BUS=0
	IRQ=9
	INTR=9
	Flags={Polarity=active-lo, Trigger=level}

	Type=INT Override
	BUS=0
	IRQ=0
	INTR=2
	Flags={Polarity=conforming, Trigger=conforming}

	Type=Local NMI
	ACPI CPU=0
	LINT Pin=1
	Flags={Polarity=active-hi, Trigger=edge}
 */
/*
  BOOT: Length=40, Revision=1, Checksum=164,
	OEMID=PTLTD, OEM Table ID=$SBFTBL$, OEM Revision=0x6040000,
	Creator ID= LTP, Creator Revision=0x1
 */
/*
  SSDT: Length=247, Revision=1, Checksum=150,
	OEMID=PTLTD, OEM Table ID=POWERNOW, OEM Revision=0x6040000,
	Creator ID= LTP, Creator Revision=0x1
 */
/*
 * Intel ACPI Component Architecture
 * AML Disassembler version 20040514
 *
 * Disassembly of /tmp/acpidump.FUUkjw, Mon Jul  5 02:12:03 2004
 */
DefinitionBlock ("DSDT.aml", "DSDT", 1, "NVIDIA", "CK8", 100925440)
{
    OperationRegion (MNVS, SystemMemory, 0x1FF7FFAC, 0x10)
    Field (MNVS, AnyAcc, Lock, Preserve)
    {
        OSYS,   16, 
        CMAP,   8, 
        CMBP,   8, 
        FDCP,   8, 
        LPTP,   8, 
        BTEN,   8, 
        THRT,   8
    }

    Name (\_S0, Package (0x04)
    {
        0x00, 
        0x00, 
        0x00, 
        0x00
    })
    Name (\_S3, Package (0x04)
    {
        0x05, 
        0x05, 
        0x00, 
        0x00
    })
    Name (\_S4, Package (0x04)
    {
        0x06, 
        0x06, 
        0x00, 
        0x00
    })
    Name (\_S5, Package (0x04)
    {
        0x07, 
        0x07, 
        0x00, 
        0x00
    })
    Name (SX, 0x00)
    Name (OSSD, 0x00)
    Method (\_PTS, 1, NotSerialized)
    {
        Store (0x00, \_SB.PCI0.LPC0.EC0.THEN)
        Store (Arg0, DBUG)
        If (LGreater (Arg0, 0x02))
        {
            \_SB.PCI0.LPC0.PHSS (0x80)
        }

        If (LEqual (Arg0, 0x04))
        {
            If (\_SB.PCI0.LPC0.EC0.ECOK)
            {
                Store (0x01, \_SB.PCI0.LPC0.EC0.S4S)
            }
        }
    }

    Method (\_WAK, 1, NotSerialized)
    {
        Store (Arg0, DBUG)
        If (LEqual (Arg0, 0x04))
        {
            Notify (\_SB.PWRB, 0x02)
        }

        Return (Package (0x02)
        {
            0x00, 
            0x00
        })
    }

    Scope (\_PR)
    {
        Processor (CPU0, 0x00, 0x00008010, 0x06) {}
    }

    Name (ECDY, 0x00)
    Scope (_GPE)
    {
        Method (_L05, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB2, 0x02)
        }

        Method (_L07, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.MODM, 0x02)
        }

        Method (_L0C, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB1, 0x02)
        }

        Method (_L0D, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB0, 0x02)
        }

        Method (_L22, 0, NotSerialized)
        {
            Store (0x01, \_SB.PCI0.LPC0.LPOR)
            XOr (\_SB.PCI0.LPC0.INVT, 0x01, \_SB.PCI0.LPC0.INVT)
            Notify (\_SB.LID, 0x80)
        }
    }

    Scope (\_SB)
    {
        Device (WMID)
        {
            Name (_HID, "PNP0C14")
            Name (_UID, 0x00)
            Name (WDG, Buffer (0x14)
            {
                0xD4, 0x2B, 0x99, 0xD0, 0x7C, 0xA4, 0xFE, 0x4E, 
                0xB0, 0x72, 0x32, 0x4A, 0xEC, 0x92, 0x29, 0x6C, 
                0x42, 0x43, 0x01, 0x00
            })
            Method (WQBC, 1, NotSerialized)
            {
                Store ("=====QUERY_WQBC=====", Debug)
                \_SB.PCI0.LPC0.PHSS (0x0C)
                Store (\_SB.PCI0.LPC0.INF, Local0)
                Return (Local0)
            }

            Method (WSBC, 2, NotSerialized)
            {
                Store ("=====QUERY_WSBC=====", Debug)
                Store (DerefOf (Index (Arg1, 0x00)), Local0)
                If (LEqual (Local0, 0x01))
                {
                    \_SB.PCI0.AGP0.VGA.STBL (0x01)
                }

                If (LEqual (Local0, 0x02))
                {
                    \_SB.PCI0.AGP0.VGA.STBL (0x02)
                }

                If (LEqual (Local0, 0x03))
                {
                    \_SB.PCI0.AGP0.VGA.STBL (0x03)
                }

                If (LEqual (Local0, 0x04))
                {
                    \_SB.PCI0.AGP0.VGA.STBL (0x04)
                }

                If (LEqual (Local0, 0x05))
                {
                    \_SB.PCI0.AGP0.VGA.STBL (0x05)
                }

                If (LEqual (Local0, 0x06))
                {
                    \_SB.PCI0.AGP0.VGA.STBL (0x06)
                }
            }
        }

        Scope (\_SB)
        {
            Name (OSTB, Ones)
            OperationRegion (OSTY, SystemMemory, 0x1FF7FF3C, 0x00000001)
            Field (OSTY, AnyAcc, NoLock, Preserve)
            {
                TPOS,   8
            }

            Method (OSTP, 0, NotSerialized)
            {
                If (LEqual (^OSTB, Ones))
                {
                    If (CondRefOf (\_OSI, Local0))
                    {
                        If (\_OSI ("Windows 2001.1"))
                        {
                            Store (0x20, ^OSTB)
                            Store (0x20, ^TPOS)
                        }
                        Else
                        {
                            If (\_OSI ("Windows 2001 SP1"))
                            {
                                Store (0x10, ^OSTB)
                                Store (0x10, ^TPOS)
                            }
                            Else
                            {
                                If (\_OSI ("Windows 2001"))
                                {
                                    Store (0x08, ^OSTB)
                                    Store (0x08, ^TPOS)
                                }
                                Else
                                {
                                    Store (0x00, ^OSTB)
                                    Store (0x00, ^TPOS)
                                }
                            }
                        }
                    }
                    Else
                    {
                        If (CondRefOf (\_OS, Local0))
                        {
                            If (^SEQL (\_OS, "Microsoft Windows"))
                            {
                                Store (0x01, ^OSTB)
                                Store (0x01, ^TPOS)
                            }
                            Else
                            {
                                If (^SEQL (\_OS, "Microsoft WindowsME: Millennium Edition"))
                                {
                                    Store (0x02, ^OSTB)
                                    Store (0x02, ^TPOS)
                                }
                                Else
                                {
                                    If (^SEQL (\_OS, "Microsoft Windows NT"))
                                    {
                                        Store (0x04, ^OSTB)
                                        Store (0x04, ^TPOS)
                                    }
                                    Else
                                    {
                                        Store (0x00, ^OSTB)
                                        Store (0x00, ^TPOS)
                                    }
                                }
                            }
                        }
                        Else
                        {
                            Store (0x00, ^OSTB)
                            Store (0x00, ^TPOS)
                        }
                    }
                }

                Return (^OSTB)
            }

            Method (SEQL, 2, Serialized)
            {
                Store (SizeOf (Arg0), Local0)
                Store (SizeOf (Arg1), Local1)
                If (LNot (LEqual (Local0, Local1)))
                {
                    Return (Zero)
                }

                Name (BUF0, Buffer (Local0) {})
                Store (Arg0, BUF0)
                Name (BUF1, Buffer (Local0) {})
                Store (Arg1, BUF1)
                Store (Zero, Local2)
                While (LLess (Local2, Local0))
                {
                    Store (DerefOf (Index (BUF0, Local2)), Local3)
                    Store (DerefOf (Index (BUF1, Local2)), Local4)
                    If (LNot (LEqual (Local3, Local4)))
                    {
                        Return (Zero)
                    }

                    Increment (Local2)
                }

                Return (One)
            }
        }

        Device (PWRB)
        {
            Name (_HID, EisaId ("PNP0C0C"))
            Method (_STA, 0, NotSerialized)
            {
                Return (0x0B)
            }
        }

        Device (LID)
        {
            Name (_HID, EisaId ("PNP0C0D"))
            Method (_LID, 0, NotSerialized)
            {
                If (\_SB.PCI0.LPC0.EC0.ECOK)
                {
                    If (\_SB.PCI0.LPC0.EC0.LIDA)
                    {
                        Return (0x00)
                    }
                    Else
                    {
                        Return (0x01)
                    }
                }
                Else
                {
                    Return (0x01)
                }
            }
        }

        Device (PCI0)
        {
            Name (_ADR, 0x00)
            Name (_HID, EisaId ("PNP0A03"))
            Name (_UID, 0x01)
            Name (_BBN, 0x00)
            Method (_INI, 0, NotSerialized)
            {
            }

            Scope (\_SB)
            {
                OperationRegion (ASLD, SystemMemory, 0x1FF7FDAC, 0x00000100)
                Field (ASLD, AnyAcc, NoLock, Preserve)
                {
                    TOM,    32
                }
            }

            Method (_CRS, 0, NotSerialized)
            {
                Name (CBUF, ResourceTemplate ()
                {
                    WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
                        0x0000,
                        0x0000,
                        0x00FF,
                        0x0000,
                        0x0100)
                    IO (Decode16, 0x0CF8, 0x0CF8, 0x01, 0x08)
                    WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
                        0x0000,
                        0x0000,
                        0x0CF7,
                        0x0000,
                        0x0CF8)
                    WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
                        0x0000,
                        0x0D00,
                        0xFFFF,
                        0x0000,
                        0xF300)
                    DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                        0x00000000,
                        0x000A0000,
                        0x000BFFFF,
                        0x00000000,
                        0x00020000)
                    DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                        0x00000000,
                        0x000C0000,
                        0x000DFFFF,
                        0x00000000,
                        0x00020000)
                    DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                        0x00000000,
                        0x00100000,
                        0xFEBFFFFF,
                        0x00000000,
                        0xFFF00000)
                })
                CreateDWordField (CBUF, 0x76, PMMN)
                CreateDWordField (CBUF, 0x82, PMLN)
                Multiply (\_SB.TOM, 0x00100000, PMMN)
                Subtract (0xFEC00000, PMMN, PMLN)
                Return (CBUF)
            }

            Name (_PRT, Package (0x08)
            {
                Package (0x04)
                {
                    0x0001FFFF, 
                    0x00, 
                    \_SB.PCI0.LSMB, 
                    0x00
                }, 

                Package (0x04)
                {
                    0x0002FFFF, 
                    0x00, 
                    \_SB.PCI0.LUS0, 
                    0x00
                }, 

                Package (0x04)
                {
                    0x0002FFFF, 
                    0x01, 
                    \_SB.PCI0.LUS1, 
                    0x00
                }, 

                Package (0x04)
                {
                    0x0002FFFF, 
                    0x02, 
                    \_SB.PCI0.LUS2, 
                    0x00
                }, 

                Package (0x04)
                {
                    0x0006FFFF, 
                    0x00, 
                    \_SB.PCI0.LACI, 
                    0x00
                }, 

                Package (0x04)
                {
                    0x0006FFFF, 
                    0x01, 
                    \_SB.PCI0.LMCI, 
                    0x00
                }, 

                Package (0x04)
                {
                    0x0008FFFF, 
                    0x00, 
                    \_SB.PCI0.LPID, 
                    0x00
                }, 

                Package (0x04)
                {
                    0x0009FFFF, 
                    0x00, 
                    \_SB.PCI0.LTID, 
                    0x00
                }
            })
            Device (USB0)
            {
                Name (_ADR, 0x00020000)
                Method (_S1D, 0, NotSerialized)
                {
                    Return (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }

                Name (_PRW, Package (0x02)
                {
                    0x0D, 
                    0x03
                })
            }

            Device (USB1)
            {
                Name (_ADR, 0x00020001)
                Method (_S1D, 0, NotSerialized)
                {
                    Return (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }

                Name (_PRW, Package (0x02)
                {
                    0x0C, 
                    0x03
                })
            }

            Device (USB2)
            {
                Name (_ADR, 0x00020002)
                Name (_PRW, Package (0x02)
                {
                    0x05, 
                    0x03
                })
            }

            Device (IDE0)
            {
                Name (SID4, 0x00)
                Name (SID5, 0x00)
                Name (SFLG, 0x00)
                Name (SID0, 0x00)
                Name (SID1, 0x00)
                Name (SID2, 0x00)
                Name (SID3, 0x00)
                Name (_ADR, 0x00080000)
                OperationRegion (A090, PCI_Config, 0x50, 0x18)
                Field (A090, DWordAcc, NoLock, Preserve)
                {
                    ID20,   16, 
                    Offset (0x08), 
                    IDTS,   16, 
                    IDTP,   16, 
                    ID22,   32, 
                    UMSS,   16, 
                    UMSP,   16
                }

                Name (IDEP, Buffer (0x14) {})
                Name (IDES, Buffer (0x14) {})
                Method (GTM, 1, NotSerialized)
                {
                    If (LEqual (Arg0, 0x00))
                    {
                        Store (IDTP, Local0)
                        Store (UMSP, Local1)
                        Store (IDEP, Local2)
                    }
                    Else
                    {
                        Store (IDTS, Local0)
                        Store (UMSS, Local1)
                        Store (IDES, Local2)
                    }

                    CreateDWordField (Local2, 0x00, PIO0)
                    CreateDWordField (Local2, 0x04, DMA0)
                    CreateDWordField (Local2, 0x08, PIO1)
                    CreateDWordField (Local2, 0x0C, DMA1)
                    CreateDWordField (Local2, 0x10, FLAG)
                    Store (0x10, FLAG)
                    And (Local0, 0x0F00, Local3)
                    And (Local0, 0xF000, Local4)
                    ShiftRight (Local3, 0x08, Local3)
                    ShiftRight (Local4, 0x0C, Local4)
                    Add (Local3, Local4, Local3)
                    Multiply (Add (Local3, 0x02), 0x1E, PIO0)
                    If (LNot (LGreater (PIO0, 0xB4)))
                    {
                        Or (FLAG, 0x02, FLAG)
                    }

                    If (And (Local1, 0x4000))
                    {
                        Or (FLAG, 0x01, FLAG)
                        And (Local1, 0x0700, Local3)
                        ShiftRight (Local3, 0x08, Local3)
                        Store (U2T (Local3), DMA0)
                    }
                    Else
                    {
                        Store (PIO0, DMA0)
                    }

                    And (Local0, 0x0F, Local3)
                    And (Local0, 0xF0, Local4)
                    ShiftRight (Local4, 0x04, Local4)
                    Add (Local3, Local4, Local3)
                    Multiply (Add (Local3, 0x02), 0x1E, PIO1)
                    If (LNot (LGreater (PIO1, 0xB4)))
                    {
                        Or (FLAG, 0x08, FLAG)
                    }

                    If (And (Local1, 0x40))
                    {
                        Or (FLAG, 0x04, FLAG)
                        And (Local1, 0x07, Local3)
                        Store (U2T (Local3), DMA1)
                    }
                    Else
                    {
                        Store (PIO1, DMA1)
                    }

                    If (LEqual (Arg0, 0x00))
                    {
                        Store (Local2, IDEP)
                        Return (IDEP)
                    }
                    Else
                    {
                        Store (Local2, IDES)
                        Return (IDES)
                    }
                }

                Method (U2T, 1, NotSerialized)
                {
                    If (LEqual (Arg0, 0x00))
                    {
                        Return (0x3C)
                    }

                    If (LEqual (Arg0, 0x01))
                    {
                        Return (0x5A)
                    }

                    If (LEqual (Arg0, 0x02))
                    {
                        Return (0x78)
                    }

                    If (LEqual (Arg0, 0x03))
                    {
                        Return (0x96)
                    }

                    If (LEqual (Arg0, 0x04))
                    {
                        Return (0x2D)
                    }

                    If (LEqual (Arg0, 0x05))
                    {
                        Return (0x1E)
                    }

                    If (LEqual (Arg0, 0x06))
                    {
                        Return (0x14)
                    }

                    Return (0x0F)
                }

                Method (T2U, 1, NotSerialized)
                {
                    If (LGreater (Arg0, 0x78))
                    {
                        Return (0x03)
                    }

                    If (LGreater (Arg0, 0x5A))
                    {
                        Return (0x02)
                    }

                    If (LGreater (Arg0, 0x3C))
                    {
                        Return (0x01)
                    }

                    If (LGreater (Arg0, 0x2D))
                    {
                        Return (0x00)
                    }

                    If (LGreater (Arg0, 0x1E))
                    {
                        Return (0x04)
                    }

                    If (LGreater (Arg0, 0x14))
                    {
                        Return (0x05)
                    }

                    If (LGreater (Arg0, 0x0F))
                    {
                        Return (0x06)
                    }

                    Return (0x07)
                }

                Method (T2D, 1, NotSerialized)
                {
                    If (LGreater (Arg0, 0x01E0))
                    {
                        Return (0xA8)
                    }

                    If (LGreater (Arg0, 0x0186))
                    {
                        Return (0x77)
                    }

                    If (LGreater (Arg0, 0xF0))
                    {
                        Return (0x47)
                    }

                    If (LGreater (Arg0, 0xB4))
                    {
                        Return (0x33)
                    }

                    If (LGreater (Arg0, 0x96))
                    {
                        Return (0x22)
                    }

                    If (LGreater (Arg0, 0x78))
                    {
                        Return (0x21)
                    }

                    Return (0x20)
                }

                Method (STM, 4, NotSerialized)
                {
                    If (SX)
                    {
                        Store (SID0, ID20)
                        Store (SID1, IDTS)
                        Store (SID2, IDTP)
                        Store (SID3, ID22)
                        Store (SID4, UMSS)
                        Store (SID5, UMSP)
                    }
                    Else
                    {
                        Store (ID20, SID0)
                        Store (IDTS, SID1)
                        Store (IDTP, SID2)
                        Store (ID22, SID3)
                        Store (UMSS, SID4)
                        Store (UMSP, SID5)
                    }

                    Store (0x00, SX)
                    CreateDWordField (Arg0, 0x00, PIO0)
                    CreateDWordField (Arg0, 0x04, DMA0)
                    CreateDWordField (Arg0, 0x08, PIO1)
                    CreateDWordField (Arg0, 0x0C, DMA1)
                    CreateDWordField (Arg0, 0x10, FLAG)
                    If (LEqual (Arg3, 0x00))
                    {
                        Store (SID2, Local0)
                        Store (SID5, Local1)
                    }
                    Else
                    {
                        Store (SID1, Local0)
                        Store (SID4, Local1)
                    }

                    If (LNot (LEqual (PIO0, 0xFFFFFFFF)))
                    {
                        And (Local0, 0xFF, Local0)
                        ShiftLeft (T2D (PIO0), 0x08, Local2)
                        Or (Local0, Local2, Local0)
                    }

                    If (LNot (LEqual (PIO1, 0xFFFFFFFF)))
                    {
                        And (Local0, 0xFF00, Local0)
                        Or (Local0, T2D (PIO1), Local0)
                    }

                    If (And (FLAG, 0x01))
                    {
                        And (Local1, 0xFF, Local1)
                        ShiftLeft (T2U (DMA0), 0x08, Local2)
                        Or (0xC000, Local2, Local2)
                        Or (Local2, Local1, Local1)
                    }
                    Else
                    {
                        If (LNot (LEqual (DMA0, 0xFFFFFFFF)))
                        {
                            And (Local0, 0xFF, Local0)
                            ShiftLeft (T2D (DMA0), 0x08, Local2)
                            Or (Local0, Local2, Local0)
                        }
                    }

                    If (And (FLAG, 0x04))
                    {
                        And (Local1, 0xFF00, Local1)
                        Or (0xC0, T2U (DMA1), Local2)
                        Or (Local2, Local1, Local1)
                    }
                    Else
                    {
                        If (LNot (LEqual (DMA1, 0xFFFFFFFF)))
                        {
                            And (Local0, 0xFF00, Local0)
                            Or (Local0, T2D (DMA1), Local0)
                        }
                    }

                    If (LEqual (Arg3, 0x00))
                    {
                        Store (Local0, IDTP)
                        Store (Local1, UMSP)
                    }
                    Else
                    {
                        Store (Local0, IDTS)
                        Store (Local1, UMSS)
                    }
                }

                Method (GTF, 2, NotSerialized)
                {
                    Store (Buffer (0x07)
                        {
                            0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
                        }, Local0)
                    CreateByteField (Local0, 0x01, MODE)
                    CreateByteField (Local0, 0x05, DRIV)
                    Store (Arg1, DRIV)
                    If (LEqual (Arg0, 0x00))
                    {
                        Store (IDEP, Local1)
                    }
                    Else
                    {
                        Store (IDES, Local1)
                    }

                    CreateDWordField (Local1, 0x00, PIO0)
                    CreateDWordField (Local1, 0x04, DMA0)
                    CreateDWordField (Local1, 0x08, PIO1)
                    CreateDWordField (Local1, 0x0C, DMA1)
                    CreateDWordField (Local1, 0x10, FLGX)
                    If (LEqual (Arg1, 0xA0))
                    {
                        Store (PIO0, Local2)
                        Store (DMA0, Local3)
                        And (FLGX, 0x01, FLGX)
                    }
                    Else
                    {
                        Store (PIO1, Local2)
                        Store (DMA1, Local3)
                        And (FLGX, 0x04, FLGX)
                    }

                    Store (FLGX, Local1)
                    If (LGreater (Local2, 0x0186))
                    {
                        Store (0x00, Local2)
                    }
                    Else
                    {
                        If (LGreater (Local2, 0xF0))
                        {
                            Store (0x01, Local2)
                        }
                        Else
                        {
                            If (LGreater (Local2, 0xB4))
                            {
                                Store (0x02, Local2)
                            }
                            Else
                            {
                                If (LGreater (Local2, 0x78))
                                {
                                    Store (0x03, Local2)
                                }
                                Else
                                {
                                    Store (0x04, Local2)
                                }
                            }
                        }
                    }

                    Or (0x08, Local2, MODE)
                    Store (Local0, Local2)
                    If (FLGX)
                    {
                        If (LGreater (Local3, 0x5A))
                        {
                            Store (0x00, Local3)
                        }
                        Else
                        {
                            If (LGreater (Local3, 0x3C))
                            {
                                Store (0x01, Local3)
                            }
                            Else
                            {
                                If (LGreater (Local3, 0x2D))
                                {
                                    Store (0x02, Local3)
                                }
                                Else
                                {
                                    If (LGreater (Local3, 0x1E))
                                    {
                                        Store (0x03, Local3)
                                    }
                                    Else
                                    {
                                        If (LGreater (Local3, 0x14))
                                        {
                                            Store (0x04, Local3)
                                        }
                                        Else
                                        {
                                            If (LGreater (Local3, 0x0F))
                                            {
                                                Store (0x05, Local3)
                                            }
                                            Else
                                            {
                                                Store (0x06, Local3)
                                            }
                                        }
                                    }
                                }
                            }
                        }

                        Or (0x40, Local3, MODE)
                    }
                    Else
                    {
                        If (LEqual (Local3, 0xFFFFFFFF))
                        {
                            Return (Local0)
                        }
                        Else
                        {
                            If (LGreater (Local3, 0x96))
                            {
                                Store (0x00, Local3)
                            }
                            Else
                            {
                                If (LGreater (Local3, 0x78))
                                {
                                    Store (0x01, Local3)
                                }
                                Else
                                {
                                    Store (0x02, Local3)
                                }
                            }

                            Or (0x20, Local3, MODE)
                        }
                    }

                    Concatenate (Local0, Local2, Local1)
                    Return (Local1)
                }

                Device (PRI0)
                {
                    Name (_ADR, 0x00)
                    Method (_GTM, 0, NotSerialized)
                    {
                        Return (GTM (0x00))
                    }

                    Method (_STM, 3, NotSerialized)
                    {
                        STM (Arg0, Arg1, Arg2, 0x00)
                    }

                    Device (MAST)
                    {
                        Name (_ADR, 0x00)
                        Method (_GTF, 0, NotSerialized)
                        {
                            Return (GTF (0x00, 0xA0))
                        }
                    }

                    Device (SLAV)
                    {
                        Name (_ADR, 0x01)
                        Method (_GTF, 0, NotSerialized)
                        {
                            Return (GTF (0x00, 0xB0))
                        }
                    }
                }

                Device (SEC0)
                {
                    Name (_ADR, 0x01)
                    Method (_GTM, 0, NotSerialized)
                    {
                        Return (GTM (0x01))
                    }

                    Method (_STM, 3, NotSerialized)
                    {
                        STM (Arg0, Arg1, Arg2, 0x01)
                    }

                    Device (MAST)
                    {
                        Name (_ADR, 0x00)
                        Method (_GTF, 0, NotSerialized)
                        {
                            Return (GTF (0x01, 0xA0))
                        }
                    }

                    Device (SLAV)
                    {
                        Name (_ADR, 0x01)
                        Method (_GTF, 0, NotSerialized)
                        {
                            Return (GTF (0x01, 0xB0))
                        }
                    }
                }
            }

            Device (SIDE)
            {
                Name (TID0, 0x00)
                Name (TID1, 0x00)
                Name (TID2, 0x00)
                Name (TID3, 0x00)
                Name (TID4, 0x00)
                Name (TID5, 0x00)
                Name (TFLG, 0x00)
                Name (_ADR, 0x00090000)
                OperationRegion (ATID, PCI_Config, 0x50, 0x18)
                Field (ATID, DWordAcc, NoLock, Preserve)
                {
                    ID20,   16, 
                    Offset (0x08), 
                    IDTS,   16, 
                    IDTP,   16, 
                    ID22,   32, 
                    UMSS,   16, 
                    UMSP,   16
                }

                Name (IDEP, Buffer (0x14) {})
                Name (IDES, Buffer (0x14) {})
                Method (GTM, 1, NotSerialized)
                {
                    If (LEqual (Arg0, 0x00))
                    {
                        Store (IDTP, Local0)
                        Store (UMSP, Local1)
                        Store (IDEP, Local2)
                    }
                    Else
                    {
                        Store (IDTS, Local0)
                        Store (UMSS, Local1)
                        Store (IDES, Local2)
                    }

                    CreateDWordField (Local2, 0x00, PIO0)
                    CreateDWordField (Local2, 0x04, DMA0)
                    CreateDWordField (Local2, 0x08, PIO1)
                    CreateDWordField (Local2, 0x0C, DMA1)
                    CreateDWordField (Local2, 0x10, FLAG)
                    Store (0x10, FLAG)
                    And (Local0, 0x0F00, Local3)
                    And (Local0, 0xF000, Local4)
                    ShiftRight (Local3, 0x08, Local3)
                    ShiftRight (Local4, 0x0C, Local4)
                    Add (Local3, Local4, Local3)
                    Multiply (Add (Local3, 0x02), 0x1E, PIO0)
                    If (LNot (LGreater (PIO0, 0xB4)))
                    {
                        Or (FLAG, 0x02, FLAG)
                    }

                    If (And (Local1, 0x4000))
                    {
                        Or (FLAG, 0x01, FLAG)
                        And (Local1, 0x0700, Local3)
                        ShiftRight (Local3, 0x08, Local3)
                        Store (U2T (Local3), DMA0)
                    }
                    Else
                    {
                        Store (PIO0, DMA0)
                    }

                    And (Local0, 0x0F, Local3)
                    And (Local0, 0xF0, Local4)
                    ShiftRight (Local4, 0x04, Local4)
                    Add (Local3, Local4, Local3)
                    Multiply (Add (Local3, 0x02), 0x1E, PIO1)
                    If (LNot (LGreater (PIO1, 0xB4)))
                    {
                        Or (FLAG, 0x08, FLAG)
                    }

                    If (And (Local1, 0x40))
                    {
                        Or (FLAG, 0x04, FLAG)
                        And (Local1, 0x07, Local3)
                        Store (U2T (Local3), DMA1)
                    }
                    Else
                    {
                        Store (PIO1, DMA1)
                    }

                    If (LEqual (Arg0, 0x00))
                    {
                        Store (Local2, IDEP)
                        Return (IDEP)
                    }
                    Else
                    {
                        Store (Local2, IDES)
                        Return (IDES)
                    }
                }

                Method (STM, 4, NotSerialized)
                {
                    If (SX)
                    {
                        Store (TID0, ID20)
                        Store (TID1, IDTS)
                        Store (TID2, IDTP)
                        Store (TID3, ID22)
                        Store (TID4, UMSS)
                        Store (TID5, UMSP)
                    }
                    Else
                    {
                        Store (ID20, TID0)
                        Store (IDTS, TID1)
                        Store (IDTP, TID2)
                        Store (ID22, TID3)
                        Store (UMSS, TID4)
                        Store (UMSP, TID5)
                    }

                    Store (0x00, SX)
                    CreateDWordField (Arg0, 0x00, PIO0)
                    CreateDWordField (Arg0, 0x04, DMA0)
                    CreateDWordField (Arg0, 0x08, PIO1)
                    CreateDWordField (Arg0, 0x0C, DMA1)
                    CreateDWordField (Arg0, 0x10, FLAG)
                    If (LEqual (Arg3, 0x00))
                    {
                        Store (TID2, Local0)
                        Store (TID5, Local1)
                    }
                    Else
                    {
                        Store (TID1, Local0)
                        Store (TID4, Local1)
                    }

                    If (LNot (LEqual (PIO0, 0xFFFFFFFF)))
                    {
                        And (Local0, 0xFF, Local0)
                        ShiftLeft (T2D (PIO0), 0x08, Local2)
                        Or (Local0, Local2, Local0)
                    }

                    If (LNot (LEqual (PIO1, 0xFFFFFFFF)))
                    {
                        And (Local0, 0xFF00, Local0)
                        Or (Local0, T2D (PIO1), Local0)
                    }

                    If (And (FLAG, 0x01))
                    {
                        And (Local1, 0xFF, Local1)
                        ShiftLeft (T2U (DMA0), 0x08, Local2)
                        Or (0xC000, Local2, Local2)
                        Or (Local2, Local1, Local1)
                    }
                    Else
                    {
                        If (LNot (LEqual (DMA0, 0xFFFFFFFF)))
                        {
                            And (Local0, 0xFF, Local0)
                            ShiftLeft (T2D (DMA0), 0x08, Local2)
                            Or (Local0, Local2, Local0)
                        }
                    }

                    If (And (FLAG, 0x04))
                    {
                        And (Local1, 0xFF00, Local1)
                        Or (0xC0, T2U (DMA1), Local2)
                        Or (Local2, Local1, Local1)
                    }
                    Else
                    {
                        If (LNot (LEqual (DMA1, 0xFFFFFFFF)))
                        {
                            And (Local0, 0xFF00, Local0)
                            Or (Local0, T2D (DMA1), Local0)
                        }
                    }

                    If (LEqual (Arg3, 0x00))
                    {
                        Store (Local0, IDTP)
                        Store (Local1, UMSP)
                    }
                    Else
                    {
                        Store (Local0, IDTS)
                        Store (Local1, UMSS)
                    }
                }

                Method (GTF, 2, NotSerialized)
                {
                    Store (Buffer (0x07)
                        {
                            0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
                        }, Local0)
                    CreateByteField (Local0, 0x01, MODE)
                    CreateByteField (Local0, 0x05, DRIV)
                    Store (Arg1, DRIV)
                    If (LEqual (Arg0, 0x00))
                    {
                        Store (IDEP, Local1)
                    }
                    Else
                    {
                        Store (IDES, Local1)
                    }

                    CreateDWordField (Local1, 0x00, PIO0)
                    CreateDWordField (Local1, 0x04, DMA0)
                    CreateDWordField (Local1, 0x08, PIO1)
                    CreateDWordField (Local1, 0x0C, DMA1)
                    CreateDWordField (Local1, 0x10, FLGX)
                    If (LEqual (Arg1, 0xA0))
                    {
                        Store (PIO0, Local2)
                        Store (DMA0, Local3)
                        And (FLGX, 0x01, FLGX)
                    }
                    Else
                    {
                        Store (PIO1, Local2)
                        Store (DMA1, Local3)
                        And (FLGX, 0x04, FLGX)
                    }

                    Store (FLGX, Local1)
                    If (LGreater (Local2, 0x0186))
                    {
                        Store (0x00, Local2)
                    }
                    Else
                    {
                        If (LGreater (Local2, 0xF0))
                        {
                            Store (0x01, Local2)
                        }
                        Else
                        {
                            If (LGreater (Local2, 0xB4))
                            {
                                Store (0x02, Local2)
                            }
                            Else
                            {
                                If (LGreater (Local2, 0x78))
                                {
                                    Store (0x03, Local2)
                                }
                                Else
                                {
                                    Store (0x04, Local2)
                                }
                            }
                        }
                    }

                    Or (0x08, Local2, MODE)
                    Store (Local0, Local2)
                    If (FLGX)
                    {
                        If (LGreater (Local3, 0x5A))
                        {
                            Store (0x00, Local3)
                        }
                        Else
                        {
                            If (LGreater (Local3, 0x3C))
                            {
                                Store (0x01, Local3)
                            }
                            Else
                            {
                                If (LGreater (Local3, 0x2D))
                                {
                                    Store (0x02, Local3)
                                }
                                Else
                                {
                                    If (LGreater (Local3, 0x1E))
                                    {
                                        Store (0x03, Local3)
                                    }
                                    Else
                                    {
                                        If (LGreater (Local3, 0x14))
                                        {
                                            Store (0x04, Local3)
                                        }
                                        Else
                                        {
                                            If (LGreater (Local3, 0x0F))
                                            {
                                                Store (0x05, Local3)
                                            }
                                            Else
                                            {
                                                Store (0x06, Local3)
                                            }
                                        }
                                    }
                                }
                            }
                        }

                        Or (0x40, Local3, MODE)
                    }
                    Else
                    {
                        If (LEqual (Local3, 0xFFFFFFFF))
                        {
                            Return (Local0)
                        }
                        Else
                        {
                            If (LGreater (Local3, 0x96))
                            {
                                Store (0x00, Local3)
                            }
                            Else
                            {
                                If (LGreater (Local3, 0x78))
                                {
                                    Store (0x01, Local3)
                                }
                                Else
                                {
                                    Store (0x02, Local3)
                                }
                            }

                            Or (0x20, Local3, MODE)
                        }
                    }

                    Concatenate (Local0, Local2, Local1)
                    Return (Local1)
                }

                Method (U2T, 1, NotSerialized)
                {
                    If (LEqual (Arg0, 0x00))
                    {
                        Return (0x3C)
                    }

                    If (LEqual (Arg0, 0x01))
                    {
                        Return (0x5A)
                    }

                    If (LEqual (Arg0, 0x02))
                    {
                        Return (0x78)
                    }

                    If (LEqual (Arg0, 0x03))
                    {
                        Return (0x96)
                    }

                    If (LEqual (Arg0, 0x04))
                    {
                        Return (0x2D)
                    }

                    If (LEqual (Arg0, 0x05))
                    {
                        Return (0x1E)
                    }

                    If (LEqual (Arg0, 0x06))
                    {
                        Return (0x14)
                    }

                    Return (0x0F)
                }

                Method (T2U, 1, NotSerialized)
                {
                    If (LGreater (Arg0, 0x78))
                    {
                        Return (0x03)
                    }

                    If (LGreater (Arg0, 0x5A))
                    {
                        Return (0x02)
                    }

                    If (LGreater (Arg0, 0x3C))
                    {
                        Return (0x01)
                    }

                    If (LGreater (Arg0, 0x2D))
                    {
                        Return (0x00)
                    }

                    If (LGreater (Arg0, 0x1E))
                    {
                        Return (0x04)
                    }

                    If (LGreater (Arg0, 0x14))
                    {
                        Return (0x05)
                    }

                    If (LGreater (Arg0, 0x0F))
                    {
                        Return (0x06)
                    }

                    Return (0x07)
                }

                Method (T2D, 1, NotSerialized)
                {
                    If (LGreater (Arg0, 0x01E0))
                    {
                        Return (0xA8)
                    }

                    If (LGreater (Arg0, 0x0186))
                    {
                        Return (0x77)
                    }

                    If (LGreater (Arg0, 0xF0))
                    {
                        Return (0x47)
                    }

                    If (LGreater (Arg0, 0xB4))
                    {
                        Return (0x33)
                    }

                    If (LGreater (Arg0, 0x96))
                    {
                        Return (0x22)
                    }

                    If (LGreater (Arg0, 0x78))
                    {
                        Return (0x21)
                    }

                    Return (0x20)
                }

                Device (PRI0)
                {
                    Name (_ADR, 0x00)
                    Method (_GTM, 0, NotSerialized)
                    {
                        Return (GTM (0x00))
                    }

                    Method (_STM, 3, NotSerialized)
                    {
                        STM (Arg0, Arg1, Arg2, 0x00)
                    }

                    Device (MAST)
                    {
                        Name (_ADR, 0x00)
                        Method (_GTF, 0, NotSerialized)
                        {
                            Return (GTF (0x00, 0xA0))
                        }
                    }

                    Device (SLAV)
                    {
                        Name (_ADR, 0x01)
                        Method (_GTF, 0, NotSerialized)
                        {
                            Return (GTF (0x00, 0xB0))
                        }
                    }
                }

                Device (SEC0)
                {
                    Name (_ADR, 0x01)
                    Method (_GTM, 0, NotSerialized)
                    {
                        Return (GTM (0x01))
                    }

                    Method (_STM, 3, NotSerialized)
                    {
                        STM (Arg0, Arg1, Arg2, 0x01)
                    }

                    Device (MAST)
                    {
                        Name (_ADR, 0x00)
                        Method (_GTF, 0, NotSerialized)
                        {
                            Return (GTF (0x01, 0xA0))
                        }
                    }

                    Device (SLAV)
                    {
                        Name (_ADR, 0x01)
                        Method (_GTF, 0, NotSerialized)
                        {
                            Return (GTF (0x01, 0xB0))
                        }
                    }
                }
            }

            Device (SMB0)
            {
                Name (_ADR, 0x00010001)
                OperationRegion (SBA0, PCI_Config, 0x50, 0x04)
                Field (SBA0, AnyAcc, NoLock, Preserve)
                {
                    SB50,   16
                }

                OperationRegion (SBA1, PCI_Config, 0x54, 0x04)
                Field (SBA1, AnyAcc, NoLock, Preserve)
                {
                    SB54,   16
                }
            }

            Device (AUD0)
            {
                Name (_ADR, 0x00060000)
            }

            Device (MODM)
            {
                Name (_ADR, 0x00060001)
            }

            Device (LPC0)
            {
                Name (_ADR, 0x00010000)
                OperationRegion (DCTL, PCI_Config, 0xE8, 0x02)
                Field (DCTL, AnyAcc, NoLock, Preserve)
                {
                    Offset (0x01), 
                        ,   4, 
                    DACI,   1
                }

                Device (ACAD)
                {
                    Name (_HID, "ACPI0003")
                    Name (_PCL, Package (0x01)
                    {
                        \_SB
                    })
                    Method (_PSR, 0, NotSerialized)
                    {
                        If (\_SB.PCI0.LPC0.EC0.ECOK)
                        {
                            Return (\_SB.PCI0.LPC0.EC0.ADP)
                        }
                        Else
                        {
                            Return (0x01)
                        }
                    }
                }

                OperationRegion (GP00, SystemIO, 0x8020, 0x04)
                Field (GP00, WordAcc, Lock, Preserve)
                {
                        ,   5, 
                    UB2R,   1, 
                        ,   6, 
                    UB1R,   1, 
                    UB0R,   1
                }

                OperationRegion (GPIO, SystemIO, 0x84A0, 0x30)
                Field (GPIO, WordAcc, Lock, Preserve)
                {
                        ,   2, 
                    LPOL,   1, 
                    Offset (0x22), 
                    INVT,   1, 
                        ,   4, 
                    LIDS,   1, 
                    LPOR,   1, 
                    Offset (0x23), 
                        ,   5, 
                    ACPW,   1
                }

                OperationRegion (P44, PCI_Config, 0x44, 0x04)
                Field (P44, AnyAcc, NoLock, Preserve)
                {
                    MTBA,   32
                }

                OperationRegion (P60, PCI_Config, 0x60, 0x02)
                Field (P60, AnyAcc, NoLock, Preserve)
                {
                    PMBR,   16
                }

                OperationRegion (P64, PCI_Config, 0x64, 0x02)
                Field (P64, AnyAcc, NoLock, Preserve)
                {
                    NVSB,   16
                }

                OperationRegion (P68, PCI_Config, 0x68, 0x02)
                Field (P68, AnyAcc, NoLock, Preserve)
                {
                    ANLG,   16
                }

                Device (PMIO)
                {
                    Name (_HID, EisaId ("PNP0C02"))
                    Name (_UID, 0x03)
                    Method (_CRS, 0, NotSerialized)
                    {
                        Name (IODM, ResourceTemplate ()
                        {
                            IO (Decode16, 0x0000, 0x0000, 0x00, 0x00)
                        })
                        Name (IORT, ResourceTemplate ()
                        {
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x80)
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x80)
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x80)
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x80)
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x80)
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x80)
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x40)
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x40)
                        })
                        CreateWordField (IORT, 0x02, I1MN)
                        CreateWordField (IORT, 0x04, I1MX)
                        CreateWordField (IORT, 0x0A, I2MN)
                        CreateWordField (IORT, 0x0C, I2MX)
                        CreateWordField (IORT, 0x12, I3MN)
                        CreateWordField (IORT, 0x14, I3MX)
                        CreateWordField (IORT, 0x1A, I4MN)
                        CreateWordField (IORT, 0x1C, I4MX)
                        CreateWordField (IORT, 0x22, I5MN)
                        CreateWordField (IORT, 0x24, I5MX)
                        CreateWordField (IORT, 0x2A, I6MN)
                        CreateWordField (IORT, 0x2C, I6MX)
                        CreateWordField (IORT, 0x32, I7MN)
                        CreateWordField (IORT, 0x34, I7MX)
                        CreateWordField (IORT, 0x3A, I8MN)
                        CreateWordField (IORT, 0x3C, I8MX)
                        And (PMBR, 0xFFFC, I1MN)
                        Store (I1MN, I1MX)
                        Add (I1MN, 0x80, Local0)
                        Store (Local0, I2MN)
                        Store (Local0, I2MX)
                        And (NVSB, 0xFFFC, I3MN)
                        Store (I3MN, I3MX)
                        Add (I3MN, 0x80, Local0)
                        Store (Local0, I4MN)
                        Store (Local0, I4MX)
                        And (ANLG, 0xFFFC, I5MN)
                        Store (I5MN, I5MX)
                        Add (I5MN, 0x80, Local0)
                        Store (Local0, I6MN)
                        Store (Local0, I6MX)
                        And (\_SB.PCI0.SMB0.SB50, 0xFFFC, I7MN)
                        Store (I7MN, I7MX)
                        And (\_SB.PCI0.SMB0.SB54, 0xFFFC, I8MN)
                        Store (I8MN, I8MX)
                        If (I1MN)
                        {
                            Store (IORT, Local0)
                        }
                        Else
                        {
                            Store (IODM, Local0)
                        }

                        Return (Local0)
                    }
                }

                Device (MEM0)
                {
                    Name (_HID, EisaId ("PNP0C01"))
                    Method (_CRS, 0, Serialized)
                    {
                        Name (MEMR, ResourceTemplate ()
                        {
                            Memory32Fixed (ReadOnly, 0xFFF80000, 0x00080000)
                            Memory32Fixed (ReadWrite, 0xFEC00000, 0x00001000)
                            Memory32Fixed (ReadWrite, 0xFEE00000, 0x00100000)
                            Memory32Fixed (ReadWrite, 0x00000000, 0x00000000)
                        })
                        CreateDWordField (MEMR, 0x28, MBAS)
                        CreateDWordField (MEMR, 0x2C, MBLE)
                        If (\_SB.PCI0.LPC0.MTBA)
                        {
                            Store (\_SB.PCI0.LPC0.MTBA, MBAS)
                            Store (0x1000, MBLE)
                        }

                        Return (MEMR)
                    }
                }

                Method (ECOK, 0, NotSerialized)
                {
                    If (LEqual (\_SB.PCI0.LPC0.EC0.ECOK, 0x01))
                    {
                        Return (0x01)
                    }
                    Else
                    {
                        Return (0x00)
                    }
                }

                Device (EC0)
                {
                    Name (_HID, EisaId ("PNP0C09"))
                    Name (_GPE, 0x21)
                    Name (ECOK, Zero)
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16, 0x0062, 0x0062, 0x01, 0x01)
                        IO (Decode16, 0x0066, 0x0066, 0x01, 0x01)
                    })
                    Method (_REG, 2, NotSerialized)
                    {
                        If (LEqual (Arg0, 0x03))
                        {
                            Store (Arg1, ECOK)
                        }
                    }

                    OperationRegion (ERAM, EmbeddedControl, 0x00, 0xFF)
                    Field (ERAM, ByteAcc, Lock, Preserve)
                    {
                        Offset (0x60), 
                        SMPR,   8, 
                        SMST,   8, 
                        SMAD,   8, 
                        SMCM,   8, 
                        SMD0,   256, 
                        BCNT,   8, 
                        SMAA,   8, 
                        Offset (0x90), 
                        CHGM,   16, 
                        CHGS,   16, 
                        CHGC,   16, 
                        CHGV,   16, 
                        CHGA,   16, 
                        BAL0,   1, 
                        BAL1,   1, 
                        BAL2,   1, 
                        BAL3,   1, 
                        Offset (0x9C), 
                        BEEP,   1, 
                        FAN1,   1, 
                        FAN2,   1, 
                        CRT,    1, 
                        EXFD,   1, 
                        PHDD,   1, 
                        SHDD,   1, 
                        FDD,    1, 
                        SBTN,   1, 
                        VIDO,   1, 
                        VOLD,   1, 
                        VOLU,   1, 
                        MUTE,   1, 
                        CONT,   1, 
                        BRGT,   1, 
                        HBTN,   1, 
                        S4S,    1, 
                        SKEY,   1, 
                        BKEY,   1, 
                            ,   1, 
                        LIDA,   1, 
                            ,   2, 
                        TPAD,   1, 
                        INKB,   1, 
                        Offset (0xA1), 
                        DKST,   1, 
                            ,   6, 
                        DKEV,   1, 
                        Offset (0xA3), 
                        S1LD,   1, 
                        S3LD,   1, 
                        VGAQ,   1, 
                        PCMQ,   1, 
                        PCMR,   1, 
                        ADP,    1, 
                        SYS6,   1, 
                        SYS7,   1, 
                        PWAK,   1, 
                        MWAK,   1, 
                        LWAK,   1, 
                        Offset (0xA5), 
                        TST0,   8, 
                        TST1,   8, 
                        TST2,   8, 
                        TST3,   8, 
                        TST4,   8, 
                        TST5,   8, 
                        TST6,   8, 
                        TST7,   8, 
                        Offset (0xB0), 
                        CTMP,   8, 
                        Offset (0xB8), 
                        BTDT,   1, 
                        BTPW,   1, 
                        BTDS,   1, 
                        BTPS,   1, 
                        BTSW,   1, 
                        Offset (0xB9), 
                        BRTS,   8, 
                        Offset (0xBB), 
                        WLAT,   1, 
                        BTAT,   1, 
                        WLEX,   1, 
                        BTEX,   1, 
                        KLSW,   1, 
                        Offset (0xC0), 
                            ,   4, 
                        BMF0,   3, 
                        BTY0,   1, 
                        BST0,   8, 
                        BRC0,   16, 
                        BSN0,   16, 
                        BPV0,   16, 
                        BDV0,   16, 
                        BDC0,   16, 
                        BFC0,   16, 
                        GAU0,   8, 
                        Offset (0xD0), 
                            ,   4, 
                        BMF1,   3, 
                        BTY1,   1, 
                        BST1,   8, 
                        BRC1,   16, 
                        BSN1,   16, 
                        BPV1,   16, 
                        BDV1,   16, 
                        BDC1,   16, 
                        BFC1,   16, 
                        GAU1,   8
                    }

                    Method (PCLK, 0, NotSerialized)
                    {
                        Store (PTVL, Local0)
                        If (LEqual (Local0, 0x00))
                        {
                            Store (0x00, THEN)
                        }
                        Else
                        {
                            Not (Local0, Local0)
                            Add (Local0, 0x01, Local0)
                            And (Local0, 0x07, Local0)
                            Store (Local0, DUTY)
                            If (LEqual (Local0, 0x00))
                            {
                                Store (0x00, THEN)
                            }
                            Else
                            {
                                Store (0x01, THEN)
                            }
                        }
                    }

                    Method (_Q16, 0, NotSerialized)
                    {
                        Store ("=====QUERY_16=====", Debug)
                        Notify (\_SB.LID, 0x80)
                    }

                    Method (_Q1C, 0, NotSerialized)
                    {
                        Store ("=====QUERY_1C=====", Debug)
                        If (\_SB.PCI0.LPC0.EC0.VIDO)
                        {
                            \_SB.PCI0.AGP0.VGA.DSSW ()
                            Store (0x00, \_SB.PCI0.LPC0.EC0.VIDO)
                        }
                    }

                    Method (_Q1D, 0, NotSerialized)
                    {
                        \_SB.PCI0.LPC0.EC0.PCLK ()
                    }

                    Method (_Q1E, 0, NotSerialized)
                    {
                        Notify (\_TZ.THRM, 0x80)
                    }

                    Method (_Q22, 0, NotSerialized)
                    {
                        Store ("=====QUERY_22=====", Debug)
                        Notify (\_SB.PCI0.LPC0.BAT1, 0x80)
                    }

                    Method (_Q25, 0, NotSerialized)
                    {
                        Store ("=====QUERY_25=====", Debug)
                        Sleep (0x03E8)
                        Notify (\_SB.PCI0.LPC0.BAT1, 0x81)
                        Notify (\_SB.PCI0.LPC0.BAT1, 0x80)
                    }

                    Method (_Q27, 0, NotSerialized)
                    {
                        Store (0x01, OSSD)
                        Notify (\_TZ.THRM, 0x80)
                    }

                    Method (_Q2A, 0, NotSerialized)
                    {
                        Notify (\_SB.PCI0.LPC0.SIO.UAR1, 0x00)
                        Store (0x00, \_SB.PCI0.LPC0.EC0.DKEV)
                        PHSS (0x7A)
                    }

                    Method (_Q2B, 0, NotSerialized)
                    {
                        Notify (\_SB.PCI0.LPC0.SIO.UAR1, 0x01)
                        Store (0x00, \_SB.PCI0.LPC0.EC0.DKEV)
                        PHSS (0x7A)
                    }

                    Method (_Q35, 0, NotSerialized)
                    {
                        Store ("=====QUERY_35=====", Debug)
                        PHSS (0x11)
                    }

                    Method (_Q37, 0, NotSerialized)
                    {
                        Store ("=====QUERY_37=====", Debug)
                        PHSS (0x0D)
                        Notify (\_SB.PCI0.LPC0.ACAD, 0x00)
                        Notify (\_SB.PCI0.LPC0.BAT1, 0x80)
                        Notify (\_PR.CPU0, 0x80)
                    }

                    Method (_Q38, 0, NotSerialized)
                    {
                        Store ("=====QUERY_38=====", Debug)
                        PHSS (0x0D)
                        Notify (\_SB.PCI0.LPC0.ACAD, 0x00)
                        Notify (\_SB.PCI0.LPC0.BAT1, 0x80)
                        Notify (\_PR.CPU0, 0x80)
                    }

                    OperationRegion (CCLK, SystemIO, 0x8010, 0x04)
                    Field (CCLK, DWordAcc, NoLock, Preserve)
                    {
                            ,   1, 
                        DUTY,   3, 
                        THEN,   1
                    }

                    OperationRegion (ECRM, EmbeddedControl, 0x00, 0xFF)
                    Field (ECRM, ByteAcc, Lock, Preserve)
                    {
                        Offset (0x94), 
                        ERIB,   16, 
                        ERBD,   8, 
                        Offset (0xAC), 
                        SDTM,   8, 
                        FSSN,   4, 
                        FANU,   4, 
                        PTVL,   3, 
                            ,   4, 
                        TTHR,   1, 
                        Offset (0xBC), 
                        PJID,   8, 
                        Offset (0xBE), 
                        Offset (0xF9), 
                        RFRD,   16
                    }

                    Mutex (FAMX, 0x00)
                    Method (FANG, 1, NotSerialized)
                    {
                        Acquire (FAMX, 0xFFFF)
                        Store (Arg0, ERIB)
                        Store (ERBD, Local0)
                        Release (FAMX)
                        Return (Local0)
                    }

                    Method (FANW, 2, NotSerialized)
                    {
                        Acquire (FAMX, 0xFFFF)
                        Store (Arg1, ERBD)
                        Store (Arg0, ERIB)
                        Release (FAMX)
                        Return (Arg1)
                    }

                    Method (TUVR, 1, NotSerialized)
                    {
                        Return (0x03)
                    }

                    Method (THRO, 1, NotSerialized)
                    {
                        If (LEqual (Arg0, 0x00))
                        {
                            Return (THEN)
                        }
                        Else
                        {
                            If (LEqual (Arg0, 0x01))
                            {
                                Return (DUTY)
                            }
                            Else
                            {
                                If (LEqual (Arg0, 0x02))
                                {
                                    Return (TTHR)
                                }
                                Else
                                {
                                    Return (0xFF)
                                }
                            }
                        }
                    }

                    Method (CLCK, 1, NotSerialized)
                    {
                        If (LEqual (Arg0, 0x00))
                        {
                            Store (0x00, THEN)
                        }
                        Else
                        {
                            Store (Arg0, DUTY)
                            Store (0x01, THEN)
                        }

                        Return (THEN)
                    }
                }

                Device (BAT1)
                {
                    Name (_HID, EisaId ("PNP0C0A"))
                    Name (_UID, 0x01)
                    Name (_PCL, Package (0x01)
                    {
                        \_SB
                    })
                    Name (PBIF, Package (0x0D)
                    {
                        0x01, 
                        0x19C8, 
                        0x19C8, 
                        0x01, 
                        0x39D0, 
                        0x0294, 
                        0xC6, 
                        0x0108, 
                        0x0EC4, 
                        "Primary ", 
                        "", 
                        "Lion", 
                        "Hewlett-Packard "
                    })
                    Name (PBST, Package (0x04)
                    {
                        0x01, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0x39D0
                    })
                    Method (_STA, 0, NotSerialized)
                    {
                        If (ECOK ())
                        {
                            If (\_SB.PCI0.LPC0.EC0.BAL0)
                            {
                                Sleep (0x14)
                                Return (0x1F)
                            }
                            Else
                            {
                                Sleep (0x14)
                                Return (0x0F)
                            }
                        }
                        Else
                        {
                            Sleep (0x14)
                            Return (0x1F)
                        }
                    }

                    Method (_BIF, 0, NotSerialized)
                    {
                        If (ECOK ())
                        {
                            Sleep (0x14)
                            Store (\_SB.PCI0.LPC0.EC0.BDC0, Index (PBIF, 0x01))
                            Sleep (0x14)
                            Store (\_SB.PCI0.LPC0.EC0.BFC0, Index (PBIF, 0x02))
                            Sleep (0x14)
                            Store (\_SB.PCI0.LPC0.EC0.BDV0, Index (PBIF, 0x04))
                            Sleep (0x14)
                            Store (\_SB.PCI0.LPC0.EC0.BDC0, Local2)
                            Divide (Local2, 0x64, Local6, Local2)
                            Multiply (Local2, 0x05, Local3)
                            Store (Local3, Index (PBIF, 0x05))
                            Multiply (Local2, 0x03, Local4)
                            Store (Local4, Index (PBIF, 0x06))
                        }

                        Return (PBIF)
                    }

                    Method (_BST, 0, NotSerialized)
                    {
                        If (ECOK ())
                        {
                            Sleep (0x14)
                            Store (\_SB.PCI0.LPC0.EC0.BST0, Local0)
                            And (Local0, 0x07, Local0)
                            Store (Local0, Index (PBST, 0x00))
                            Sleep (0x14)
                            Store (\_SB.PCI0.LPC0.EC0.GAU0, Local2)
                            Sleep (0x14)
                            Store (\_SB.PCI0.LPC0.EC0.BPV0, Index (PBST, 0x03))
                            Sleep (0x14)
                            Store (\_SB.PCI0.LPC0.EC0.BFC0, Local1)
                            Sleep (0x14)
                            If (Local2)
                            {
                                Multiply (Local2, Local1, Local2)
                                Divide (Local2, 0x64, Local6, Local2)
                                If (Local6)
                                {
                                    Increment (Local2)
                                }
                            }

                            Store (0x00, Index (PBST, 0x01))
                            Store (Local2, Index (PBST, 0x02))
                        }

                        Return (PBST)
                    }
                }

                OperationRegion (SMI0, SystemIO, 0x0000FE00, 0x00000002)
                Field (SMI0, AnyAcc, NoLock, Preserve)
                {
                    SMIC,   8
                }

                OperationRegion (SMI1, SystemMemory, 0x1FF7FEAC, 0x00000090)
                Field (SMI1, AnyAcc, NoLock, Preserve)
                {
                    BCMD,   8, 
                    DID,    32, 
                    INFO,   1024
                }

                Field (SMI1, AnyAcc, NoLock, Preserve)
                {
                    AccessAs (ByteAcc, 0x00), 
                    Offset (0x05), 
                    INF,    8, 
                    INF1,   32
                }

                Mutex (PSMX, 0x00)
                Method (PHSS, 1, NotSerialized)
                {
                    Acquire (PSMX, 0xFFFF)
                    Store (0x80, BCMD)
                    Store (Arg0, DID)
                    Store (Zero, SMIC)
                    Release (PSMX)
                }

                Device (SYS0)
                {
                    Name (_HID, EisaId ("PNP0C02"))
                    Name (_UID, 0x01)
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16, 0x0010, 0x0010, 0x01, 0x10)
                        IO (Decode16, 0x0022, 0x0022, 0x01, 0x1E)
                        IO (Decode16, 0x0044, 0x0044, 0x01, 0x1C)
                        IO (Decode16, 0x0062, 0x0062, 0x01, 0x02)
                        IO (Decode16, 0x0065, 0x0065, 0x01, 0x0B)
                        IO (Decode16, 0x0072, 0x0072, 0x01, 0x02)
                        IO (Decode16, 0x0074, 0x0074, 0x01, 0x0C)
                        IO (Decode16, 0x0091, 0x0091, 0x01, 0x03)
                        IO (Decode16, 0x0097, 0x0097, 0x01, 0x09)
                        IO (Decode16, 0x00A2, 0x00A2, 0x01, 0x1E)
                        IO (Decode16, 0x0200, 0x0200, 0x01, 0x10)
                        IO (Decode16, 0x0680, 0x0680, 0x01, 0x80)
                        IO (Decode16, 0x00E0, 0x00E0, 0x01, 0x10)
                        IO (Decode16, 0x04D0, 0x04D0, 0x01, 0x02)
                        IO (Decode16, 0xFE00, 0xFE00, 0x01, 0x02)
                    })
                }

                Device (PIC0)
                {
                    Name (_HID, EisaId ("PNP0000"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16, 0x0020, 0x0020, 0x04, 0x02)
                        IO (Decode16, 0x00A0, 0x00A0, 0x04, 0x02)
                        IRQ (Edge, ActiveHigh, Exclusive) {2}
                    })
                }

                Device (PIT0)
                {
                    Name (_HID, EisaId ("PNP0100"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16, 0x0040, 0x0040, 0x10, 0x04)
                        IRQ (Edge, ActiveHigh, Exclusive) {0}
                    })
                }

                Device (DMA0)
                {
                    Name (_HID, EisaId ("PNP0200"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16, 0x0000, 0x0000, 0x01, 0x09)
                        IO (Decode16, 0x000A, 0x000A, 0x01, 0x06)
                        IO (Decode16, 0x0081, 0x0081, 0x01, 0x03)
                        IO (Decode16, 0x0087, 0x0087, 0x01, 0x01)
                        IO (Decode16, 0x0089, 0x0089, 0x01, 0x03)
                        IO (Decode16, 0x008F, 0x008F, 0x01, 0x01)
                        IO (Decode16, 0x00C0, 0x00C0, 0x01, 0x12)
                        IO (Decode16, 0x00D4, 0x00D4, 0x01, 0x0C)
                        DMA (Compatibility, BusMaster, Transfer8) {4}
                    })
                }

                Device (SPK0)
                {
                    Name (_HID, EisaId ("PNP0800"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16, 0x0061, 0x0061, 0x01, 0x01)
                    })
                }

                Device (RTC0)
                {
                    Name (_HID, EisaId ("PNP0B00"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16, 0x0070, 0x0070, 0x01, 0x02)
                        IRQ (Edge, ActiveHigh, Exclusive) {8}
                    })
                }

                Device (MTH0)
                {
                    Name (_HID, EisaId ("PNP0C04"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16, 0x00F0, 0x00F0, 0x01, 0x02)
                        IRQ (Edge, ActiveHigh, Exclusive) {13}
                    })
                }

                Device (PS2K)
                {
                    Name (_HID, EisaId ("PNP0303"))
                    Method (_STA, 0, NotSerialized)
                    {
                        Return (0x0F)
                    }

                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16, 0x0060, 0x0060, 0x01, 0x01)
                        IO (Decode16, 0x0064, 0x0064, 0x01, 0x01)
                        IRQNoFlags () {1}
                    })
                    Name (_PRW, Package (0x02)
                    {
                        0x05, 
                        0x03
                    })
                    Method (_PSW, 1, NotSerialized)
                    {
                        Acquire (PSMX, 0xFFFF)
                        If (ECOK ())
                        {
                            Store (Arg0, \_SB.PCI0.LPC0.EC0.INKB)
                        }

                        Release (PSMX)
                    }
                }

                Device (PS2M)
                {
                    Name (_HID, EisaId ("PNP0F13"))
                    Method (_STA, 0, NotSerialized)
                    {
                        Return (0x0F)
                    }

                    Name (_CRS, ResourceTemplate ()
                    {
                        IRQNoFlags () {12}
                    })
                    Name (_PRW, Package (0x02)
                    {
                        0x05, 
                        0x03
                    })
                    Method (_PSW, 1, NotSerialized)
                    {
                        Acquire (PSMX, 0xFFFF)
                        If (ECOK ())
                        {
                            Store (Arg0, \_SB.PCI0.LPC0.EC0.TPAD)
                        }

                        Release (PSMX)
                    }
                }

                Device (SIO)
                {
                    Name (_HID, EisaId ("PNP0A05"))
                    OperationRegion (WIN1, SystemIO, 0x4E, 0x02)
                    Field (WIN1, ByteAcc, NoLock, Preserve)
                    {
                        INDL,   8, 
                        DATL,   8
                    }

                    IndexField (INDL, DATL, ByteAcc, NoLock, Preserve)
                    {
                        Offset (0x02), 
                        CFG,    8, 
                        Offset (0x07), 
                        LDNR,   8, 
                        Offset (0x20), 
                        IDHI,   8, 
                        IDLO,   8, 
                        POWC,   8, 
                        Offset (0x30), 
                        ACTR,   8, 
                        Offset (0x60), 
                        ADRH,   8, 
                        ADRL,   8, 
                        Offset (0x70), 
                        IRQN,   8, 
                        Offset (0x74), 
                        DMAN,   8, 
                        Offset (0xF0), 
                        MOD1,   8, 
                        OPT1,   8
                    }

                    Method (ENFL, 0, NotSerialized)
                    {
                        Store (0x87, INDL)
                        Store (0x87, INDL)
                    }

                    Method (EXFL, 0, NotSerialized)
                    {
                        Store (0xAA, INDL)
                    }

                    Device (FDC0)
                    {
                        Name (_HID, EisaId ("PNP0700"))
                        Name (RFDC, ResourceTemplate ()
                        {
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x06)
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x01)
                            IRQNoFlags () {}
                            DMA (Compatibility, NotBusMaster, Transfer8) {}
                        })
                        Method (_STA, 0, NotSerialized)
                        {
                            ENFL ()
                            Store (Zero, LDNR)
                            Store (0x00, Local0)
                            If (ACTR)
                            {
                                Store (0x0F, Local0)
                            }
                            Else
                            {
                                If (LOr (ADRL, ADRH))
                                {
                                    Store (0x0D, Local0)
                                }
                            }

                            EXFL ()
                            Return (Local0)
                        }

                        Method (_DIS, 0, NotSerialized)
                        {
                            ENFL ()
                            Store (Zero, LDNR)
                            Store (Zero, ACTR)
                            EXFL ()
                        }

                        Method (_CRS, 0, NotSerialized)
                        {
                            If (LEqual (And (_STA (), 0x04), Zero))
                            {
                                Return (RFDC)
                            }

                            Name (BUF0, ResourceTemplate ()
                            {
                                IO (Decode16, 0x03F0, 0x03F0, 0x01, 0x06)
                                IO (Decode16, 0x03F7, 0x03F7, 0x01, 0x01)
                                IRQNoFlags () {6}
                                DMA (Compatibility, NotBusMaster, Transfer8) {2}
                            })
                            CreateByteField (BUF0, 0x02, IOLO)
                            CreateByteField (BUF0, 0x03, IOHI)
                            CreateByteField (BUF0, 0x04, IORL)
                            CreateByteField (BUF0, 0x05, IORH)
                            CreateByteField (BUF0, 0x0A, DALO)
                            CreateByteField (BUF0, 0x0B, DAHI)
                            CreateByteField (BUF0, 0x0C, DRLO)
                            CreateByteField (BUF0, 0x0D, DRHI)
                            CreateWordField (BUF0, 0x11, IRQV)
                            CreateByteField (BUF0, 0x14, DMAV)
                            ENFL ()
                            Store (Zero, LDNR)
                            ShiftRight (ADRH, 0x06, Local1)
                            ShiftLeft (ADRH, 0x02, Local0)
                            Store (Local1, IOHI)
                            Store (Local0, IOLO)
                            Store (Local1, IORH)
                            Store (Local0, IORL)
                            Or (Local0, 0x07, Local0)
                            Store (Local1, DAHI)
                            Store (Local0, DALO)
                            Store (Local1, DRHI)
                            Store (Local0, DRLO)
                            Store (0x01, Local0)
                            ShiftLeft (Local0, IRQN, IRQV)
                            Store (0x01, Local0)
                            ShiftLeft (Local0, DMAN, DMAV)
                            EXFL ()
                            Return (BUF0)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            StartDependentFn (0x00, 0x01)
                            {
                                IO (Decode16, 0x03F0, 0x03F0, 0x01, 0x06)
                                IO (Decode16, 0x03F7, 0x03F7, 0x01, 0x01)
                                IRQNoFlags () {6}
                                DMA (Compatibility, NotBusMaster, Transfer8) {2}
                            }
                            EndDependentFn ()
                        })
                        Method (_SRS, 1, NotSerialized)
                        {
                            CreateByteField (Arg0, 0x02, IOLO)
                            CreateByteField (Arg0, 0x03, IOHI)
                            CreateWordField (Arg0, 0x11, IRQW)
                            CreateByteField (Arg0, 0x14, DMAV)
                            ENFL ()
                            Store (Zero, LDNR)
                            Store (One, ACTR)
                            ShiftRight (IOLO, 0x02, Local0)
                            ShiftLeft (IOHI, 0x06, Local1)
                            Or (Local0, Local1, Local0)
                            Store (Local0, ADRH)
                            FindSetLeftBit (IRQW, Local0)
                            If (LNot (LEqual (Local0, Zero)))
                            {
                                Subtract (Local0, 0x01, Local0)
                            }

                            Store (Local0, IRQN)
                            FindSetLeftBit (DMAV, Local1)
                            If (LNot (LEqual (Local1, Zero)))
                            {
                                Subtract (Local1, 0x01, Local1)
                            }

                            Store (Local1, DMAN)
                            EXFL ()
                        }
                    }

                    Device (UAR1)
                    {
                        Name (_HID, EisaId ("PNP0501"))
                        Name (_UID, 0x01)
                        Name (_PRW, Package (0x02)
                        {
                            0x08, 
                            0x04
                        })
                        Name (RSRC, ResourceTemplate ()
                        {
                            IO (Decode16, 0x0000, 0x0000, 0x08, 0x00)
                            IRQNoFlags () {}
                        })
                        Name (DKFG, 0x00)
                        Method (_STA, 0, NotSerialized)
                        {
                            If (LEqual (\_SB.PCI0.LPC0.EC0.ECOK, 0x01))
                            {
                                Store (\_SB.PCI0.LPC0.EC0.DKST, Local0)
                                If (Local0)
                                {
                                    ENFL ()
                                    Store (0x02, LDNR)
                                    If (ACTR)
                                    {
                                        EXFL ()
                                        Store (0x01, DKFG)
                                        Return (0x0F)
                                    }
                                    Else
                                    {
                                        EXFL ()
                                        Return (0x0D)
                                    }
                                }
                                Else
                                {
                                    Store (0x00, DKFG)
                                    Return (0x00)
                                }
                            }
                            Else
                            {
                                \_SB.PCI0.LPC0.PHSS (0x7A)
                                Store (\_SB.PCI0.LPC0.INF, Local1)
                                If (LEqual (Local1, 0xA6))
                                {
                                    Store (0x01, DKFG)
                                    Store (0x0D, Local1)
                                }
                                Else
                                {
                                    Store (0x00, DKFG)
                                    Store (0x00, Local1)
                                }

                                Return (Local1)
                            }
                        }

                        Method (_DIS, 0, NotSerialized)
                        {
                            ENFL ()
                            Store (0x02, LDNR)
                            Store (Zero, ACTR)
                            EXFL ()
                        }

                        Method (_CRS, 0, NotSerialized)
                        {
                            And (_STA (), 0x04, Local0)
                            If (LEqual (Local0, Zero))
                            {
                                Return (RSRC)
                            }

                            Name (BUF1, ResourceTemplate ()
                            {
                                IO (Decode16, 0x03F8, 0x03F8, 0x08, 0x08)
                                IRQNoFlags () {4}
                            })
                            CreateByteField (BUF1, 0x02, IOLO)
                            CreateByteField (BUF1, 0x03, IOHI)
                            CreateByteField (BUF1, 0x04, IORL)
                            CreateByteField (BUF1, 0x05, IORH)
                            CreateWordField (BUF1, 0x09, IRQV)
                            ENFL ()
                            Store (0x02, LDNR)
                            ShiftLeft (ADRH, 0x02, Local0)
                            ShiftRight (ADRH, 0x06, Local1)
                            Store (Local0, IOLO)
                            Store (Local1, IOHI)
                            Store (Local0, IORL)
                            Store (Local1, IORH)
                            Store (0x00, IRQV)
                            If (LNot (LEqual (IRQN, 0x00)))
                            {
                                ShiftLeft (One, IRQN, IRQV)
                            }

                            EXFL ()
                            Return (BUF1)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            StartDependentFn (0x00, 0x00)
                            {
                                IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08)
                                IRQ (Edge, ActiveHigh, Exclusive) {4}
                            }
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08)
                                IRQ (Edge, ActiveHigh, Exclusive) {3}
                            }
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08)
                                IRQ (Edge, ActiveHigh, Exclusive) {4}
                            }
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x02E8, 0x02E8, 0x01, 0x08)
                                IRQ (Edge, ActiveHigh, Exclusive) {3}
                            }
                            StartDependentFn (0x02, 0x02)
                            {
                                IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08)
                                IRQ (Edge, ActiveHigh, Exclusive) {3}
                            }
                            StartDependentFn (0x02, 0x02)
                            {
                                IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08)
                                IRQ (Edge, ActiveHigh, Exclusive) {4}
                            }
                            StartDependentFn (0x02, 0x02)
                            {
                                IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08)
                                IRQ (Edge, ActiveHigh, Exclusive) {3}
                            }
                            StartDependentFn (0x02, 0x02)
                            {
                                IO (Decode16, 0x02E8, 0x02E8, 0x01, 0x08)
                                IRQ (Edge, ActiveHigh, Exclusive) {4}
                            }
                            EndDependentFn ()
                        })
                        Method (_SRS, 1, NotSerialized)
                        {
                            CreateByteField (Arg0, 0x02, IOLO)
                            CreateByteField (Arg0, 0x03, IOHI)
                            CreateWordField (Arg0, 0x09, IRQW)
                            ENFL ()
                            Store (0x02, LDNR)
                            Store (One, ACTR)
                            ShiftRight (IOLO, 0x02, Local0)
                            ShiftLeft (IOHI, 0x06, Local1)
                            Or (Local0, Local1, ADRH)
                            FindSetLeftBit (IRQW, Local0)
                            If (LNot (LEqual (Local0, Zero)))
                            {
                                Subtract (Local0, 0x01, Local0)
                            }

                            Store (Local0, IRQN)
                            EXFL ()
                        }
                    }

                    Device (LPT1)
                    {
                        Name (PIOM, Buffer (0x01)
                        {
                            0x00
                        })
                        CreateByteField (PIOM, 0x00, LPTM)
                        Name (_HID, EisaId ("PNP0400"))
                        Method (_STA, 0, NotSerialized)
                        {
                            ENFL ()
                            Store (One, LDNR)
                            Store (ACTR, Local0)
                            And (Local0, 0x03, Local0)
                            If (LEqual (Local0, 0x03))
                            {
                                If (LNot (LEqual (DMAN, 0x00)))
                                {
                                    Store (0x00, Local1)
                                }
                                Else
                                {
                                    If (LNot (LEqual (ADRH, 0x00)))
                                    {
                                        Store (0x0D, Local1)
                                    }
                                    Else
                                    {
                                        Store (0x00, Local1)
                                    }
                                }
                            }
                            Else
                            {
                                If (LEqual (Local0, 0x01))
                                {
                                    Store (0x00, Local1)
                                }
                                Else
                                {
                                    Store (Local0, LPTM)
                                    Store (0x0F, Local1)
                                }
                            }

                            EXFL ()
                            Return (Local1)
                        }

                        Method (_DIS, 0, NotSerialized)
                        {
                            ENFL ()
                            Store (One, LDNR)
                            Store (0x03, ACTR)
                            EXFL ()
                        }

                        Method (_CRS, 0, NotSerialized)
                        {
                            Name (BUFL, ResourceTemplate ()
                            {
                                IO (Decode16, 0x0378, 0x0378, 0x08, 0x08)
                                IRQNoFlags () {7}
                            })
                            CreateWordField (BUFL, 0x02, IMIN)
                            CreateWordField (BUFL, 0x04, IMAX)
                            CreateByteField (BUFL, 0x06, LALN)
                            CreateByteField (BUFL, 0x07, LLEN)
                            CreateWordField (BUFL, 0x09, IRQ0)
                            ENFL ()
                            Store (One, LDNR)
                            Store (ADRH, Local0)
                            ShiftLeft (Local0, 0x02, Local0)
                            Store (Local0, IMIN)
                            Store (Local0, IMAX)
                            If (LEqual (IMIN, 0x03BC))
                            {
                                Store (0x04, LALN)
                                Store (0x04, LLEN)
                            }
                            Else
                            {
                                Store (0x08, LALN)
                                Store (0x08, LLEN)
                            }

                            Store (IRQN, Local0)
                            ShiftLeft (One, Local0, IRQ0)
                            EXFL ()
                            Return (BUFL)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x0378, 0x0378, 0x08, 0x08)
                                IRQNoFlags () {7}
                            }
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x0278, 0x0278, 0x08, 0x08)
                                IRQNoFlags () {5}
                            }
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x03BC, 0x03BC, 0x04, 0x04)
                                IRQNoFlags () {7}
                            }
                            EndDependentFn ()
                        })
                        Method (_SRS, 1, NotSerialized)
                        {
                            CreateByteField (Arg0, 0x02, IOLO)
                            CreateByteField (Arg0, 0x03, IOHI)
                            CreateWordField (Arg0, 0x09, IRQ0)
                            ENFL ()
                            Store (One, LDNR)
                            Store (IOLO, Local0)
                            ShiftRight (Local0, 0x02, Local0)
                            Store (IOHI, Local1)
                            ShiftLeft (Local1, 0x06, Local1)
                            Or (Local0, Local1, Local0)
                            Store (Local0, ADRH)
                            FindSetRightBit (IRQ0, Local0)
                            If (LGreater (Local0, 0x00))
                            {
                                Decrement (Local0)
                            }

                            Store (Local0, IRQN)
                            Store (ACTR, Local0)
                            And (Local0, 0xFC, Local0)
                            Store (LPTM, Local1)
                            Or (Local0, Local1, Local1)
                            Store (Local1, ACTR)
                            EXFL ()
                        }
                    }

                    Device (ECP1)
                    {
                        Name (_HID, EisaId ("PNP0401"))
                        Method (_STA, 0, NotSerialized)
                        {
                            ENFL ()
                            Store (One, LDNR)
                            Store (ACTR, Local0)
                            And (Local0, 0x03, Local0)
                            If (LEqual (Local0, 0x01))
                            {
                                Store (0x0F, Local1)
                            }
                            Else
                            {
                                If (LOr (LEqual (Local0, 0x00), LEqual (Local0, 0x02)))
                                {
                                    Store (0x00, Local1)
                                }
                                Else
                                {
                                    If (LEqual (Local0, 0x03))
                                    {
                                        If (LNot (LEqual (DMAN, 0x00)))
                                        {
                                            Store (0x0D, Local1)
                                        }
                                        Else
                                        {
                                            Store (0x00, Local1)
                                        }
                                    }
                                }
                            }

                            EXFL ()
                            Return (Local1)
                        }

                        Method (_DIS, 0, NotSerialized)
                        {
                            ENFL ()
                            Store (One, LDNR)
                            Store (0x03, ACTR)
                            EXFL ()
                        }

                        Method (_CRS, 0, NotSerialized)
                        {
                            Name (BUFE, ResourceTemplate ()
                            {
                                IO (Decode16, 0x0378, 0x0378, 0x08, 0x08)
                                IO (Decode16, 0x0778, 0x0778, 0x04, 0x04)
                                IRQNoFlags () {7}
                                DMA (Compatibility, NotBusMaster, Transfer8) {3}
                            })
                            CreateWordField (BUFE, 0x02, IMI1)
                            CreateWordField (BUFE, 0x04, IMA1)
                            CreateByteField (BUFE, 0x06, ALN1)
                            CreateByteField (BUFE, 0x07, LEN1)
                            CreateWordField (BUFE, 0x0A, IMI2)
                            CreateWordField (BUFE, 0x0C, IMA2)
                            CreateWordField (BUFE, 0x11, IRQ0)
                            CreateByteField (BUFE, 0x14, DMA0)
                            ENFL ()
                            Store (One, LDNR)
                            Store (ADRH, Local0)
                            ShiftLeft (Local0, 0x02, Local0)
                            Store (Local0, IMI1)
                            Store (Local0, IMA1)
                            Add (Local0, 0x0400, Local0)
                            Store (Local0, IMI2)
                            Store (Local0, IMA2)
                            If (LEqual (IMI1, 0x03BC))
                            {
                                Store (0x04, ALN1)
                                Store (0x04, LEN1)
                            }
                            Else
                            {
                                Store (0x08, ALN1)
                                Store (0x08, LEN1)
                            }

                            Store (IRQN, Local0)
                            ShiftLeft (One, Local0, IRQ0)
                            Store (DMAN, Local0)
                            And (Local0, 0x03, Local0)
                            ShiftLeft (One, Local0, DMA0)
                            EXFL ()
                            Return (BUFE)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x0378, 0x0378, 0x08, 0x08)
                                IO (Decode16, 0x0778, 0x0778, 0x04, 0x04)
                                IRQNoFlags () {7}
                                DMA (Compatibility, NotBusMaster, Transfer8) {1,3}
                            }
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x0278, 0x0278, 0x08, 0x08)
                                IO (Decode16, 0x0678, 0x0678, 0x04, 0x04)
                                IRQNoFlags () {5}
                                DMA (Compatibility, NotBusMaster, Transfer8) {1,3}
                            }
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x03BC, 0x03BC, 0x04, 0x04)
                                IO (Decode16, 0x07BC, 0x07BC, 0x04, 0x04)
                                IRQNoFlags () {7}
                                DMA (Compatibility, NotBusMaster, Transfer8) {1,3}
                            }
                            EndDependentFn ()
                        })
                        Method (_SRS, 1, NotSerialized)
                        {
                            CreateByteField (Arg0, 0x02, IOLO)
                            CreateByteField (Arg0, 0x03, IOHI)
                            CreateWordField (Arg0, 0x11, IRQ0)
                            CreateByteField (Arg0, 0x14, DMA0)
                            ENFL ()
                            Store (One, LDNR)
                            Store (IOLO, Local0)
                            ShiftRight (Local0, 0x02, Local0)
                            Store (IOHI, Local1)
                            ShiftLeft (Local1, 0x06, Local1)
                            Or (Local0, Local1, Local0)
                            Store (Local0, ADRH)
                            FindSetRightBit (IRQ0, Local0)
                            If (LGreater (Local0, 0x00))
                            {
                                Decrement (Local0)
                            }

                            Store (Local0, IRQN)
                            FindSetRightBit (DMA0, Local0)
                            If (LGreater (Local0, 0x00))
                            {
                                Decrement (Local0)
                            }

                            Store (Local0, DMAN)
                            Store (ACTR, Local0)
                            And (Local0, 0xFC, Local0)
                            Or (Local0, 0x01, Local0)
                            Store (Local0, ACTR)
                            EXFL ()
                        }
                    }

                    Device (FIR0)
                    {
                        Name (_HID, EisaId ("VIA3076"))
                        Name (RFIC, ResourceTemplate ()
                        {
                            IO (Decode16, 0x0000, 0x0000, 0x01, 0x00)
                            IRQNoFlags () {}
                            DMA (Compatibility, BusMaster, Transfer16) {}
                        })
                        Method (_STA, 0, NotSerialized)
                        {
                            If (LEqual (CMBP, 0x00))
                            {
                                Return (0x00)
                            }

                            ENFL ()
                            Store (0x0C, LDNR)
                            Store (0x00, Local0)
                            If (ACTR)
                            {
                                Store (0x0F, Local0)
                            }
                            Else
                            {
                                If (LOr (ADRL, ADRH))
                                {
                                    Store (0x0D, Local0)
                                }
                            }

                            EXFL ()
                            Return (Local0)
                        }

                        Method (_DIS, 0, NotSerialized)
                        {
                            ENFL ()
                            Store (0x0C, LDNR)
                            Store (Zero, ACTR)
                            EXFL ()
                        }

                        Method (_CRS, 0, NotSerialized)
                        {
                            If (LEqual (And (_STA (), 0x02), Zero))
                            {
                                Return (RFIC)
                            }

                            Name (BUFI, ResourceTemplate ()
                            {
                                IO (Decode16, 0x0600, 0x0600, 0x01, 0x80)
                                IRQNoFlags () {3}
                                DMA (Compatibility, BusMaster, Transfer16) {6}
                            })
                            CreateWordField (BUFI, 0x02, IMIN)
                            CreateWordField (BUFI, 0x04, IMAX)
                            CreateWordField (BUFI, 0x09, IRQ0)
                            CreateByteField (BUFI, 0x0C, DMA0)
                            ENFL ()
                            Store (0x0C, LDNR)
                            Store (ADRH, Local1)
                            Store (ADRL, Local0)
                            ShiftLeft (Local1, 0x08, Local1)
                            Or (Local1, Local0, Local0)
                            Store (Local0, IMIN)
                            Store (Local0, IMAX)
                            Store (IRQN, Local0)
                            And (Local0, 0x0F, Local0)
                            Store (One, Local1)
                            ShiftLeft (Local1, Local0, IRQ0)
                            Store (DMAN, Local0)
                            And (Local0, 0x03, Local0)
                            If (LEqual (Local0, Zero))
                            {
                                Store (Zero, DMA0)
                            }
                            Else
                            {
                                Add (Local0, 0x04, Local0)
                                Store (One, Local1)
                                ShiftLeft (Local1, Local0, DMA0)
                            }

                            EXFL ()
                            Return (BUFI)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x0600, 0x0600, 0x01, 0x80)
                                IRQNoFlags () {3}
                                DMA (Compatibility, BusMaster, Transfer16) {6}
                            }
                            StartDependentFnNoPri ()
                            {
                                IO (Decode16, 0x0800, 0x0800, 0x01, 0x80)
                                IRQNoFlags () {3,4,5,11}
                                DMA (Compatibility, BusMaster, Transfer16) {1,3,6}
                            }
                            EndDependentFn() })
                        Method (_SRS, 1, NotSerialized)
                        {
                            CreateByteField (Arg0, 0x02, IOLO)
                            CreateByteField (Arg0, 0x03, IOHI)
                            CreateWordField (Arg0, 0x09, IRQ0)
                            CreateByteField (Arg0, 0x0C, DMA0)
                            ENFL ()
                            Store (0x0C, LDNR)
                            Store (IOHI, ADRH)
                            Store (IOLO, ADRL)
                            FindSetRightBit (IRQ0, Local0)
                            If (LGreater (Local0, 0x00))
                            {
                                Decrement (Local0)
                            }

                            Store (Local0, IRQN)
                            FindSetRightBit (DMA0, Local0)
                            Subtract (Local0, 0x01, Local0)
                            If (LGreater (Local0, 0x04))
                            {
                                Subtract (Local0, 0x04, Local0)
                            }

                            Store (Local0, Local1)
                            ShiftLeft (Local1, 0x02, Local1)
                            Or (Local0, Local1, Local0)
                            Store (Local0, DMAN)
                            Store (One, ACTR)
                            EXFL ()
                        }
                    }
                }
            }

            Device (P2P0)
            {
                Name (_ADR, 0x000A0000)
                Name (_UID, 0x02)
                OperationRegion (A080, PCI_Config, 0x19, 0x01)
                Field (A080, ByteAcc, NoLock, Preserve)
                {
                    SECB,   8
                }

                Method (_STA, 0, NotSerialized)
                {
                    Return (0x0F)
                }

                Name (_PRT, Package (0x05)
                {
                    Package (0x04)
                    {
                        0xFFFF, 
                        0x00, 
                        \_SB.PCI0.LNK1, 
                        0x00
                    }, 

                    Package (0x04)
                    {
                        0x0001FFFF, 
                        0x00, 
                        \_SB.PCI0.LNK2, 
                        0x00
                    }, 

                    Package (0x04)
                    {
                        0x0002FFFF, 
                        0x00, 
                        \_SB.PCI0.LNK3, 
                        0x00
                    }, 

                    Package (0x04)
                    {
                        0x0004FFFF, 
                        0x00, 
                        \_SB.PCI0.LNK1, 
                        0x00
                    }, 

                    Package (0x04)
                    {
                        0x0004FFFF, 
                        0x01, 
                        \_SB.PCI0.LNK2, 
                        0x00
                    }
                })
                Device (MAC0)
                {
                    Name (_ADR, 0x00010000)
                    Name (_PRW, Package (0x02)
                    {
                        0x0B, 
                        0x03
                    })
                    Method (_STA, 0, NotSerialized)
                    {
                        Return (0x0F)
                    }
                }
            }

            Device (AGP0)
            {
                Name (_ADR, 0x000B0000)
                Name (_UID, 0x03)
                OperationRegion (A1E0, PCI_Config, 0x19, 0x01)
                Field (A1E0, ByteAcc, NoLock, Preserve)
                {
                    SECB,   8
                }

                Method (_STA, 0, NotSerialized)
                {
                    Return (0x0F)
                }

                Name (_PRT, Package (0x01)
                {
                    Package (0x04)
                    {
                        0xFFFF, 
                        0x00, 
                        \_SB.PCI0.LNK5, 
                        0x00
                    }
                })
                Device (VGA)
                {
                    Name (_ADR, 0x00)
                    Name (SWIT, 0x01)
                    Name (CRTA, 0x01)
                    Name (LCDA, 0x01)
                    Name (TVAA, 0x01)
                    Name (VLDF, 0x01)
                    Method (_STA, 0, NotSerialized)
                    {
                        Return (0x0F)
                    }

                    Name (_PSC, 0x00)
                    Method (_PS0, 0, NotSerialized)
                    {
                        Store (0x00, _PSC)
                    }

                    Method (_PS1, 0, NotSerialized)
                    {
                        Store (0x01, _PSC)
                    }

                    Method (_PS3, 0, NotSerialized)
                    {
                        Store (0x03, _PSC)
                    }

                    Method (_DOS, 1, NotSerialized)
                    {
                        Store (And (Arg0, 0x03), SWIT)
                    }

                    Method (_DOD, 0, NotSerialized)
                    {
                        Return (Package (0x03)
                        {
                            0x00010100, 
                            0x00010110, 
                            0x0200
                        })
                    }

                    Device (CRT)
                    {
                        Method (_ADR, 0, NotSerialized)
                        {
                            Return (0x0100)
                        }

                        Method (_DCS, 0, NotSerialized)
                        {
                            \_SB.PCI0.LPC0.PHSS (0x0C)
                            Store (\_SB.PCI0.LPC0.INF, Local0)
                            And (Local0, 0x02, Local0)
                            If (Local0)
                            {
                                Store (0x01, CRTA)
                            }
                            Else
                            {
                                Store (0x00, CRTA)
                            }

                            If (CRTA)
                            {
                                Return (0x1F)
                            }
                            Else
                            {
                                Return (0x1D)
                            }
                        }

                        Method (_DGS, 0, NotSerialized)
                        {
                            If (CRTA)
                            {
                                Return (0x01)
                            }
                            Else
                            {
                                Return (0x00)
                            }
                        }

                        Method (_DSS, 1, NotSerialized)
                        {
                        }
                    }

                    Device (LCD)
                    {
                        Method (_ADR, 0, NotSerialized)
                        {
                            Return (0x0110)
                        }

                        Method (_DCS, 0, NotSerialized)
                        {
                            If (LCDA)
                            {
                                Return (0x1F)
                            }
                            Else
                            {
                                Return (0x1D)
                            }
                        }

                        Method (_DGS, 0, NotSerialized)
                        {
                            If (LCDA)
                            {
                                Return (0x01)
                            }
                            Else
                            {
                                Return (0x00)
                            }
                        }

                        Method (_DSS, 1, NotSerialized)
                        {
                            DSSC (Arg0)
                        }
                    }

                    Device (TV)
                    {
                        Method (_ADR, 0, NotSerialized)
                        {
                            Return (0x0200)
                        }

                        Method (_DCS, 0, NotSerialized)
                        {
                            \_SB.PCI0.LPC0.PHSS (0x0C)
                            Store (\_SB.PCI0.LPC0.INF, Local0)
                            And (Local0, 0x04, Local0)
                            If (Local0)
                            {
                                Store (0x01, TVAA)
                            }
                            Else
                            {
                                Store (0x00, TVAA)
                            }

                            If (TVAA)
                            {
                                Return (0x1F)
                            }
                            Else
                            {
                                Return (0x1D)
                            }
                        }

                        Method (_DGS, 0, NotSerialized)
                        {
                            If (TVAA)
                            {
                                Return (0x01)
                            }
                            Else
                            {
                                Return (0x00)
                            }
                        }

                        Method (_DSS, 1, NotSerialized)
                        {
                        }
                    }

                    Method (DSSW, 0, NotSerialized)
                    {
                        If (LEqual (SWIT, 0x00))
                        {
                            \_SB.PCI0.LPC0.PHSS (0x90)
                            Store (\_SB.PCI0.LPC0.INF, Local0)
                            If (LEqual (Local0, 0x01))
                            {
                                Return (0x00)
                            }

                            \_SB.PCI0.LPC0.PHSS (0x0C)
                            Store (\_SB.PCI0.LPC0.INF, Local0)
                            Store (\_SB.PCI0.LPC0.INF1, Local1)
                            If (LGreater (Local1, 0x01))
                            {
                                And (Local0, Local1, VLDF)
                                And (VLDF, 0xFE, VLDF)
                            }

                            If (VLDF)
                            {
                                If (LEqual (Local0, 0x03))
                                {
                                    If (LEqual (Local1, 0x01))
                                    {
                                        STBL (0x02)
                                    }

                                    If (LEqual (Local1, 0x02))
                                    {
                                        STBL (0x03)
                                    }

                                    If (LEqual (Local1, 0x03))
                                    {
                                        STBL (0x01)
                                    }

                                    If (LEqual (Local1, 0x06))
                                    {
                                        STBL (0x01)
                                    }
                                }

                                If (LEqual (Local0, 0x05))
                                {
                                    If (LEqual (Local1, 0x01))
                                    {
                                        STBL (0x04)
                                    }

                                    If (LEqual (Local1, 0x04))
                                    {
                                        STBL (0x05)
                                    }

                                    If (LEqual (Local1, 0x05))
                                    {
                                        STBL (0x01)
                                    }

                                    If (LEqual (Local1, 0x06))
                                    {
                                        STBL (0x01)
                                    }
                                }

                                If (LEqual (Local0, 0x07))
                                {
                                    If (LEqual (Local1, 0x01))
                                    {
                                        STBL (0x02)
                                    }

                                    If (LEqual (Local1, 0x02))
                                    {
                                        STBL (0x03)
                                    }

                                    If (LEqual (Local1, 0x03))
                                    {
                                        STBL (0x04)
                                    }

                                    If (LEqual (Local1, 0x04))
                                    {
                                        STBL (0x05)
                                    }

                                    If (LEqual (Local1, 0x05))
                                    {
                                        STBL (0x06)
                                    }

                                    If (LEqual (Local1, 0x06))
                                    {
                                        STBL (0x01)
                                    }
                                }
                            }
                            Else
                            {
                                Store (0x01, VLDF)
                                STBL (0x01)
                            }
                        }
                        Else
                        {
                            If (LEqual (SWIT, 0x01))
                            {
                                \_SB.PCI0.LPC0.PHSS (0x01)
                            }
                        }

                        Return (Package (0x02)
                        {
                            0x00, 
                            0x00
                        })
                    }

                    Method (STBL, 1, NotSerialized)
                    {
                        If (And (Arg0, 0xF8))
                        {
                            Store (Zero, CRTA)
                            Store (One, LCDA)
                            Store (Zero, TVAA)
                        }
                        Else
                        {
                            If (LEqual (Arg0, 0x01))
                            {
                                Store (Zero, CRTA)
                                Store (One, LCDA)
                                Store (Zero, TVAA)
                            }

                            If (LEqual (Arg0, 0x02))
                            {
                                Store (One, CRTA)
                                Store (Zero, LCDA)
                                Store (Zero, TVAA)
                            }

                            If (LEqual (Arg0, 0x03))
                            {
                                Store (One, CRTA)
                                Store (One, LCDA)
                                Store (Zero, TVAA)
                            }

                            If (LEqual (Arg0, 0x04))
                            {
                                Store (Zero, CRTA)
                                Store (Zero, LCDA)
                                Store (One, TVAA)
                            }

                            If (LEqual (Arg0, 0x05))
                            {
                                Store (Zero, CRTA)
                                Store (One, LCDA)
                                Store (One, TVAA)
                            }

                            If (LEqual (Arg0, 0x06))
                            {
                                Store (One, CRTA)
                                Store (Zero, LCDA)
                                Store (One, TVAA)
                            }

                            If (LEqual (Arg0, 0x07))
                            {
                                Store (One, CRTA)
                                Store (One, LCDA)
                                Store (One, TVAA)
                            }
                        }

                        Notify (\_SB.PCI0.AGP0.VGA, 0x80)
                    }

                    Method (DSSC, 1, NotSerialized)
                    {
                        If (LEqual (And (Arg0, 0x40000000), 0x00)) {}
                    }
                }
            }
        }

        Scope (\)
        {
            Name (PICF, 0x00)
            Method (_PIC, 1, NotSerialized)
            {
                Store (Arg0, PICF)
            }

            OperationRegion (\_SB.PCI0.LPC0.PIRQ, PCI_Config, 0x7C, 0x0C)
            Field (\_SB.PCI0.LPC0.PIRQ, AnyAcc, NoLock, Preserve)
            {
                INTW,   4, 
                INTX,   4, 
                INTY,   4, 
                INTZ,   4, 
                INTE,   4, 
                Offset (0x04), 
                ISCI,   4, 
                ITCO,   4, 
                ISMB,   4, 
                IUS2,   4, 
                    ,   12, 
                ITID,   4, 
                IUS0,   4, 
                IUS1,   4, 
                IMAC,   4, 
                Offset (0x0A), 
                IACI,   4, 
                IMCI,   4, 
                IPID,   4, 
                ISID,   4
            }
        }

        Scope (\_SB.PCI0)
        {
            Name (BUFA, ResourceTemplate ()
            {
                IRQ (Level, ActiveLow, Shared) {3,4,5,6,7,10,11,12,14,15}
            })
            Name (BUFB, ResourceTemplate ()
            {
                IRQ (Level, ActiveLow, Shared) {}
            })
            CreateWordField (BUFB, 0x01, IRQV)
            Method (CRS, 1, Serialized)
            {
                If (Arg0)
                {
                    ShiftLeft (0x01, Arg0, IRQV)
                }
                Else
                {
                    Store (Zero, IRQV)
                }

                Return (BUFB)
            }

            Method (SRS, 1, Serialized)
            {
                CreateWordField (Arg0, 0x01, IRQ0)
                FindSetRightBit (IRQ0, Local0)
                Decrement (Local0)
                Return (Local0)
            }

            Name (BUFI, ResourceTemplate ()
            {
                Interrupt (ResourceConsumer, Level, ActiveLow, Shared)
                {
                    0x00000014,
                    0x00000015,
                    0x00000016,
                }
            })
            Method (CRSI, 1, Serialized)
            {
                Name (IRZ5, ResourceTemplate ()
                {
                    Interrupt (ResourceConsumer, Level, ActiveLow, Shared)
                    {
                        0x00000007,
                    }
                })
                CreateWordField (IRZ5, 0x05, INZ5)
                Store (0x00, Local0)
                If (LEqual (Arg0, 0x08))
                {
                    Store (0x14, Local0)
                }

                If (LEqual (Arg0, 0x0D))
                {
                    Store (0x15, Local0)
                }

                If (LEqual (Arg0, 0x02))
                {
                    Store (0x16, Local0)
                }

                Store (Local0, INZ5)
                Return (IRZ5)
            }

            Method (SRSI, 1, Serialized)
            {
                CreateWordField (Arg0, 0x05, IRZ6)
                Store (0x00, Local0)
                If (LEqual (IRZ6, 0x14))
                {
                    Store (0x08, Local0)
                }

                If (LEqual (IRZ6, 0x15))
                {
                    Store (0x0D, Local0)
                }

                If (LEqual (IRZ6, 0x16))
                {
                    Store (0x02, Local0)
                }

                Return (Local0)
            }

            Name (BUFE, ResourceTemplate ()
            {
                Interrupt (ResourceConsumer, Level, ActiveLow, Shared)
                {
                    0x00000010,
                    0x00000012,
                    0x00000013,
                }
            })
            Name (BUFF, ResourceTemplate ()
            {
                Interrupt (ResourceConsumer, Level, ActiveLow, Shared)
                {
                    0x00000011,
                }
            })
            Method (CRSE, 1, Serialized)
            {
                Name (IRZ7, ResourceTemplate ()
                {
                    Interrupt (ResourceConsumer, Level, ActiveLow, Shared)
                    {
                        0x00000007,
                    }
                })
                CreateWordField (IRZ7, 0x05, INZ7)
                Store (0x00, Local0)
                If (LEqual (Arg0, 0x08))
                {
                    Store (0x10, Local0)
                }

                If (LEqual (Arg0, 0x01))
                {
                    Store (0x11, Local0)
                }

                If (LEqual (Arg0, 0x02))
                {
                    Store (0x12, Local0)
                }

                If (LEqual (Arg0, 0x0D))
                {
                    Store (0x13, Local0)
                }

                Store (Local0, INZ7)
                Return (IRZ7)
            }

            Method (SRSE, 1, Serialized)
            {
                CreateWordField (Arg0, 0x05, IRZ8)
                Store (0x00, Local0)
                If (LEqual (IRZ8, 0x10))
                {
                    Store (0x08, Local0)
                }

                If (LEqual (IRZ8, 0x11))
                {
                    Store (0x01, Local0)
                }

                If (LEqual (IRZ8, 0x12))
                {
                    Store (0x02, Local0)
                }

                If (LEqual (IRZ8, 0x13))
                {
                    Store (0x0D, Local0)
                }

                Return (Local0)
            }

            Device (LNK1)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x01)
                Method (_STA, 0, NotSerialized)
                {
                    If (INTW)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, INTW)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFE)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (INTW))
                    }
                    Else
                    {
                        Return (CRSE (INTW))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), INTW)
                    }
                    Else
                    {
                        Store (SRSE (Arg0), INTW)
                    }
                }
            }

            Device (LNK2)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x02)
                Method (_STA, 0, NotSerialized)
                {
                    If (INTX)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, INTX)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFE)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (INTX))
                    }
                    Else
                    {
                        Return (CRSE (INTX))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), INTX)
                    }
                    Else
                    {
                        Store (SRSE (Arg0), INTX)
                    }
                }
            }

            Device (LNK3)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x03)
                Method (_STA, 0, NotSerialized)
                {
                    If (INTY)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, INTY)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFF)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (INTY))
                    }
                    Else
                    {
                        Return (CRSE (INTY))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), INTY)
                    }
                    Else
                    {
                        Store (SRSE (Arg0), INTY)
                    }
                }
            }

            Device (LNK4)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x04)
                Method (_STA, 0, NotSerialized)
                {
                    If (INTZ)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, INTZ)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFE)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (INTZ))
                    }
                    Else
                    {
                        Return (CRSE (INTZ))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), INTZ)
                    }
                    Else
                    {
                        Store (SRSE (Arg0), INTZ)
                    }
                }
            }

            Device (LNK5)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x05)
                Method (_STA, 0, NotSerialized)
                {
                    If (INTE)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, INTE)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFE)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (INTE))
                    }
                    Else
                    {
                        Return (CRSE (INTE))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), INTE)
                    }
                    Else
                    {
                        Store (SRSE (Arg0), INTE)
                    }
                }
            }

            Device (LSMB)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x06)
                Method (_STA, 0, NotSerialized)
                {
                    If (ISMB)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, ISMB)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFI)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (ISMB))
                    }
                    Else
                    {
                        Return (CRSI (ISMB))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), ISMB)
                    }
                    Else
                    {
                        Store (SRSI (Arg0), ISMB)
                    }
                }
            }

            Device (LUS0)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x07)
                Method (_STA, 0, NotSerialized)
                {
                    If (IUS0)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, IUS0)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFI)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (IUS0))
                    }
                    Else
                    {
                        Return (CRSI (IUS0))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), IUS0)
                    }
                    Else
                    {
                        Store (SRSI (Arg0), IUS0)
                    }
                }
            }

            Device (LUS1)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x08)
                Method (_STA, 0, NotSerialized)
                {
                    If (IUS1)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, IUS1)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFI)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (IUS1))
                    }
                    Else
                    {
                        Return (CRSI (IUS1))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), IUS1)
                    }
                    Else
                    {
                        Store (SRSI (Arg0), IUS1)
                    }
                }
            }

            Device (LUS2)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x09)
                Method (_STA, 0, NotSerialized)
                {
                    If (IUS2)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, IUS2)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFI)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (IUS2))
                    }
                    Else
                    {
                        Return (CRSI (IUS2))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), IUS2)
                    }
                    Else
                    {
                        Store (SRSI (Arg0), IUS2)
                    }
                }
            }

            Device (LMAC)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x0A)
                Method (_STA, 0, NotSerialized)
                {
                    If (IMAC)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, IMAC)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFI)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (IMAC))
                    }
                    Else
                    {
                        Return (CRSI (IMAC))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), IMAC)
                    }
                    Else
                    {
                        Store (SRSI (Arg0), IMAC)
                    }
                }
            }

            Device (LACI)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x0B)
                Method (_STA, 0, NotSerialized)
                {
                    If (IACI)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, IACI)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFI)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (IACI))
                    }
                    Else
                    {
                        Return (CRSI (IACI))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), IACI)
                    }
                    Else
                    {
                        Store (SRSI (Arg0), IACI)
                    }
                }
            }

            Device (LMCI)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x0C)
                Method (_STA, 0, NotSerialized)
                {
                    If (IMCI)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, IMCI)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFI)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (IMCI))
                    }
                    Else
                    {
                        Return (CRSI (IMCI))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), IMCI)
                    }
                    Else
                    {
                        Store (SRSI (Arg0), IMCI)
                    }
                }
            }

            Device (LPID)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x0D)
                Method (_STA, 0, NotSerialized)
                {
                    If (IPID)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, IPID)
                    Store (0x00, ISID)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFI)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (IPID))
                    }
                    Else
                    {
                        Return (CRSI (IPID))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), IPID)
                        Store (SRS (Arg0), ISID)
                    }
                    Else
                    {
                        Store (SRSI (Arg0), IPID)
                        Store (SRSI (Arg0), ISID)
                    }
                }
            }

            Device (LTID)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, 0x0E)
                Method (_STA, 0, NotSerialized)
                {
                    If (ITID)
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (0x09)
                    }
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Store (0x00, ITID)
                }

                Method (_PRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (BUFA)
                    }
                    Else
                    {
                        Return (BUFI)
                    }
                }

                Method (_CRS, 0, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Return (CRS (ITID))
                    }
                    Else
                    {
                        Return (CRSI (ITID))
                    }
                }

                Method (_SRS, 1, NotSerialized)
                {
                    If (LNot (PICF))
                    {
                        Store (SRS (Arg0), ITID)
                    }
                    Else
                    {
                        Store (SRSI (Arg0), ITID)
                    }
                }
            }
        }
    }

    Scope (_TZ)
    {
        Name (DTMP, 0x0CA0)
        Name (DAC0, 0x0CD2)
        Name (DPSV, 0x0E1C)
        Name (TBSE, 0x0AAC)
        ThermalZone (THRM)
        {
            Method (_CRT, 0, NotSerialized)
            {
                If (LEqual (\_SB.PCI0.LPC0.EC0.ECOK, 0x01))
                {
                    Multiply (\_SB.PCI0.LPC0.EC0.RFRD, 0x0A, Local0)
                    Add (Local0, 0x0AAC, Local0)
                    Return (Local0)
                }

                Return (0x0DE0)
            }

            Method (_TMP, 0, NotSerialized)
            {
                If (OSSD)
                {
                    Store (0x00, OSSD)
                    Store (0x0BB8, Local0)
                    If (\_SB.PCI0.LPC0.EC0.ECOK)
                    {
                        Multiply (\_SB.PCI0.LPC0.EC0.CTMP, 0x0A, Local0)
                        Add (Local0, 0x0AAC, Local0)
                    }

                    Return (Local0)
                }
                Else
                {
                    If (\_SB.PCI0.LPC0.EC0.ECOK)
                    {
                        If (\_SB.PCI0.LPC0.EC0.TST4)
                        {
                            Return (Add (Multiply (\_SB.PCI0.LPC0.EC0.TST4, 0x0A), TBSE))
                        }
                        Else
                        {
                            Return (DTMP)
                        }
                    }
                    Else
                    {
                        Return (DTMP)
                    }
                }
            }

            Method (_AC0, 0, NotSerialized)
            {
                Return (DAC0)
            }

            Method (_PSV, 0, NotSerialized)
            {
                Return (DPSV)
            }

            Name (_PSL, Package (0x01)
            {
                \_PR.CPU0
            })
            Name (_TC1, 0x02)
            Name (_TC2, 0x05)
            Name (_TSP, 0x32)
        }
    }

    OperationRegion (DBGP, SystemIO, 0x1080, 0x01)
    Field (DBGP, ByteAcc, NoLock, Preserve)
    {
        DBUG,   8
    }

    Name (FWSO, "FWSO")
}


--Boundary-00=_wLa7Aa3t1mLIRsx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407081539.28959.jkim>