blob: a86594bf9f367fce8a915a74469e133daea3abdd [file] [log] [blame]
Yinghai Lud4b278c2006-10-04 20:46:15 +00001/*
2 * Copyright 2005 AMD
3 */
4DefinitionBlock ("SSDT2.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
Yinghai Lu5f9624d2006-10-04 22:56:21 +000026 Device (PCIX)
Yinghai Lud4b278c2006-10-04 20:46:15 +000027 {
28
29 // BUS ? Second HT Chain
Yinghai Lu5f9624d2006-10-04 22:56:21 +000030 Name (HCIN, 0xcc) // HC2 0x01
Stefan Reinauer14e22772010-04-27 06:56:47 +000031
Yinghai Lu5f9624d2006-10-04 22:56:21 +000032 Name (_UID, 0xdd) // HC 0x03
Yinghai Lud4b278c2006-10-04 20:46:15 +000033
Stefan Reinauer14e22772010-04-27 06:56:47 +000034 Name (_HID, "PNP0A03")
Yinghai Lud4b278c2006-10-04 20:46:15 +000035
36 Method (_ADR, 0, NotSerialized) //Fake bus should be 0
37 {
Yinghai Lu5f9624d2006-10-04 22:56:21 +000038 Return (DADD(GHCN(HCIN), 0x00000000))
Yinghai Lud4b278c2006-10-04 20:46:15 +000039 }
Stefan Reinauer14e22772010-04-27 06:56:47 +000040
Yinghai Lud4b278c2006-10-04 20:46:15 +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 Lud4b278c2006-10-04 20:46:15 +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/pci2_hc.asl"
Yinghai Lud4b278c2006-10-04 20:46:15 +000064 }
65 }
66
67}