mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
acpi: add function to extract oem_id and oem_table_id from the user's SLIC
The acpi_get_slic_oem() function stores pointers to these fields in the (first) SLIC table that the user passes in with the -acpitable switch. Cc: "Michael S. Tsirkin" <mst@redhat.com> (supporter:ACPI/SMBIOS) Cc: Igor Mammedov <imammedo@redhat.com> (supporter:ACPI/SMBIOS) Cc: Richard W.M. Jones <rjones@redhat.com> Cc: Aleksei Kovura <alex3kov@zoho.com> Cc: Michael Tokarev <mjt@tls.msk.ru> Cc: Steven Newbury <steve@snewbury.org.uk> RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1248758 LP: https://bugs.launchpad.net/qemu/+bug/1533848 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Steven Newbury <steve@snewbury.org.uk>
This commit is contained in:
parent
5151355898
commit
88594e4fd1
2 changed files with 23 additions and 0 deletions
|
@ -196,4 +196,11 @@ unsigned acpi_table_len(void *current);
|
|||
void acpi_table_add(const QemuOpts *opts, Error **errp);
|
||||
void acpi_table_add_builtin(const QemuOpts *opts, Error **errp);
|
||||
|
||||
typedef struct AcpiSlicOem AcpiSlicOem;
|
||||
struct AcpiSlicOem {
|
||||
char *id;
|
||||
char *table_id;
|
||||
};
|
||||
int acpi_get_slic_oem(AcpiSlicOem *oem);
|
||||
|
||||
#endif /* !QEMU_HW_ACPI_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue