/freebsd/stand/i386/libi386/ |
H A D | biosacpi.c | 52 ACPI_TABLE_RSDP *rsdp; in biosacpi_detect() local 68 revision = rsdp->Revision; in biosacpi_detect() 73 strncpy(buf, rsdp->OemId, sizeof(rsdp->OemId)); in biosacpi_detect() 74 buf[sizeof(rsdp->OemId)] = '\0'; in biosacpi_detect() 82 sprintf(buf, "%d", rsdp->Length); in biosacpi_detect() 93 ACPI_TABLE_RSDP *rsdp; in biosacpi_find_rsdp() local 99 return (rsdp); in biosacpi_find_rsdp() 103 return (rsdp); in biosacpi_find_rsdp() 111 ACPI_TABLE_RSDP *rsdp; in biosacpi_search_rsdp() local 121 cp = (uint8_t *)rsdp; in biosacpi_search_rsdp() [all …]
|
/freebsd/usr.sbin/acpi/acpidump/ |
H A D | acpi_user.c | 100 ACPI_TABLE_RSDP rsdp; in acpi_get_rsdp() local 104 pread(acpi_mem_fd, &rsdp, 8, addr); in acpi_get_rsdp() 109 pread(acpi_mem_fd, &rsdp, sizeof(rsdp), addr); in acpi_get_rsdp() 116 if (rsdp.Revision >= 2 && in acpi_get_rsdp() 121 if (rsdp.Revision == 0) in acpi_get_rsdp() 124 len = rsdp.Length; in acpi_get_rsdp() 133 ACPI_TABLE_RSDP *rsdp; in acpi_scan_rsd_ptr() local 149 return (rsdp); in acpi_scan_rsd_ptr() 154 return (rsdp); in acpi_scan_rsd_ptr() 165 ACPI_TABLE_RSDP *rsdp; in acpi_find_rsd_ptr() local [all …]
|
H A D | acpi.c | 2162 rsdt = (ACPI_TABLE_RSDT *)rsdp; in acpi_print_rsdt() 2163 xsdt = (ACPI_TABLE_XSDT *)rsdp; in acpi_print_rsdt() 2165 acpi_print_sdt(rsdp); in acpi_print_rsdt() 2418 acpi_print_rsdt(rsdp); in acpi_handle_rsdt() 2419 rsdt = (ACPI_TABLE_RSDT *)rsdp; in acpi_handle_rsdt() 2420 xsdt = (ACPI_TABLE_XSDT *)rsdp; in acpi_handle_rsdt() 2483 ACPI_TABLE_HEADER *rsdp; in sdt_load_devmem() local 2494 acpi_checksum(rsdp, rsdp->Length) != 0) in sdt_load_devmem() 2500 acpi_checksum(rsdp, rsdp->Length) != 0) in sdt_load_devmem() 2504 return (rsdp); in sdt_load_devmem() [all …]
|
/freebsd/tools/tools/ncpus/ |
H A D | acpi.c | 123 acpi_handle_rsdt(struct ACPIsdt *rsdp) in acpi_handle_rsdt() argument 218 struct ACPIrsdp rsdp; in acpi_get_rsdp() local 222 pread(acpi_mem_fd, &rsdp, 8, addr); in acpi_get_rsdp() 227 pread(acpi_mem_fd, &rsdp, sizeof(rsdp), addr); in acpi_get_rsdp() 230 if (acpi_checksum(&rsdp, 20)) in acpi_get_rsdp() 234 if (rsdp.revision == 0) in acpi_get_rsdp() 237 len = rsdp.length; in acpi_get_rsdp() 291 struct ACPIsdt *rsdp; in acpi_detect() local 317 acpi_checksum(rsdp, rsdp->len) != 0) in acpi_detect() 323 acpi_checksum(rsdp, rsdp->len) != 0) in acpi_detect() [all …]
|
/freebsd/stand/kboot/kboot/arch/aarch64/ |
H A D | exec.c | 121 ACPI_TABLE_RSDP *rsdp; in elf64_exec() local 133 rsdp = efi_get_table(&acpi20_guid); in elf64_exec() 134 if (rsdp == NULL) { in elf64_exec() 135 rsdp = efi_get_table(&acpi_guid); in elf64_exec() 137 if (rsdp != NULL) { in elf64_exec() 141 revision = rsdp->Revision; in elf64_exec() 147 strncpy(buf, rsdp->OemId, sizeof(rsdp->OemId)); in elf64_exec() 148 buf[sizeof(rsdp->OemId)] = '\0'; in elf64_exec() 166 vm_offset_t rsdp; in elf64_exec() local 167 rsdp = acpi_rsdp(); in elf64_exec() [all …]
|
/freebsd/sys/arm64/acpica/ |
H A D | acpi_machdep.c | 143 ACPI_TABLE_RSDP *rsdp; in acpi_find_table() local 159 rsdp = pmap_mapbios(rsdp_ptr, sizeof(ACPI_TABLE_RSDP)); in acpi_find_table() 160 if (rsdp == NULL) { in acpi_find_table() 166 if (rsdp->Revision >= 2 && rsdp->XsdtPhysicalAddress != 0) { in acpi_find_table() 172 if (AcpiUtChecksum((UINT8 *)rsdp, ACPI_RSDP_XCHECKSUM_LENGTH)) { in acpi_find_table() 174 pmap_unmapbios(rsdp, sizeof(ACPI_TABLE_RSDP)); in acpi_find_table() 177 xsdt = map_table(rsdp->XsdtPhysicalAddress, ACPI_SIG_XSDT); in acpi_find_table() 180 pmap_unmapbios(rsdp, sizeof(ACPI_TABLE_RSDP)); in acpi_find_table() 193 rsdp->Revision, rsdp->XsdtPhysicalAddress); in acpi_find_table() 195 pmap_unmapbios(rsdp, sizeof(ACPI_TABLE_RSDP)); in acpi_find_table()
|
/freebsd/sys/amd64/acpica/ |
H A D | acpi_machdep.c | 165 ACPI_TABLE_RSDP *rsdp; in acpi_find_table() local 182 rsdp = pmap_mapbios(rsdp_ptr, sizeof(ACPI_TABLE_RSDP)); in acpi_find_table() 183 if (rsdp == NULL) { in acpi_find_table() 193 if (rsdp->Revision >= 2 && rsdp->XsdtPhysicalAddress != 0) { in acpi_find_table() 199 if (AcpiUtChecksum((UINT8 *)rsdp, ACPI_RSDP_XCHECKSUM_LENGTH)) { in acpi_find_table() 201 pmap_unmapbios(rsdp, sizeof(ACPI_TABLE_RSDP)); in acpi_find_table() 204 xsdt = map_table(rsdp->XsdtPhysicalAddress, ACPI_SIG_XSDT); in acpi_find_table() 207 pmap_unmapbios(rsdp, sizeof(ACPI_TABLE_RSDP)); in acpi_find_table() 219 rsdt = map_table(rsdp->RsdtPhysicalAddress, ACPI_SIG_RSDT); in acpi_find_table() 222 pmap_unmapbios(rsdp, sizeof(ACPI_TABLE_RSDP)); in acpi_find_table() [all …]
|
/freebsd/sys/i386/acpica/ |
H A D | acpi_machdep.c | 183 ACPI_TABLE_RSDP *rsdp; in acpi_find_table() local 200 rsdp = pmap_mapbios(rsdp_ptr, sizeof(ACPI_TABLE_RSDP)); in acpi_find_table() 201 if (rsdp == NULL) { in acpi_find_table() 212 if (rsdp->Revision >= 2 && rsdp->XsdtPhysicalAddress != 0) { in acpi_find_table() 218 if (AcpiUtChecksum((UINT8 *)rsdp, ACPI_RSDP_XCHECKSUM_LENGTH)) { in acpi_find_table() 223 xsdt = map_table(rsdp->XsdtPhysicalAddress, ACPI_SIG_XSDT); in acpi_find_table() 238 rsdt = map_table(rsdp->RsdtPhysicalAddress, ACPI_SIG_RSDT); in acpi_find_table() 253 pmap_unmapbios(rsdp, sizeof(ACPI_TABLE_RSDP)); in acpi_find_table()
|
/freebsd/usr.sbin/bhyve/ |
H A D | acpi.c | 667 ACPI_TABLE_RSDP rsdp; in build_rsdp() local 673 memset(&rsdp, 0, sizeof(rsdp)); in build_rsdp() 674 memcpy(rsdp.Signature, ACPI_SIG_RSDP, 8); in build_rsdp() 675 rsdp.Checksum = 0; /* patched by basl */ in build_rsdp() 676 memcpy(rsdp.OemId, "BHYVE ", ACPI_OEM_ID_SIZE); in build_rsdp() 677 rsdp.Revision = 2; in build_rsdp() 679 rsdp.Length = htole32(0); /* patched by basl */ in build_rsdp() 681 rsdp.ExtendedChecksum = 0; /* patched by basl */ in build_rsdp() 682 BASL_EXEC(basl_table_append_bytes(table, &rsdp, sizeof(rsdp))); in build_rsdp() 688 sizeof(rsdp.RsdtPhysicalAddress))); in build_rsdp() [all …]
|
/freebsd/stand/kboot/kboot/arch/amd64/ |
H A D | elf64_freebsd.c | 150 ACPI_TABLE_RSDP *rsdp = NULL; in elf64_exec() local 155 vm_offset_t rsdp = 0; in elf64_exec() local 196 rsdp = efi_get_table(&acpi20_guid); in elf64_exec() 197 if (rsdp == NULL) { in elf64_exec() 198 rsdp = efi_get_table(&acpi_guid); in elf64_exec() 201 rsdp = acpi_rsdp(); in elf64_exec() 203 if (rsdp != 0) { in elf64_exec() 204 sprintf(buf, "0x%016llx", (unsigned long long)rsdp); in elf64_exec()
|
/freebsd/tools/tools/dmardump/ |
H A D | dmardump.c | 250 walk_rsdt(ACPI_TABLE_HEADER *rsdp) in walk_rsdt() argument 258 if (memcmp(rsdp->Signature, "RSDT", 4) != 0) in walk_rsdt() 262 rsdt = (ACPI_TABLE_RSDT *)rsdp; in walk_rsdt() 263 xsdt = (ACPI_TABLE_XSDT *)rsdp; in walk_rsdt() 264 entries = (rsdp->Length - sizeof(ACPI_TABLE_HEADER)) / addr_size; in walk_rsdt()
|
/freebsd/stand/kboot/kboot/ |
H A D | main.c | 152 static vm_offset_t rsdp; variable 177 rsdp = kboot_rsdp_from_efi(); in find_acpi() 179 if (rsdp == 0) in find_acpi() 180 rsdp = find_rsdp_arch(); in find_acpi() 187 return (rsdp); in acpi_rsdp() 193 return rsdp != 0; in has_acpi()
|
/freebsd/stand/efi/loader/ |
H A D | main.c | 914 ACPI_TABLE_RSDP *rsdp; in acpi_detect() local 919 if ((rsdp = efi_get_table(&acpi20)) == NULL) in acpi_detect() 920 if ((rsdp = efi_get_table(&acpi)) == NULL) in acpi_detect() 923 sprintf(buf, "0x%016llx", (unsigned long long)rsdp); in acpi_detect() 925 revision = rsdp->Revision; in acpi_detect() 930 strncpy(buf, rsdp->OemId, sizeof(rsdp->OemId)); in acpi_detect() 931 buf[sizeof(rsdp->OemId)] = '\0'; in acpi_detect() 933 sprintf(buf, "0x%016x", rsdp->RsdtPhysicalAddress); in acpi_detect() 938 (unsigned long long)rsdp->XsdtPhysicalAddress); in acpi_detect() 940 sprintf(buf, "%d", rsdp->Length); in acpi_detect()
|
/freebsd/stand/efi/loader/arch/amd64/ |
H A D | multiboot2.h | 367 multiboot_uint8_t rsdp[0]; member 374 multiboot_uint8_t rsdp[0]; member
|
/freebsd/sys/dev/acpica/ |
H A D | acpi.c | 392 ACPI_TABLE_RSDP *rsdp; in acpi_identify() local 420 (rsdp = AcpiOsMapMemory(paddr, sizeof(ACPI_TABLE_RSDP))) == NULL) in acpi_identify() 422 if (rsdp->Revision > 1 && rsdp->XsdtPhysicalAddress != 0) in acpi_identify() 423 paddr = (ACPI_PHYSICAL_ADDRESS)rsdp->XsdtPhysicalAddress; in acpi_identify() 425 paddr = (ACPI_PHYSICAL_ADDRESS)rsdp->RsdtPhysicalAddress; in acpi_identify() 426 AcpiOsUnmapMemory(rsdp, sizeof(ACPI_TABLE_RSDP)); in acpi_identify()
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | intel | 300 # 16 for asf!.aml, 67 fo rsdp.aml
|
/freebsd/stand/forth/ |
H A D | menu.4th | 150 s" hint.acpi.0.rsdp" getenv
|