xref: /qemu/include/hw/acpi/pci.h (revision b7f23f62e40bb7bc87fe170471a31ab1fb8a0784)
148cefd94SWei Yang /*
248cefd94SWei Yang  * Support for generating PCI related ACPI tables and passing them to Guests
348cefd94SWei Yang  *
448cefd94SWei Yang  * Copyright (C) 2006 Fabrice Bellard
548cefd94SWei Yang  * Copyright (C) 2008-2010  Kevin O'Connor <kevin@koconnor.net>
648cefd94SWei Yang  * Copyright (C) 2013-2019 Red Hat Inc
748cefd94SWei Yang  * Copyright (C) 2019 Intel Corporation
848cefd94SWei Yang  *
948cefd94SWei Yang  * Author: Wei Yang <richardw.yang@linux.intel.com>
1048cefd94SWei Yang  * Author: Michael S. Tsirkin <mst@redhat.com>
1148cefd94SWei Yang  *
1248cefd94SWei Yang  * This program is free software; you can redistribute it and/or modify
1348cefd94SWei Yang  * it under the terms of the GNU General Public License as published by
1448cefd94SWei Yang  * the Free Software Foundation; either version 2 of the License, or
1548cefd94SWei Yang  * (at your option) any later version.
1648cefd94SWei Yang 
1748cefd94SWei Yang  * This program is distributed in the hope that it will be useful,
1848cefd94SWei Yang  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1948cefd94SWei Yang  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2048cefd94SWei Yang  * GNU General Public License for more details.
2148cefd94SWei Yang 
2248cefd94SWei Yang  * You should have received a copy of the GNU General Public License along
2348cefd94SWei Yang  * with this program; if not, see <http://www.gnu.org/licenses/>.
2448cefd94SWei Yang  */
25ec150c7eSMarkus Armbruster 
2648cefd94SWei Yang #ifndef HW_ACPI_PCI_H
2748cefd94SWei Yang #define HW_ACPI_PCI_H
2848cefd94SWei Yang 
29ec150c7eSMarkus Armbruster #include "hw/acpi/bios-linker-loader.h"
30ec150c7eSMarkus Armbruster 
3148cefd94SWei Yang typedef struct AcpiMcfgInfo {
3248cefd94SWei Yang     uint64_t base;
3348cefd94SWei Yang     uint32_t size;
3448cefd94SWei Yang } AcpiMcfgInfo;
3548cefd94SWei Yang 
36602b4582SMarian Postevca void build_mcfg(GArray *table_data, BIOSLinker *linker, AcpiMcfgInfo *info,
37602b4582SMarian Postevca                 const char *oem_id, const char *oem_table_id);
38*b7f23f62SIgor Mammedov Aml *aml_pci_device_dsm(void);
3948cefd94SWei Yang #endif
40