Searched refs:rsdp (Results 1 – 2 of 2) sorted by relevance
/external/u-boot/arch/x86/lib/ |
D | acpi.c | 11 static struct acpi_rsdp *acpi_valid_rsdp(struct acpi_rsdp *rsdp) in acpi_valid_rsdp() argument 13 if (strncmp((char *)rsdp, RSDP_SIG, sizeof(RSDP_SIG) - 1) != 0) in acpi_valid_rsdp() 16 debug("Looking on %p for valid checksum\n", rsdp); in acpi_valid_rsdp() 18 if (table_compute_checksum((void *)rsdp, 20) != 0) in acpi_valid_rsdp() 22 if ((rsdp->revision > 1) && in acpi_valid_rsdp() 23 (table_compute_checksum((void *)rsdp, rsdp->length) != 0)) in acpi_valid_rsdp() 27 return rsdp; in acpi_valid_rsdp() 33 struct acpi_rsdp *rsdp = NULL; in acpi_find_fadt() local 40 rsdp = acpi_valid_rsdp((struct acpi_rsdp *)p); in acpi_find_fadt() 41 if (rsdp) in acpi_find_fadt() [all …]
|
D | acpi_table.c | 32 static void acpi_write_rsdp(struct acpi_rsdp *rsdp, struct acpi_rsdt *rsdt, in acpi_write_rsdp() argument 35 memset(rsdp, 0, sizeof(struct acpi_rsdp)); in acpi_write_rsdp() 37 memcpy(rsdp->signature, RSDP_SIG, 8); in acpi_write_rsdp() 38 memcpy(rsdp->oem_id, OEM_ID, 6); in acpi_write_rsdp() 40 rsdp->length = sizeof(struct acpi_rsdp); in acpi_write_rsdp() 41 rsdp->rsdt_address = (u32)rsdt; in acpi_write_rsdp() 51 rsdp->revision = ACPI_RSDP_REV_ACPI_1_0; in acpi_write_rsdp() 53 rsdp->xsdt_address = (u64)(u32)xsdt; in acpi_write_rsdp() 54 rsdp->revision = ACPI_RSDP_REV_ACPI_2_0; in acpi_write_rsdp() 58 rsdp->checksum = table_compute_checksum((void *)rsdp, 20); in acpi_write_rsdp() [all …]
|