tests: acpi: rename acpi_parse_rsdp_table() into acpi_fetch_rsdp_table()
so name would reflect what the function does Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <1556808723-226478-2-git-send-email-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
b0e5196a52
commit
38fb3d7100
@ -63,7 +63,7 @@ uint64_t acpi_get_xsdt_address(uint8_t *rsdp_table)
|
||||
return le64_to_cpu(xsdt_physical_address);
|
||||
}
|
||||
|
||||
void acpi_parse_rsdp_table(QTestState *qts, uint32_t addr, uint8_t *rsdp_table)
|
||||
void acpi_fetch_rsdp_table(QTestState *qts, uint32_t addr, uint8_t *rsdp_table)
|
||||
{
|
||||
uint8_t revision;
|
||||
|
||||
|
@ -47,7 +47,7 @@ typedef struct {
|
||||
uint8_t acpi_calc_checksum(const uint8_t *data, int len);
|
||||
uint32_t acpi_find_rsdp_address(QTestState *qts);
|
||||
uint64_t acpi_get_xsdt_address(uint8_t *rsdp_table);
|
||||
void acpi_parse_rsdp_table(QTestState *qts, uint32_t addr, uint8_t *rsdp_table);
|
||||
void acpi_fetch_rsdp_table(QTestState *qts, uint32_t addr, uint8_t *rsdp_table);
|
||||
void acpi_fetch_table(QTestState *qts, uint8_t **aml, uint32_t *aml_len,
|
||||
const uint8_t *addr_ptr, const char *sig,
|
||||
bool verify_checksum);
|
||||
|
@ -89,7 +89,7 @@ static void test_acpi_rsdp_table(test_data *data)
|
||||
uint8_t *rsdp_table = data->rsdp_table, revision;
|
||||
uint32_t addr = data->rsdp_addr;
|
||||
|
||||
acpi_parse_rsdp_table(data->qts, addr, rsdp_table);
|
||||
acpi_fetch_rsdp_table(data->qts, addr, rsdp_table);
|
||||
revision = rsdp_table[15 /* Revision offset */];
|
||||
|
||||
switch (revision) {
|
||||
|
@ -40,7 +40,7 @@ static uint32_t acpi_find_vgia(QTestState *qts)
|
||||
g_assert_cmphex(rsdp_offset, <, RSDP_ADDR_INVALID);
|
||||
|
||||
|
||||
acpi_parse_rsdp_table(qts, rsdp_offset, rsdp_table);
|
||||
acpi_fetch_rsdp_table(qts, rsdp_offset, rsdp_table);
|
||||
acpi_fetch_table(qts, &rsdt, &rsdt_len, &rsdp_table[16 /* RsdtAddress */],
|
||||
"RSDT", true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user