summaryrefslogtreecommitdiff
path: root/src/mainboard/hp/dl145_g1/acpi/amd8131.asl
blob: 29808aabd9ab4aa3f87a714c97c268c6aa150167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
 * Copyright 2005 AMD
 * Copyright (C) 2011,2014 Oskar Enoksson <enok@lysator.liu.se>
 */

Device (PG0A) {
/* 8131 pcix bridge 1 */
	Method (_ADR, 0, NotSerialized) {
		Return (DADD(GHCD(HCIN, 0), 0x00000000))
	}
	Method (_PRW, 0, NotSerialized) {
		//If (CondRefOf (\_S3)) {
		//	Return (Package (0x02) { 0x29, 0x03 })
		//} Else {
			Return (Package (0x02) { 0x29, 0x01 })
		//}
	}
	Name (APIC, Package (0x0c) {
	// Slot 3 - PIRQ BCDA ---- verified
		Package (0x04) { 0x0001FFFF, 0x00, 0x00, 0x19 }, //Slot 3
		Package (0x04) { 0x0001FFFF, 0x01, 0x00, 0x1A },
		Package (0x04) { 0x0001FFFF, 0x02, 0x00, 0x1B },
		Package (0x04) { 0x0001FFFF, 0x03, 0x00, 0x18 },
	// Slot 4 - PIRQ CDAB  ---- verified
		Package (0x04) { 0x0002FFFF, 0x00, 0x00, 0x1A }, //?
		Package (0x04) { 0x0002FFFF, 0x01, 0x00, 0x1B },
		Package (0x04) { 0x0002FFFF, 0x02, 0x00, 0x18 },
		Package (0x04) { 0x0002FFFF, 0x03, 0x00, 0x19 },
	// Onboard NIC 1  - PIRQ DABC
		Package (0x04) { 0x0003FFFF, 0x00, 0x00, 0x1B }, //?
		Package (0x04) { 0x0003FFFF, 0x01, 0x00, 0x18 },
		Package (0x04) { 0x0003FFFF, 0x02, 0x00, 0x19 },
		Package (0x04) { 0x0003FFFF, 0x03, 0x00, 0x1A },
	// NIC 2	- PIRQ ABCD -- verified
	//	Package (0x04) { 0x0004FFFF, 0x00, 0x00, 0x18 }, //?
	//	Package (0x04) { 0x0004FFFF, 0x01, 0x00, 0x19 },
	//	Package (0x04) { 0x0004FFFF, 0x02, 0x00, 0x1A },
	//	Package (0x04) { 0x0004FFFF, 0x03, 0x00, 0x1B },
	// SERIAL ATA     - PIRQ BCDA
	//	Package (0x04) { 0x0005FFFF, 0x00, 0x00, 0x19 }, //?
	//	Package (0x04) { 0x0005FFFF, 0x01, 0x00, 0x1A },
	//	Package (0x04) { 0x0005FFFF, 0x02, 0x00, 0x1B },
	//	Package (0x04) { 0x0005FFFF, 0x03, 0x00, 0x18 }
	})
	Name (PICM, Package (0x0c) {
		Package (0x04) { 0x0001FFFF, 0x00, \_SB.PCI0.LNKB, 0x00 },//Slot 3
		Package (0x04) { 0x0001FFFF, 0x01, \_SB.PCI0.LNKC, 0x00 },
		Package (0x04) { 0x0001FFFF, 0x02, \_SB.PCI0.LNKD, 0x00 },
		Package (0x04) { 0x0001FFFF, 0x03, \_SB.PCI0.LNKA, 0x00 },
		Package (0x04) { 0x0002FFFF, 0x00, \_SB.PCI0.LNKC, 0x00 },
		Package (0x04) { 0x0002FFFF, 0x01, \_SB.PCI0.LNKD, 0x00 },
		Package (0x04) { 0x0002FFFF, 0x02, \_SB.PCI0.LNKA, 0x00 },
		Package (0x04) { 0x0002FFFF, 0x03, \_SB.PCI0.LNKB, 0x00 },
		Package (0x04) { 0x0003FFFF, 0x00, \_SB.PCI0.LNKD, 0x00 },
		Package (0x04) { 0x0003FFFF, 0x01, \_SB.PCI0.LNKA, 0x00 },
		Package (0x04) { 0x0003FFFF, 0x02, \_SB.PCI0.LNKB, 0x00 },
		Package (0x04) { 0x0003FFFF, 0x03, \_SB.PCI0.LNKC, 0x00 },
	//	Package (0x04) { 0x0004FFFF, 0x00, \_SB.PCI0.LNKA, 0x00 },
	//	Package (0x04) { 0x0004FFFF, 0x01, \_SB.PCI0.LNKB, 0x00 },
	//	Package (0x04) { 0x0004FFFF, 0x02, \_SB.PCI0.LNKC, 0x00 },
	//	Package (0x04) { 0x0004FFFF, 0x03, \_SB.PCI0.LNKD, 0x00 },
	//	Package (0x04) { 0x0005FFFF, 0x00, \_SB.PCI0.LNKB, 0x00 },
	//	Package (0x04) { 0x0005FFFF, 0x01, \_SB.PCI0.LNKC, 0x00 },
	//	Package (0x04) { 0x0005FFFF, 0x02, \_SB.PCI0.LNKD, 0x00 },
	//	Package (0x04) { 0x0005FFFF, 0x03, \_SB.PCI0.LNKA, 0x00 }
	})
	Method (_PRT, 0, NotSerialized) {
		If (LNot (PICF)) { Return (PICM) }
		Else             { Return (APIC) }
	}
}
Device (PG0B) {
/* 8131 pcix bridge 2 */
	Method (_ADR, 0, NotSerialized) {
		Return (DADD(GHCD(HCIN, 0), 0x00010000))
	}
	Method (_PRW, 0, NotSerialized) {
		//If (CondRefOf (\_S3)) {
		//	Return (Package (0x02) { 0x22, 0x03 })
		//} Else {
			Return (Package (0x02) { 0x22, 0x01 })
		//}
	}
	Name (APIC, Package (0x04) {
	// Slot A - PIRQ CDAB -- verfied
		Package (0x04) { 0x0003FFFF, 0x00, 0x00, 0x1F },// Slot 2
		Package (0x04) { 0x0003FFFF, 0x01, 0x00, 0x1C },
		Package (0x04) { 0x0001FFFF, 0x00, 0x00, 0x1D },
		Package (0x04) { 0x0001FFFF, 0x01, 0x00, 0x1E }
	})
	Name (PICM, Package (0x04) {
		Package (0x04) { 0x0003FFFF, 0x00, \_SB.PCI0.LNKD, 0x00 },//Slot 2
		Package (0x04) { 0x0003FFFF, 0x01, \_SB.PCI0.LNKA, 0x00 },
		Package (0x04) { 0x0001FFFF, 0x00, \_SB.PCI0.LNKB, 0x00 },
		Package (0x04) { 0x0001FFFF, 0x01, \_SB.PCI0.LNKC, 0x00 }
	})
	Method (_PRT, 0, NotSerialized) {
		If (LNot (PICF)) { Return (PICM) }
		Else             { Return (APIC) }
	}
}