/freebsd-11-stable/stand/i386/libi386/ |
H A D | biosacpi.c | 55 ACPI_TABLE_RSDP *rsdp; local 60 if ((rsdp = biosacpi_find_rsdp()) == NULL) 73 sprintf(buf, "0x%08x", VTOP(rsdp)); 74 setenv("hint.acpi.0.rsdp", buf, 1); 75 setenv("acpi.rsdp", buf, 1); 76 revision = rsdp->Revision; 82 strncpy(buf, rsdp->OemId, sizeof(rsdp->OemId)); 83 buf[sizeof(rsdp->OemId)] = '\0'; 86 sprintf(buf, "0x%08x", rsdp 106 ACPI_TABLE_RSDP *rsdp; local 124 ACPI_TABLE_RSDP *rsdp; local [all...] |
/freebsd-11-stable/stand/efi/loader/arch/arm64/ |
H A D | exec.c | 77 ACPI_TABLE_RSDP *rsdp; local 83 rsdp = efi_get_table(&acpi20_guid); 84 if (rsdp == NULL) { 85 rsdp = efi_get_table(&acpi_guid); 87 if (rsdp != NULL) { 88 sprintf(buf, "0x%016llx", (unsigned long long)rsdp); 89 setenv("hint.acpi.0.rsdp", buf, 1); 90 revision = rsdp->Revision; 95 strncpy(buf, rsdp->OemId, sizeof(rsdp [all...] |
/freebsd-11-stable/usr.sbin/acpi/acpidump/ |
H A D | acpi_user.c | 47 static char hint_acpi_0_rsdp[] = "hint.acpi.0.rsdp"; 102 ACPI_TABLE_RSDP rsdp; local 106 pread(acpi_mem_fd, &rsdp, 8, addr); 107 if (memcmp(rsdp.Signature, "RSD PTR ", 8)) 111 pread(acpi_mem_fd, &rsdp, sizeof(rsdp), addr); 114 if (acpi_checksum(&rsdp, ACPI_RSDP_CHECKSUM_LENGTH) != 0) 118 if (rsdp.Revision >= 2 && 119 acpi_checksum(&rsdp, ACPI_RSDP_XCHECKSUM_LENGTH) != 0) 123 if (rsdp 135 ACPI_TABLE_RSDP *rsdp; local 167 ACPI_TABLE_RSDP *rsdp; local [all...] |
H A D | acpi.c | 84 static void acpi_handle_rsdt(ACPI_TABLE_HEADER *rsdp); 1371 acpi_print_rsdt(ACPI_TABLE_HEADER *rsdp) argument 1377 rsdt = (ACPI_TABLE_RSDT *)rsdp; 1378 xsdt = (ACPI_TABLE_XSDT *)rsdp; 1380 acpi_print_sdt(rsdp); 1381 entries = (rsdp->Length - sizeof(ACPI_TABLE_HEADER)) / addr_size; 1625 acpi_handle_rsdt(ACPI_TABLE_HEADER *rsdp) argument 1633 acpi_print_rsdt(rsdp); 1634 rsdt = (ACPI_TABLE_RSDT *)rsdp; 1635 xsdt = (ACPI_TABLE_XSDT *)rsdp; 1684 ACPI_TABLE_HEADER *rsdp; local 1848 sdt_print_all(ACPI_TABLE_HEADER *rsdp) argument 1855 sdt_from_rsdt(ACPI_TABLE_HEADER *rsdp, const char *sig, ACPI_TABLE_HEADER *last) argument [all...] |
/freebsd-11-stable/tools/tools/ncpus/ |
H A D | acpi.c | 51 static void acpi_handle_rsdt(struct ACPIsdt *rsdp); 125 acpi_handle_rsdt(struct ACPIsdt *rsdp) argument 131 entries = (rsdp->len - SIZEOF_SDT_HDR) / addr_size; 135 addr = le32dec((char*)rsdp->body + i * addr_size); 138 addr = le64dec((char*)rsdp->body + i * addr_size); 220 struct ACPIrsdp rsdp; local 224 pread(acpi_mem_fd, &rsdp, 8, addr); 225 if (memcmp(rsdp.signature, "RSD PTR ", 8)) 229 pread(acpi_mem_fd, &rsdp, sizeof(rsdp), add 293 struct ACPIsdt *rsdp; local [all...] |
/freebsd-11-stable/stand/efi/loader/arch/amd64/ |
H A D | elf64_freebsd.c | 99 ACPI_TABLE_RSDP *rsdp; local 114 rsdp = efi_get_table(&acpi20_guid); 115 if (rsdp == NULL) { 116 rsdp = efi_get_table(&acpi_guid); 118 if (rsdp != NULL) { 119 sprintf(buf, "0x%016llx", (unsigned long long)rsdp); 120 setenv("hint.acpi.0.rsdp", buf, 1); 121 setenv("acpi.rsdp", buf, 1); 122 revision = rsdp->Revision; 128 strncpy(buf, rsdp [all...] |
/freebsd-11-stable/sys/arm64/acpica/ |
H A D | acpi_machdep.c | 145 ACPI_TABLE_RSDP *rsdp; local 161 rsdp = pmap_mapbios(rsdp_ptr, sizeof(ACPI_TABLE_RSDP)); 162 if (rsdp == NULL) { 169 if (rsdp->Revision >= 2 && rsdp->XsdtPhysicalAddress != 0) { 175 if (AcpiTbChecksum((UINT8 *)rsdp, ACPI_RSDP_XCHECKSUM_LENGTH)) { 180 xsdt = map_table(rsdp->XsdtPhysicalAddress, 2, ACPI_SIG_XSDT); 184 pmap_unmapbios((vm_offset_t)rsdp, 197 pmap_unmapbios((vm_offset_t)rsdp, sizeof(ACPI_TABLE_RSDP));
|
/freebsd-11-stable/sys/i386/acpica/ |
H A D | acpi_machdep.c | 256 ACPI_TABLE_RSDP *rsdp; local 273 rsdp = pmap_mapbios(rsdp_ptr, sizeof(ACPI_TABLE_RSDP)); 274 if (rsdp == NULL) { 287 if (rsdp->Revision >= 2 && rsdp->XsdtPhysicalAddress != 0) { 293 if (AcpiTbChecksum((UINT8 *)rsdp, ACPI_RSDP_XCHECKSUM_LENGTH)) { 298 xsdt = map_table(rsdp->XsdtPhysicalAddress, 2, ACPI_SIG_XSDT); 313 rsdt = map_table(rsdp->RsdtPhysicalAddress, 2, ACPI_SIG_RSDT); 328 pmap_unmapbios((vm_offset_t)rsdp, sizeof(ACPI_TABLE_RSDP));
|
/freebsd-11-stable/sys/amd64/acpica/ |
H A D | acpi_machdep.c | 240 ACPI_TABLE_RSDP *rsdp; local 257 rsdp = pmap_mapbios(rsdp_ptr, sizeof(ACPI_TABLE_RSDP)); 258 if (rsdp == NULL) { 271 if (rsdp->Revision >= 2 && rsdp->XsdtPhysicalAddress != 0) { 277 if (AcpiTbChecksum((UINT8 *)rsdp, ACPI_RSDP_XCHECKSUM_LENGTH)) { 282 xsdt = map_table(rsdp->XsdtPhysicalAddress, 2, ACPI_SIG_XSDT); 297 rsdt = map_table(rsdp->RsdtPhysicalAddress, 2, ACPI_SIG_RSDT); 312 pmap_unmapbios((vm_offset_t)rsdp, sizeof(ACPI_TABLE_RSDP));
|
/freebsd-11-stable/tools/tools/dmardump/ |
H A D | dmardump.c | 253 walk_rsdt(ACPI_TABLE_HEADER *rsdp) argument 261 if (memcmp(rsdp->Signature, "RSDT", 4) != 0) 265 rsdt = (ACPI_TABLE_RSDT *)rsdp; 266 xsdt = (ACPI_TABLE_XSDT *)rsdp; 267 entries = (rsdp->Length - sizeof(ACPI_TABLE_HEADER)) / addr_size;
|
/freebsd-11-stable/stand/lua/ |
H A D | core.lua | 49 -- On i386, hint.acpi.0.rsdp will be set before we're loaded. On !i386, 141 local c = loader.getenv("hint.acpi.0.rsdp")
|
/freebsd-11-stable/sys/dev/acpica/ |
H A D | acpi.c | 382 ACPI_TABLE_RSDP *rsdp; local 410 (rsdp = AcpiOsMapMemory(paddr, sizeof(ACPI_TABLE_RSDP))) == NULL) 412 if (rsdp->Revision > 1 && rsdp->XsdtPhysicalAddress != 0) 413 paddr = (ACPI_PHYSICAL_ADDRESS)rsdp->XsdtPhysicalAddress; 415 paddr = (ACPI_PHYSICAL_ADDRESS)rsdp->RsdtPhysicalAddress; 416 AcpiOsUnmapMemory(rsdp, sizeof(ACPI_TABLE_RSDP));
|