Home
last modified time | relevance | path

Searched refs:rsdp (Results 1 – 12 of 12) sorted by relevance

/xen/tools/firmware/rombios/32bit/
A Dutil.c412 char *rsdp = (char *)start; in __find_rsdp() local
413 char *end = rsdp + len; in __find_rsdp()
415 while (rsdp < end) { in __find_rsdp()
417 if (!strncmp(rsdp, "RSD PTR ", 8)) in __find_rsdp()
418 return (struct acpi_20_rsdp *)rsdp; in __find_rsdp()
419 rsdp += 0x10; in __find_rsdp()
426 struct acpi_20_rsdp *rsdp; in find_rsdp() local
431 if (!rsdp) in find_rsdp()
434 return rsdp; in find_rsdp()
439 struct acpi_20_rsdp *rsdp = find_rsdp(); in get_s3_waking_vector() local
[all …]
/xen/xen/drivers/acpi/tables/
A Dtbutils.c365 struct acpi_table_rsdp *rsdp; in acpi_tb_parse_root_table() local
381 rsdp = acpi_os_map_memory(rsdp_address, sizeof(struct acpi_table_rsdp)); in acpi_tb_parse_root_table()
382 if (!rsdp) { in acpi_tb_parse_root_table()
388 rsdp)); in acpi_tb_parse_root_table()
392 if (rsdp->revision > 1 && rsdp->xsdt_physical_address) { in acpi_tb_parse_root_table()
398 address = (acpi_physical_address) rsdp->xsdt_physical_address; in acpi_tb_parse_root_table()
401 rsdp->rsdt_physical_address; in acpi_tb_parse_root_table()
405 address = (acpi_physical_address) rsdp->rsdt_physical_address; in acpi_tb_parse_root_table()
413 acpi_os_unmap_memory(rsdp, sizeof(struct acpi_table_rsdp)); in acpi_tb_parse_root_table()
A Dtbxfroot.c66 static acpi_status __init acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp) in acpi_tb_validate_rsdp() argument
76 if (ACPI_STRNCMP((char *)rsdp, ACPI_SIG_RSDP, sizeof(ACPI_SIG_RSDP) - 1) in acpi_tb_validate_rsdp()
86 if (acpi_tb_checksum((u8 *) rsdp, ACPI_RSDP_CHECKSUM_LENGTH) != 0) { in acpi_tb_validate_rsdp()
92 if ((rsdp->revision >= 2) && in acpi_tb_validate_rsdp()
93 (acpi_tb_checksum((u8 *) rsdp, ACPI_RSDP_XCHECKSUM_LENGTH) != 0)) { in acpi_tb_validate_rsdp()
/xen/xen/arch/x86/hvm/
A Ddom0_build.c938 struct acpi_table_rsdp *rsdp; in pvh_setup_acpi_xsdt() local
976 rsdp = acpi_os_map_memory(acpi_os_get_root_pointer(), sizeof(*rsdp)); in pvh_setup_acpi_xsdt()
977 if ( !rsdp ) in pvh_setup_acpi_xsdt()
983 xsdt_paddr = rsdp->xsdt_physical_address; in pvh_setup_acpi_xsdt()
984 acpi_os_unmap_memory(rsdp, sizeof(*rsdp)); in pvh_setup_acpi_xsdt()
1050 .length = sizeof(rsdp), in pvh_setup_acpi()
1107 memcpy(rsdp.oem_id, native_rsdp->oem_id, sizeof(rsdp.oem_id)); in pvh_setup_acpi()
1109 rsdp.xsdt_physical_address = xsdt_paddr; in pvh_setup_acpi()
1114 rsdp.checksum -= acpi_tb_checksum(ACPI_CAST_PTR(u8, &rsdp), in pvh_setup_acpi()
1116 rsdp.extended_checksum -= acpi_tb_checksum(ACPI_CAST_PTR(u8, &rsdp), in pvh_setup_acpi()
[all …]
/xen/tools/libxl/
A Dlibxl_arm_acpi.c190 struct acpi_table_rsdp *rsdp = (void *)dom->acpi_modules[0].data + offset; in make_acpi_rsdp() local
192 memcpy(rsdp->signature, "RSD PTR ", sizeof(rsdp->signature)); in make_acpi_rsdp()
193 BUILD_BUG_ON(sizeof(ACPI_OEM_ID) != sizeof(rsdp->oem_id)); in make_acpi_rsdp()
194 memcpy(rsdp->oem_id, ACPI_OEM_ID, sizeof(rsdp->oem_id)); in make_acpi_rsdp()
195 rsdp->length = acpitables[RSDP].size; in make_acpi_rsdp()
196 rsdp->revision = 0x02; in make_acpi_rsdp()
197 rsdp->xsdt_physical_address = acpitables[XSDT].addr; in make_acpi_rsdp()
198 calculate_checksum(rsdp, in make_acpi_rsdp()
A Dlibxl_x86_acpi.c188 config.rsdp = (unsigned long)libxl__malloc(gc, libxl_ctxt.page_size); in libxl__dom_load_acpi()
218 dom->acpi_modules[0].data = (void *)config.rsdp; in libxl__dom_load_acpi()
/xen/tools/firmware/hvmloader/
A Dseabios.c91 uint32_t rsdp = (uint32_t)scratch_alloc(sizeof(struct acpi_20_rsdp), 0); in seabios_acpi_build_tables() local
99 hvmloader_acpi_build_tables(&config, rsdp); in seabios_acpi_build_tables()
100 add_table(rsdp); in seabios_acpi_build_tables()
A Dutil.c1013 config->rsdp = physical; in hvmloader_acpi_build_tables()
/xen/xen/arch/arm/acpi/
A Ddomain_build.c213 struct acpi_table_rsdp *rsdp = NULL; in acpi_create_rsdp() local
225 rsdp = acpi_os_map_memory(addr, table_size); in acpi_create_rsdp()
228 memcpy(base_ptr, rsdp, table_size); in acpi_create_rsdp()
229 acpi_os_unmap_memory(rsdp, table_size); in acpi_create_rsdp()
231 rsdp = (struct acpi_table_rsdp *)base_ptr; in acpi_create_rsdp()
233 rsdp->xsdt_physical_address = tbl_add[TBL_XSDT].start; in acpi_create_rsdp()
234 checksum = acpi_tb_checksum(ACPI_CAST_PTR(u8, rsdp), table_size); in acpi_create_rsdp()
235 rsdp->checksum = rsdp->checksum - checksum; in acpi_create_rsdp()
/xen/tools/libacpi/
A Dbuild.c506 struct acpi_20_rsdp *rsdp; in acpi_build_tables() local
664 rsdp = (struct acpi_20_rsdp *)config->rsdp; in acpi_build_tables()
666 memcpy(rsdp, &Rsdp, sizeof(struct acpi_20_rsdp)); in acpi_build_tables()
667 rsdp->rsdt_address = ctxt->mem_ops.v2p(ctxt, rsdt); in acpi_build_tables()
668 rsdp->xsdt_address = ctxt->mem_ops.v2p(ctxt, xsdt); in acpi_build_tables()
669 set_checksum(rsdp, in acpi_build_tables()
672 set_checksum(rsdp, in acpi_build_tables()
A Dlibacpi.h91 unsigned long rsdp; member
/xen/tools/firmware/rombios/32bit/tcgbios/
A Dtcgbios.c268 struct acpi_20_rsdp *rsdp; in tcpa_acpi_init() local
276 rsdp = find_rsdp(); in tcpa_acpi_init()
277 if (rsdp) { in tcpa_acpi_init()
280 rsdt = (struct acpi_20_rsdt *)rsdp->rsdt_address; in tcpa_acpi_init()

Completed in 22 milliseconds