summaryrefslogtreecommitdiff
path: root/src/mainboard/via/epia-m/dsdt.asl
blob: 2fcb77ed3afd6d5e14647bf0bfa5d16ca653b88c (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
/*
 * Minimalist ACPI DSDT table for EPIA-M / MII
 * (C) Copyright 2004 Nick Barker <Nick.Barker9@btinternet.com>
 *
 * 
 */

DefinitionBlock ("DSDT.aml", "DSDT", 1, "LXBIOS", "LXB-DSDT", 1)
{
	/*  
	 * Define the main processor
	 */
	Scope (\_PR)
	{
		Processor (\_PR.CPU0, 0x00, 0x00000410, 0x06) {}
	}

	/* For now only define 2 power states:
	 *  - S0 which is fully on
	 *  - S5 which is soft off
	 * any others would involve declaring the wake up methods
	 */
	Name (\_S0, Package () {0x00, 0x00, 0x00, 0x00 })
	Name (\_S5, Package () {0x02, 0x02, 0x00, 0x00 })

	/* Root of the bus hierarchy */
	Scope (\_SB)
    	{
		/* Define how interrupt Link A is plumbed in */ 
		Device (LNKA)
		{
			Name (_HID, EisaId ("PNP0C0F"))
			Name (_UID, 0x01)
			/* Status - always return ready */
			Method (_STA, 0, NotSerialized)
			{
				Return (0x0B)
 			}
			/* Current Resources - return irq set up in BIOS */  
			Method (_CRS, 0, NotSerialized)
			{
				Name (BUFF, ResourceTemplate ()
				{
					IRQ (Level, ActiveLow, Shared) {5}
				})
				Return (BUFF)
                	}
			/* Possible Resources - return the range of irqs
 			 * we are using for PCI - only here to keep Linux ACPI
			 * happy 
			 */
			Method (_PRS, 0, NotSerialized)
			{
				Name (BUFF, ResourceTemplate ()
                    		{
					IRQ (Level, ActiveLow, Shared) {5,9,10}
                    		})
                    		Return (BUFF)
                	}
			/* Set Resources - dummy function to keep Linux ACPI happy
                         * Linux is more than happy not to tinker with irq
			 * assignments as long as the CRS and STA functions 
			 * return good values
			 */
			Method (_SRS, 1, NotSerialized ) {}
			/* Disable - dummy function to keep Linux ACPI happy */
			Method (_DIS, 0, NotSerialized ) {}
 
		} // End of LNKA 

		/* Define how interrupt Link B is plumbed in */ 
		Device (LNKB)
		{
			Name (_HID, EisaId ("PNP0C0F"))
			Name (_UID, 0x02)
			/* Status - always return ready */
			Method (_STA, 0, NotSerialized)
			{
				Return (0x0B)
 			}
			/* Current Resources - return irq set up in BIOS */  
			Method (_CRS, 0, NotSerialized)
			{
				Name (BUFF, ResourceTemplate ()
				{
					IRQ (Level, ActiveLow, Shared) {9}
				})
				Return (BUFF)
                	}
			/* Possible Resources - return the range of irqs
			 * we are using for PCI - only here to keep Linux ACPI
			 * happy 
			 */
			Method (_PRS, 0, NotSerialized)
			{
				Name (BUFF, ResourceTemplate ()
                    		{
					IRQ (Level, ActiveLow, Shared) {5,9,10}
                    		})
                    		Return (BUFF)
                	}
			/* Set Resources - dummy function to keep Linux ACPI happy
                         * Linux is more than happy not to tinker with irq
			 * assignments as long as the CRS and STA functions 
			 * return good values
			 */
			Method (_SRS, 1, NotSerialized ) {}
			/* Disable - dummy function to keep Linux ACPI happy */
			Method (_DIS, 0, NotSerialized ) {}
 
		} // End of LNKB

		/* Define how interrupt Link C is plumbed in */ 
		Device (LNKC)
		{
			Name (_HID, EisaId ("PNP0C0F"))
			Name (_UID, 0x03)
			/* Status - always return ready */
			Method (_STA, 0, NotSerialized)
			{
				Return (0x0B)
 			}
			/* Current Resources - return irq set up in BIOS */  
			Method (_CRS, 0, NotSerialized)
			{
				Name (BUFF, ResourceTemplate ()
				{
					IRQ (Level, ActiveLow, Shared) {9}
				})
				Return (BUFF)
                	}
			/* Possible Resources - return the range of irqs
			 * we are using for PCI - only here to keep Linux ACPI
			 * happy 
			 */
			Method (_PRS, 0, NotSerialized)
			{
				Name (BUFF, ResourceTemplate ()
                    		{
					IRQ (Level, ActiveLow, Shared) {5,9,10}
                    		})
                    		Return (BUFF)
                	}
			/* Set Resources - dummy function to keep Linux ACPI happy
                         * Linux is more than happy not to tinker with irq
			 * assignments as long as the CRS and STA functions 
			 * return good values
			 */
			Method (_SRS, 1, NotSerialized ) {}
			/* Disable - dummy function to keep Linux ACPI happy */
			Method (_DIS, 0, NotSerialized ) {}
 
		} // End of LNKC

		/* Define how interrupt Link D is plumbed in */ 
		Device (LNKD)
		{
			Name (_HID, EisaId ("PNP0C0F"))
			Name (_UID, 0x04)
			/* Status - always return ready */
			Method (_STA, 0, NotSerialized)
			{
				Return (0x0B)
 			}
			/* Current Resources - return irq set up in BIOS */  
			Method (_CRS, 0, NotSerialized)
			{
				Name (BUFF, ResourceTemplate ()
				{
					IRQ (Level, ActiveLow, Shared) {5}
				})
				Return (BUFF)
                	}
			/* Possible Resources - return the range of irqs
			 * we are using for PCI - only here to keep Linux ACPI
			 * happy 
			 */
			Method (_PRS, 0, NotSerialized)
			{
				Name (BUFF, ResourceTemplate ()
                    		{
					IRQ (Level, ActiveLow, Shared) {5,9,10}
                    		})
                    		Return (BUFF)
                	}
			/* Set Resources - dummy function to keep Linux ACPI happy
                         * Linux is more than happy not to tinker with irq
			 * assignments as long as the CRS and STA functions 
			 * return good values
			 */
			Method (_SRS, 1, NotSerialized ) {}
			/* Disable - dummy function to keep Linux ACPI happy */
			Method (_DIS, 0, NotSerialized ) {}
 
		} // End of LNKD 

 
		/* top PCI device */
		Device (PCI0)
		{
			Name (_HID, EisaId ("PNP0A03"))
			Name (_ADR, 0x00)
			Name (_UID, 0x00)
			Name (_BBN, 0x00)

			/* PCI Routing Table */
			Name (_PRT, Package () {
				Package () {0x000AFFFF, 0x00, LNKD, 0x00}, // Cardbus Link D
				Package () {0x000AFFFF, 0x01, LNKA, 0x00}, // Cardbus Link A 
				Package () {0x000AFFFF, 0x02, LNKB, 0x00}, // Cardbus Link B
				Package () {0x000AFFFF, 0x03, LNKC, 0x00}, // Cardbus Link C

				Package () {0x000DFFFF, 0x00, LNKB, 0x00}, // Firewire Link B
				Package () {0x000DFFFF, 0x01, LNKC, 0x00}, // Firewire Link C
				Package () {0x000DFFFF, 0x02, LNKD, 0x00}, // Firewire Linc D
				Package () {0x000DFFFF, 0x03, LNKA, 0x00}, // Firewire Link A

				Package () {0x0010FFFF, 0x00, LNKA, 0x00}, // USB Link A
				Package () {0x0010FFFF, 0x01, LNKB, 0x00}, // USB Link B
				Package () {0x0010FFFF, 0x02, LNKC, 0x00}, // USB Link C
				Package () {0x0010FFFF, 0x03, LNKD, 0x00}, // USB Link D

				Package () {0x0011FFFF, 0x00, LNKA, 0x00}, // vt8623 Link A
				Package () {0x0011FFFF, 0x01, LNKB, 0x00}, // vt8623 Link B
				Package () {0x0011FFFF, 0x02, LNKC, 0x00}, // vt8623 Link C
				Package () {0x0011FFFF, 0x03, LNKD, 0x00}, // vt8623 Link D

				Package () {0x0012FFFF, 0x00, LNKA, 0x00}, // LAN Link A 
				Package () {0x0012FFFF, 0x01, LNKB, 0x00}, // LAN Link B
				Package () {0x0012FFFF, 0x02, LNKC, 0x00}, // LAN Link C
				Package () {0x0012FFFF, 0x03, LNKD, 0x00}, // LAN Link D

				Package () {0x0013FFFF, 0x00, LNKA, 0x00}, // Riser slot LinkA 
				Package () {0x0013FFFF, 0x01, LNKB, 0x00}, // Riser slot LinkB
				Package () {0x0013FFFF, 0x02, LNKC, 0x00}, // Riser slot LinkC
				Package () {0x0013FFFF, 0x03, LNKD, 0x00}, // Riser slot LinkD

				Package () {0x0014FFFF, 0x00, LNKB, 0x00}, // Slot 1, Link B
				Package () {0x0014FFFF, 0x01, LNKC, 0x00}, // Slot 1, Link C
				Package () {0x0014FFFF, 0x02, LNKD, 0x00}, // Slot 1, Link D
				Package () {0x0014FFFF, 0x03, LNKA, 0x00}, // Slot 1, Link A
                
				Package () {0x0001FFFF, 0x00, LNKA, 0x00}, // VGA Link A
				Package () {0x0001FFFF, 0x01, LNKB, 0x00}, // VGA Link B
				Package () {0x0001FFFF, 0x02, LNKC, 0x00}, // VGA Link C
				Package () {0x0001FFFF, 0x03, LNKD, 0x00} // VGA Link D

            		})


		} // End of PCI0

	} // End of _SB

} // End of Definition Block