diff options
author | Paulo Alcantara <pcacjr@zytor.com> | 2015-05-25 17:40:13 -0300 |
---|---|---|
committer | Paulo Alcantara <pcacjr@zytor.com> | 2015-05-25 18:00:05 -0300 |
commit | 01d48238acbbc690deba7e09449dea707bfda8d1 (patch) | |
tree | ac7a78b2c5b3677ebd2eddfd5d9ded7586411944 | |
parent | b3e665d3ac488389efe0cd608fcc65dfe3ab2e9f (diff) | |
download | qemu-for-upstream.tar.gz qemu-for-upstream.tar.xz qemu-for-upstream.zip |
target-i386: add a device to ACPI DSDT for reserving RCRB mem spacefor-upstream
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r-- | hw/i386/acpi-dsdt-pdrc.dsl | 46 | ||||
-rw-r--r-- | hw/i386/q35-acpi-dsdt.dsl | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/hw/i386/acpi-dsdt-pdrc.dsl b/hw/i386/acpi-dsdt-pdrc.dsl new file mode 100644 index 000000000..badb41083 --- /dev/null +++ b/hw/i386/acpi-dsdt-pdrc.dsl @@ -0,0 +1,46 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License along + * with this program; if not, see <http://www.gnu.org/licenses/>. + */ + +/**************************************************************** + * PCI Device Resource Comsumption + ****************************************************************/ + +Scope(\_SB.PCI0) { + Device (PDRC) { + Name (_HID, EISAID("PNP0C02")) + Name (_UID, 1) + + Name (PDRS, ResourceTemplate() { + Memory32Fixed(ReadWrite, 0xfed1c000, 0x00004000) + }) + + Method (_CRS, 0, Serialized) { + Return(PDRS) + } + } +} + +Scope(\_SB) { + OperationRegion (RCRB, SystemMemory, 0xfed1c000, 0x4000) + Field (RCRB, DWordAcc, Lock, Preserve) { + Offset(0x3000), + TCTL, 8, + , 24, + Offset(0x3400), + RTCC, 32, + HPTC, 32, + GCSR, 32, + } +} diff --git a/hw/i386/q35-acpi-dsdt.dsl b/hw/i386/q35-acpi-dsdt.dsl index 16eaca3fa..32b680ead 100644 --- a/hw/i386/q35-acpi-dsdt.dsl +++ b/hw/i386/q35-acpi-dsdt.dsl @@ -114,6 +114,7 @@ DefinitionBlock ( } } +#include "acpi-dsdt-pdrc.dsl" #include "acpi-dsdt-hpet.dsl" |