/freebsd/stand/i386/libi386/ |
H A D | biosacpi.c | 52 ACPI_TABLE_RSDP *rsdp; in biosacpi_detect() local 59 if ((rsdp = biosacpi_find_rsdp()) == NULL) in biosacpi_detect() 66 sprintf(buf, "0x%08x", VTOP(rsdp)); in biosacpi_detect() 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() 76 sprintf(buf, "0x%08x", rsdp->RsdtPhysicalAddress); in biosacpi_detect() 80 sprintf(buf, "0x%016llx", rsdp->XsdtPhysicalAddress); in biosacpi_detect() 82 sprintf(buf, "%d", rsdp->Length); in biosacpi_detect() 93 ACPI_TABLE_RSDP *rsdp; in biosacpi_find_rsdp() local [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() 105 if (memcmp(rsdp.Signature, "RSD PTR ", 8)) in acpi_get_rsdp() 109 pread(acpi_mem_fd, &rsdp, sizeof(rsdp), addr); in acpi_get_rsdp() 112 if (acpi_checksum(&rsdp, ACPI_RSDP_CHECKSUM_LENGTH) != 0) in acpi_get_rsdp() 116 if (rsdp.Revision >= 2 && in acpi_get_rsdp() 117 acpi_checksum(&rsdp, ACPI_RSDP_XCHECKSUM_LENGTH) != 0) 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 [all …]
|
H A D | acpi.c | 90 static void acpi_handle_rsdt(ACPI_TABLE_HEADER *rsdp, const char *elm); 2297 acpi_print_rsdt(ACPI_TABLE_HEADER *rsdp) in acpi_print_rsdt() argument 2303 rsdt = (ACPI_TABLE_RSDT *)rsdp; in acpi_print_rsdt() 2304 xsdt = (ACPI_TABLE_XSDT *)rsdp; in acpi_print_rsdt() 2306 acpi_print_sdt(rsdp); in acpi_print_rsdt() 2307 entries = (rsdp->Length - sizeof(ACPI_TABLE_HEADER)) / addr_size; in acpi_print_rsdt() 2595 acpi_handle_rsdt(ACPI_TABLE_HEADER *rsdp, const char *tbl) in acpi_handle_rsdt() argument 2604 acpi_print_rsdt(rsdp); in acpi_handle_rsdt() 2606 if (memcmp(tbl, rsdp->Signature, ACPI_NAMESEG_SIZE) == 0) { in acpi_handle_rsdt() 2607 acpi_print_rsdt(rsdp); in acpi_handle_rsdt() [all …]
|
/freebsd/tools/tools/ncpus/ |
H A D | acpi.c | 49 static void acpi_handle_rsdt(struct ACPIsdt *rsdp); 123 acpi_handle_rsdt(struct ACPIsdt *rsdp) in acpi_handle_rsdt() argument 129 entries = (rsdp->len - SIZEOF_SDT_HDR) / addr_size; in acpi_handle_rsdt() 133 addr = le32dec((char*)rsdp->body + i * addr_size); in acpi_handle_rsdt() 136 addr = le64dec((char*)rsdp->body + i * addr_size); in acpi_handle_rsdt() 218 struct ACPIrsdp rsdp; in acpi_get_rsdp() local 222 pread(acpi_mem_fd, &rsdp, 8, addr); in acpi_get_rsdp() 223 if (memcmp(rsdp.signature, "RSD PTR ", 8)) 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() [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() 138 sprintf(buf, "0x%016llx", (unsigned long long)rsdp); 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() 151 sprintf(buf, "0x%016x", rsdp->RsdtPhysicalAddress); 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() 678 rsdp.RsdtPhysicalAddress = htole32(0); /* patched by basl */ in build_rsdp() 679 rsdp.Length = htole32(0); /* patched by basl */ in build_rsdp() 680 rsdp.XsdtPhysicalAddress = htole64(0); /* patched by basl */ in build_rsdp() 681 rsdp.ExtendedChecksum = 0; /* patched by basl */ 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/efi/loader/ |
H A D | main.c | 116 ACPI_TABLE_RSDP *rsdp; variable 761 if (rsdp == NULL) in acpi_find_table() 764 rsdt = (ACPI_TABLE_RSDT *)(uintptr_t)rsdp->RsdtPhysicalAddress; in acpi_find_table() 765 xsdt = (ACPI_TABLE_XSDT *)(uintptr_t)rsdp->XsdtPhysicalAddress; in acpi_find_table() 766 if (rsdp->Revision < 2) { in acpi_find_table() 1127 if ((rsdp = efi_get_table(&acpi20)) == NULL) in acpi_detect() 1128 if ((rsdp = efi_get_table(&acpi)) == NULL) in acpi_detect() 1131 sprintf(buf, "0x%016"PRIxPTR, (uintptr_t)rsdp); in acpi_detect() 1133 revision = rsdp->Revision; in acpi_detect() 1138 strncpy(buf, rsdp->OemId, sizeof(rsdp->OemId)); in acpi_detect() [all …]
|
/freebsd/stand/kboot/kboot/ |
H A D | main.c | 154 static vm_offset_t rsdp; variable 179 rsdp = kboot_rsdp_from_efi(); in find_acpi() 181 if (rsdp == 0) in find_acpi() 182 rsdp = find_rsdp_arch(); in find_acpi() 189 return (rsdp); in acpi_rsdp() 195 return rsdp != 0; in has_acpi()
|
/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 | 398 ACPI_TABLE_RSDP *rsdp; in acpi_identify() local 426 (rsdp = AcpiOsMapMemory(paddr, sizeof(ACPI_TABLE_RSDP))) == NULL) in acpi_identify() 428 if (rsdp->Revision > 1 && rsdp->XsdtPhysicalAddress != 0) in acpi_identify() 429 paddr = (ACPI_PHYSICAL_ADDRESS)rsdp->XsdtPhysicalAddress; in acpi_identify() 431 paddr = (ACPI_PHYSICAL_ADDRESS)rsdp->RsdtPhysicalAddress; in acpi_identify() 432 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" acpi.rsdp" getenv
|