mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-18 19:57:31 +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:
parent
c616a42251
commit
3afc5113c4
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <hypervisor.h>
|
||||
#include <acpi.h>
|
||||
#include <schedule.h>
|
||||
#include <version.h>
|
||||
#include <trampoline.h>
|
||||
@ -271,18 +272,6 @@ static int hardware_detect_support(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint16_t __attribute__((weak)) parse_madt(uint32_t lapic_id_array[CONFIG_MAX_PCPU_NUM])
|
||||
{
|
||||
static const uint32_t lapic_id[] = {0U, 2U, 4U, 6U};
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0U; i < ARRAY_SIZE(lapic_id); i++) {
|
||||
lapic_id_array[i] = lapic_id[i];
|
||||
}
|
||||
|
||||
return ((uint16_t)ARRAY_SIZE(lapic_id));
|
||||
}
|
||||
|
||||
static void init_percpu_lapic_id(void)
|
||||
{
|
||||
uint16_t i;
|
||||
|
@ -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 */
|
Loading…
Reference in New Issue
Block a user