src/usr.sbin/acpi/acpidump/acpi.c
/* The FADT revision indicates whether we use the DSDT or X_DSDT addresses. */
The FADT revision indicates whether we use the DSDT or X_DSDT addresses.
The FADT revision indicates whether we use the DSDT or X_DSDT addresses .
static int
acpi_get_fadt_revision(ACPI_TABLE_FADT *fadt)
{
	int fadt_revision;
	if (addr_size == 8) {
		fadt_revision = 2;
		if (fadt->Facs != 0 &&
		    (fadt->XFacs & 0xffffffff) != fadt->Facs)
			fadt_revision = 1;
	} else
		fadt_revision = 1;
	return (fadt_revision);
}
static int acpi_get_fadt_revision ( ACPI_TABLE_FADT * fadt ) { int fadt_revision ; if ( addr_size == 8 ) { fadt_revision = 2 ; if ( fadt -> Facs != 0 && ( fadt -> XFacs & 0xffffffff ) != fadt -> Facs ) fadt_revision = 1 ; } else fadt_revision = 1 ; return ( fadt_revision ) ; }
The FADT revision indicates whether we use the DSDT or X_DSDT addresses.
The FADT revision indicates whether we use the DSDT or X_DSDT addresses .
/* Set the FADT revision separately from the RSDP version. */ /*
		 * A few systems (e.g., IBM T23) have an RSDP that claims
		 * revision 2 but the 64 bit addresses are invalid.  If
		 * revision 2 and the 32 bit address is non-zero but the
		 * 32 and 64 bit versions don't match, prefer the 32 bit
		 * version for all subsequent tables.
		 */