cd61cb2e2c
Drops AML template patching and allows to save some space in SSDT if pvpanic device doesn't exist by not including disabled device description into SSDT. It also makes device description smaller by replacing _STA method with named value and dropping _INI method. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
43 lines
1.7 KiB
Plaintext
43 lines
1.7 KiB
Plaintext
/*
|
|
* 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/>.
|
|
*/
|
|
#include "hw/acpi/pc-hotplug.h"
|
|
|
|
ACPI_EXTRACT_ALL_CODE ssdp_misc_aml
|
|
|
|
DefinitionBlock ("ssdt-misc.aml", "SSDT", 0x01, "BXPC", "BXSSDTSUSP", 0x1)
|
|
{
|
|
|
|
/****************************************************************
|
|
* PCI memory ranges
|
|
****************************************************************/
|
|
|
|
Scope(\) {
|
|
ACPI_EXTRACT_NAME_DWORD_CONST acpi_pci32_start
|
|
Name(P0S, 0x12345678)
|
|
ACPI_EXTRACT_NAME_DWORD_CONST acpi_pci32_end
|
|
Name(P0E, 0x12345678)
|
|
ACPI_EXTRACT_NAME_BYTE_CONST acpi_pci64_valid
|
|
Name(P1V, 0x12)
|
|
ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_start
|
|
Name(P1S, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
|
|
ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_end
|
|
Name(P1E, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
|
|
ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_length
|
|
Name(P1L, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
|
|
ACPI_EXTRACT_NAME_DWORD_CONST ssdt_mctrl_nr_slots
|
|
Name(MEMORY_SLOTS_NUMBER, 0x12345678)
|
|
}
|
|
}
|