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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
|
/**************************************************************************;
;* *;
;* *;
;* Intel Corporation - ACPI Reference Code for the Sandy Bridge *;
;* Family of Customer Reference Boards. *;
;* *;
;* *;
;* Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved *;
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;* *;
;* *;
;**************************************************************************/
Scope(\_SB)
{
//RTC
Device(RTC) // RTC
{
Name(_HID,EISAID("PNP0B00"))
Name(_CRS,ResourceTemplate()
{
IO(Decode16,0x70,0x70,0x01,0x08)
})
Method(_STA,0,Serialized) {
//
// Report RTC Battery is Prensent or Not Present.
//
If (LEqual(BATT, 1)) {
Return (0xF)
}
Return (0x0)
}
}
//RTC
Device(HPET) // High Performance Event Timer
{
Name (_HID, EisaId ("PNP0103"))
Name (_UID, 0x00)
Method (_STA, 0, NotSerialized)
{
Return (0x0F)
}
Method (_CRS, 0, Serialized)
{
Name (RBUF, ResourceTemplate ()
{
Memory32Fixed (ReadWrite,
0xFED00000, // Address Base
0x00000400, // Address Length
)
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
{
0x00000008, //0xB HPET-2
}
})
Return (RBUF)
}
}
//HPET
Name(PR00, Package()
{
// SD Host #0 - eMMC
Package() {0x0010FFFF, 0, LNKA, 0 },
// SD Host #1 - SDIO
Package() {0x0011FFFF, 0, LNKB, 0 },
// SD Host #2 - SD Card
Package() {0x0012FFFF, 0, LNKC, 0 },
// SATA Controller
Package() {0x0013FFFF, 0, LNKD, 0 },
// xHCI Host
Package() {0x0014FFFF, 0, LNKE, 0 },
// Low Power Audio Engine
Package() {0x0015FFFF, 0, LNKF, 0 },
// USB OTG
Package() {0x0016FFFF, 0, LNKG, 0 },
// MIPI-HSI/eMMC4.5
Package() {0x0017FFFF, 0, LNKH, 0 },
// LPSS2 DMA
// LPSS2 I2C #4
Package() {0x0018FFFF, 0, LNKB, 0 },
// LPSS2 I2C #1
// LPSS2 I2C #5
Package() {0x0018FFFF, 2, LNKD, 0 },
// LPSS2 I2C #2
// LPSS2 I2C #6
Package() {0x0018FFFF, 3, LNKC, 0 },
// LPSS2 I2C #3
// LPSS2 I2C #7
Package() {0x0018FFFF, 1, LNKA, 0 },
// SeC
Package() {0x001AFFFF, 0, LNKF, 0 },
//
// High Definition Audio Controller
Package() {0x001BFFFF, 0, LNKG, 0 },
//
// EHCI Controller
Package() {0x001DFFFF, 0, LNKH, 0 },
// LPSS DMA
Package() {0x001EFFFF, 0, LNKD, 0 },
// LPSS I2C #0
Package() {0x001EFFFF, 3, LNKA, 0 },
// LPSS I2C #1
Package() {0x001EFFFF, 1, LNKB, 0 },
// LPSS PCM
Package() {0x001EFFFF, 2, LNKC, 0 },
// LPSS I2S
// LPSS HS-UART #0
// LPSS HS-UART #1
// LPSS SPI
// LPC Bridge
//
// SMBus Controller
Package() {0x001FFFFF, 1, LNKC, 0 },
//
// PCIE Root Port #1
Package() {0x001CFFFF, 0, LNKA, 0 },
// PCIE Root Port #2
Package() {0x001CFFFF, 1, LNKB, 0 },
// PCIE Root Port #3
Package() {0x001CFFFF, 2, LNKC, 0 },
// PCIE Root Port #4
Package() {0x001CFFFF, 3, LNKD, 0 },
// Host Bridge
// Mobile IGFX
Package() {0x0002FFFF, 0, LNKA, 0 },
})
Name(AR00, Package()
{
// SD Host #0 - eMMC
Package() {0x0010FFFF, 0, 0, 16 },
// SD Host #1 - SDIO
Package() {0x0011FFFF, 0, 0, 17 },
// SD Host #2 - SD Card
Package() {0x0012FFFF, 0, 0, 18 },
// SATA Controller
Package() {0x0013FFFF, 0, 0, 19 },
// xHCI Host
Package() {0x0014FFFF, 0, 0, 20 },
// Low Power Audio Engine
Package() {0x0015FFFF, 0, 0, 21 },
// USB OTG
Package() {0x0016FFFF, 0, 0, 22 },
//
// MIPI-HSI
Package() {0x0017FFFF, 0, 0, 23 },
//
// LPSS2 DMA
// LPSS2 I2C #4
Package() {0x0018FFFF, 0, 0, 17 },
// LPSS2 I2C #1
// LPSS2 I2C #5
Package() {0x0018FFFF, 2, 0, 19 },
// LPSS2 I2C #2
// LPSS2 I2C #6
Package() {0x0018FFFF, 3, 0, 18 },
// LPSS2 I2C #3
// LPSS2 I2C #7
Package() {0x0018FFFF, 1, 0, 16 },
// SeC
Package() {0x001AFFFF, 0, 0, 21 },
//
// High Definition Audio Controller
Package() {0x001BFFFF, 0, 0, 22 },
//
// EHCI Controller
Package() {0x001DFFFF, 0, 0, 23 },
// LPSS DMA
Package() {0x001EFFFF, 0, 0, 19 },
// LPSS I2C #0
Package() {0x001EFFFF, 3, 0, 16 },
// LPSS I2C #1
Package() {0x001EFFFF, 1, 0, 17 },
// LPSS PCM
Package() {0x001EFFFF, 2, 0, 18 },
// LPSS I2S
// LPSS HS-UART #0
// LPSS HS-UART #1
// LPSS SPI
// LPC Bridge
//
// SMBus Controller
Package() {0x001FFFFF, 1, 0, 18 },
//
// PCIE Root Port #1
Package() {0x001CFFFF, 0, 0, 16 },
// PCIE Root Port #2
Package() {0x001CFFFF, 1, 0, 17 },
// PCIE Root Port #3
Package() {0x001CFFFF, 2, 0, 18 },
// PCIE Root Port #4
Package() {0x001CFFFF, 3, 0, 19 },
// Host Bridge
// Mobile IGFX
Package() {0x0002FFFF, 0, 0, 16 },
})
Name(PR04, Package()
{
// PCIE Port #1 Slot
Package() {0x0000FFFF, 0, LNKA, 0 },
Package() {0x0000FFFF, 1, LNKB, 0 },
Package() {0x0000FFFF, 2, LNKC, 0 },
Package() {0x0000FFFF, 3, LNKD, 0 },
})
Name(AR04, Package()
{
// PCIE Port #1 Slot
Package() {0x0000FFFF, 0, 0, 16 },
Package() {0x0000FFFF, 1, 0, 17 },
Package() {0x0000FFFF, 2, 0, 18 },
Package() {0x0000FFFF, 3, 0, 19 },
})
Name(PR05, Package()
{
// PCIE Port #2 Slot
Package() {0x0000FFFF, 0, LNKB, 0 },
Package() {0x0000FFFF, 1, LNKC, 0 },
Package() {0x0000FFFF, 2, LNKD, 0 },
Package() {0x0000FFFF, 3, LNKA, 0 },
})
Name(AR05, Package()
{
// PCIE Port #2 Slot
Package() {0x0000FFFF, 0, 0, 17 },
Package() {0x0000FFFF, 1, 0, 18 },
Package() {0x0000FFFF, 2, 0, 19 },
Package() {0x0000FFFF, 3, 0, 16 },
})
Name(PR06, Package()
{
// PCIE Port #3 Slot
Package() {0x0000FFFF, 0, LNKC, 0 },
Package() {0x0000FFFF, 1, LNKD, 0 },
Package() {0x0000FFFF, 2, LNKA, 0 },
Package() {0x0000FFFF, 3, LNKB, 0 },
})
Name(AR06, Package()
{
// PCIE Port #3 Slot
Package() {0x0000FFFF, 0, 0, 18 },
Package() {0x0000FFFF, 1, 0, 19 },
Package() {0x0000FFFF, 2, 0, 16 },
Package() {0x0000FFFF, 3, 0, 17 },
})
Name(PR07, Package()
{
// PCIE Port #4 Slot
Package() {0x0000FFFF, 0, LNKD, 0 },
Package() {0x0000FFFF, 1, LNKA, 0 },
Package() {0x0000FFFF, 2, LNKB, 0 },
Package() {0x0000FFFF, 3, LNKC, 0 },
})
Name(AR07, Package()
{
// PCIE Port #4 Slot
Package() {0x0000FFFF, 0, 0, 19 },
Package() {0x0000FFFF, 1, 0, 16 },
Package() {0x0000FFFF, 2, 0, 17 },
Package() {0x0000FFFF, 3, 0, 18 },
})
Name(PR01, Package()
{
// PCI slot 1
Package() {0x0000FFFF, 0, LNKF, 0 },
Package() {0x0000FFFF, 1, LNKG, 0 },
Package() {0x0000FFFF, 2, LNKH, 0 },
Package() {0x0000FFFF, 3, LNKE, 0 },
// PCI slot 2
Package() {0x0001FFFF, 0, LNKG, 0 },
Package() {0x0001FFFF, 1, LNKF, 0 },
Package() {0x0001FFFF, 2, LNKE, 0 },
Package() {0x0001FFFF, 3, LNKH, 0 },
// PCI slot 3
Package() {0x0002FFFF, 0, LNKC, 0 },
Package() {0x0002FFFF, 1, LNKD, 0 },
Package() {0x0002FFFF, 2, LNKB, 0 },
Package() {0x0002FFFF, 3, LNKA, 0 },
// PCI slot 4
Package() {0x0003FFFF, 0, LNKD, 0 },
Package() {0x0003FFFF, 1, LNKC, 0 },
Package() {0x0003FFFF, 2, LNKF, 0 },
Package() {0x0003FFFF, 3, LNKG, 0 },
})
Name(AR01, Package()
{
// PCI slot 1
Package() {0x0000FFFF, 0, 0, 21 },
Package() {0x0000FFFF, 1, 0, 22 },
Package() {0x0000FFFF, 2, 0, 23 },
Package() {0x0000FFFF, 3, 0, 20 },
// PCI slot 2
Package() {0x0001FFFF, 0, 0, 22 },
Package() {0x0001FFFF, 1, 0, 21 },
Package() {0x0001FFFF, 2, 0, 20 },
Package() {0x0001FFFF, 3, 0, 23 },
// PCI slot 3
Package() {0x0002FFFF, 0, 0, 18 },
Package() {0x0002FFFF, 1, 0, 19 },
Package() {0x0002FFFF, 2, 0, 17 },
Package() {0x0002FFFF, 3, 0, 16 },
// PCI slot 4
Package() {0x0003FFFF, 0, 0, 19 },
Package() {0x0003FFFF, 1, 0, 18 },
Package() {0x0003FFFF, 2, 0, 21 },
Package() {0x0003FFFF, 3, 0, 22 },
})
//---------------------------------------------------------------------------
// List of IRQ resource buffers compatible with _PRS return format.
//---------------------------------------------------------------------------
// Naming legend:
// RSxy, PRSy - name of the IRQ resource buffer to be returned by _PRS, "xy" - last two characters of IRQ Link name.
// Note. PRSy name is generated if IRQ Link name starts from "LNK".
// HLxy , LLxy - reference names, can be used to access bit mask of available IRQs. HL and LL stand for active High(Low) Level triggered Irq model.
//---------------------------------------------------------------------------
Name(PRSA, ResourceTemplate() // Link name: LNKA
{
IRQ(Level, ActiveLow, Shared, LLKA) {3,4,5,6,10,11,12,14,15}
})
Alias(PRSA,PRSB) // Link name: LNKB
Alias(PRSA,PRSC) // Link name: LNKC
Alias(PRSA,PRSD) // Link name: LNKD
Alias(PRSA,PRSE) // Link name: LNKE
Alias(PRSA,PRSF) // Link name: LNKF
Alias(PRSA,PRSG) // Link name: LNKG
Alias(PRSA,PRSH) // Link name: LNKH
//---------------------------------------------------------------------------
// Begin PCI tree object scope
//---------------------------------------------------------------------------
Device(PCI0) // PCI Bridge "Host Bridge"
{
Name(_HID, EISAID("PNP0A08")) // Indicates PCI Express/PCI-X Mode2 host hierarchy
Name(_CID, EISAID("PNP0A03")) // To support legacy OS that doesn't understand the new HID
Name(_ADR, 0x00000000)
Method(^BN00, 0) { return(0x0000) } // Returns default Bus number for Peer PCI busses. Name can be overriden with control method placed directly under Device scope
Method(_BBN, 0) { return(BN00()) } // Bus number, optional for the Root PCI Bus
Name(_UID, 0x0000) // Unique Bus ID, optional
Name(_DEP, Package(0x1)
{
PEPD
})
Method(_PRT,0)
{
If(PICM) {Return(AR00)} // APIC mode
Return (PR00) // PIC Mode
} // end _PRT
include("HOST_BUS.ASL")
Device(LPCB) // LPC Bridge
{
Name(_ADR, 0x001F0000)
include("LpcB.asl")
} // end "LPC Bridge"
} // end PCI0 Bridge "Host Bridge"
} // end _SB scope
|