blob: 37886a9f99e4575bf4566a4284fe52bc6cb76839 [file] [log] [blame]
Yinghai Lua5fc22f2006-12-20 20:21:05 +00001/*
2 * Copyright 2005 AMD
3 */
4DefinitionBlock ("SSDT5.aml", "SSDT", 1, "AMD-K8", "AMDACPI", 100925440)
5{
6 Scope (_SB)
7 {
8 External (DADD, MethodObj)
9 External (GHCE, MethodObj)
10 External (GHCN, MethodObj)
11 External (GHCL, MethodObj)
12 External (GHCD, MethodObj)
13 External (GNUS, MethodObj)
14 External (GIOR, MethodObj)
15 External (GMEM, MethodObj)
16 External (GWBN, MethodObj)
17 External (GBUS, MethodObj)
18
19 External (PICF)
20
21 External (\_SB.PCI0.LNKA, DeviceObj)
22 External (\_SB.PCI0.LNKB, DeviceObj)
23 External (\_SB.PCI0.LNKC, DeviceObj)
24 External (\_SB.PCI0.LNKD, DeviceObj)
25
26 Device (PCIX)
27 {
28
29 // BUS ? Second HT Chain
30 Name (HCIN, 0xcc) // HC2 0x01
Stefan Reinauer14e22772010-04-27 06:56:47 +000031
Yinghai Lua5fc22f2006-12-20 20:21:05 +000032 Name (_UID, 0xdd) // HC 0x03
33
Stefan Reinauer14e22772010-04-27 06:56:47 +000034 Name (_HID, "PNP0A03")
Yinghai Lua5fc22f2006-12-20 20:21:05 +000035
36 Method (_ADR, 0, NotSerialized) //Fake bus should be 0
37 {
38 Return (DADD(GHCN(HCIN), 0x00000000))
39 }
Stefan Reinauer14e22772010-04-27 06:56:47 +000040
Yinghai Lua5fc22f2006-12-20 20:21:05 +000041 Method (_BBN, 0, NotSerialized)
42 {
43 Return (GBUS (GHCN(HCIN), GHCL(HCIN)))
44 }
45
46 Method (_STA, 0, NotSerialized)
47 {
Stefan Reinauer14e22772010-04-27 06:56:47 +000048 Return (\_SB.GHCE(HCIN))
Yinghai Lua5fc22f2006-12-20 20:21:05 +000049 }
50
51 Method (_CRS, 0, NotSerialized)
52 {
53 Name (BUF0, ResourceTemplate () { })
54 Store( GHCN(HCIN), Local4)
55 Store( GHCL(HCIN), Local5)
56
57 Concatenate (\_SB.GIOR (Local4, Local5), BUF0, Local1)
58 Concatenate (\_SB.GMEM (Local4, Local5), Local1, Local2)
59 Concatenate (\_SB.GWBN (Local4, Local5), Local2, Local3)
60 Return (Local3)
61 }
62
Patrick Georgiaf97d332010-02-08 15:46:37 +000063 #include "acpi/pci5_hc.asl"
Yinghai Lua5fc22f2006-12-20 20:21:05 +000064 }
65 }
66
67}