mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-14 13:30:01 +00:00
hv: acpi: remove weak parse_madt
Since it's discarded. Tracked-On: #861 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <hypervisor.h>
|
||||
#include "acpi_priv.h"
|
||||
#include "acpi.h"
|
||||
#include <vm0_boot.h>
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#include <hypervisor.h>
|
||||
#include "pci.h"
|
||||
#include "vtd.h"
|
||||
#include "acpi.h"
|
||||
#include "acpi_priv.h"
|
||||
|
||||
enum acpi_dmar_type {
|
||||
ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
|
||||
|
@@ -7,28 +7,6 @@
|
||||
#ifndef ACPI_H
|
||||
#define ACPI_H
|
||||
|
||||
struct acpi_table_header {
|
||||
/* ASCII table signature */
|
||||
char signature[4];
|
||||
/* Length of table in bytes, including this header */
|
||||
uint32_t length;
|
||||
/* ACPI Specification minor version number */
|
||||
uint8_t revision;
|
||||
/* To make sum of entire table == 0 */
|
||||
uint8_t checksum;
|
||||
/* ASCII OEM identification */
|
||||
char oem_id[6];
|
||||
/* ASCII OEM table identification */
|
||||
char oem_table_id[8];
|
||||
/* OEM revision number */
|
||||
uint32_t oem_revision;
|
||||
/* ASCII ASL compiler vendor ID */
|
||||
char asl_compiler_id[4];
|
||||
/* ASL compiler version */
|
||||
uint32_t asl_compiler_revision;
|
||||
};
|
||||
|
||||
uint16_t parse_madt(uint32_t lapic_id_array[CONFIG_MAX_PCPU_NUM]);
|
||||
|
||||
void *get_dmar_table(void);
|
||||
#endif /* !ACPI_H */
|
||||
|
32
hypervisor/boot/include/acpi_priv.h
Normal file
32
hypervisor/boot/include/acpi_priv.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef ACPI_PRIV_H
|
||||
#define ACPI_PRIV_H
|
||||
|
||||
struct acpi_table_header {
|
||||
/* ASCII table signature */
|
||||
char signature[4];
|
||||
/* Length of table in bytes, including this header */
|
||||
uint32_t length;
|
||||
/* ACPI Specification minor version number */
|
||||
uint8_t revision;
|
||||
/* To make sum of entire table == 0 */
|
||||
uint8_t checksum;
|
||||
/* ASCII OEM identification */
|
||||
char oem_id[6];
|
||||
/* ASCII OEM table identification */
|
||||
char oem_table_id[8];
|
||||
/* OEM revision number */
|
||||
uint32_t oem_revision;
|
||||
/* ASCII ASL compiler vendor ID */
|
||||
char asl_compiler_id[4];
|
||||
/* ASL compiler version */
|
||||
uint32_t asl_compiler_revision;
|
||||
};
|
||||
|
||||
void *get_dmar_table(void);
|
||||
#endif /* !ACPI_PRIV_H */
|
Reference in New Issue
Block a user