]> git.proxmox.com Git - mirror_qemu.git/blame - hw/i386/acpi-dsdt-hpet.dsl
mmap-alloc: tweak a comment on ppc64
[mirror_qemu.git] / hw / i386 / acpi-dsdt-hpet.dsl
CommitLineData
74523b85
MT
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11
12 * You should have received a copy of the GNU General Public License along
13 * with this program; if not, see <http://www.gnu.org/licenses/>.
14 */
15
16/****************************************************************
17 * HPET
18 ****************************************************************/
19
20Scope(\_SB) {
21 Device(HPET) {
22 Name(_HID, EISAID("PNP0103"))
23 Name(_UID, 0)
24 OperationRegion(HPTM, SystemMemory, 0xFED00000, 0x400)
25 Field(HPTM, DWordAcc, Lock, Preserve) {
26 VEND, 32,
27 PRD, 32,
28 }
29 Method(_STA, 0, NotSerialized) {
30 Store(VEND, Local0)
31 Store(PRD, Local1)
32 ShiftRight(Local0, 16, Local0)
33 If (LOr(LEqual(Local0, 0), LEqual(Local0, 0xffff))) {
34 Return (0x0)
35 }
36 If (LOr(LEqual(Local1, 0), LGreater(Local1, 100000000))) {
37 Return (0x0)
38 }
39 Return (0x0F)
40 }
41 Name(_CRS, ResourceTemplate() {
74523b85
MT
42 Memory32Fixed(ReadOnly,
43 0xFED00000, // Address Base
44 0x00000400, // Address Length
45 )
46 })
47 }
48}