Exemple #1
0
ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer(void) {
	ACPI_PHYSICAL_ADDRESS address = 0;

	PRINTD("AcpiOsGetRootPointer() called");

	AcpiFindRootPointer(&address);
	return address;
}
Exemple #2
0
static u_long
acpi_get_root_from_memory(void)
{
    ACPI_SIZE acpi_root;

    if (ACPI_SUCCESS(AcpiFindRootPointer(&acpi_root)))
        return (acpi_root);

    return (0);
}
Exemple #3
0
ACPI_PHYSICAL_ADDRESS
AcpiOsGetRootPointer (
    void)
{
    ACPI_PHYSICAL_ADDRESS pa = 0;

    DPRINT("AcpiOsGetRootPointer\n");

    AcpiFindRootPointer(&pa);
    return pa;
}
Exemple #4
0
ACPI_PHYSICAL_ADDRESS
AcpiOsGetRootPointer (void)
{
  ACPI_STATUS status;
  ACPI_SIZE addr;
  
  status = AcpiFindRootPointer(&addr);

  LRT_Assert(status == AE_OK);
  
  return addr;
}
Exemple #5
0
ACPI_PHYSICAL_ADDRESS
acpi_md_OsGetRootPointer(void)
{
	ACPI_PHYSICAL_ADDRESS PhysicalAddress;
	ACPI_STATUS Status;

	Status = AcpiFindRootPointer(&PhysicalAddress);
	if (ACPI_FAILURE(Status))
		PhysicalAddress = 0;

	return PhysicalAddress;
}
Exemple #6
0
ACPI_STATUS
AcpiOsGetRootPointer(
    UINT32			Flags,
    ACPI_POINTER         	*RsdpPhysicalAddress)
{
    /*
     * The loader passes the physical address at which it found the
     * RSDP in a hint.  We could recover this rather than searching
     * manually here.
     */
    return(AcpiFindRootPointer(Flags, RsdpPhysicalAddress));
}
Exemple #7
0
/******************************************************************************
 *
 * FUNCTION:    AcpiOsGetRootPointer
 *
 * PARAMETERS:  None
 *
 * RETURN:      Physical address of the RSDP
 *
 * DESCRIPTION: get physical address of the RSDP
 *
 *****************************************************************************/
ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer(void)
{
	ACPI_PHYSICAL_ADDRESS ret;
	
	ret = 0xE0000;
	
	AcpiFindRootPointer(&ret);
	
	printf("RootPointer:0x%08X\n", ret);
	
	return(ret);
}
ACPI_PHYSICAL_ADDRESS
AcpiOsGetRootPointer(void)
{
	u_long	ptr;

	if (i386_acpi_root == 0 &&
	    (resource_long_value("acpi", 0, "rsdp", (long *)&ptr) == 0 ||
	    AcpiFindRootPointer((ACPI_SIZE *)&ptr) == AE_OK) &&
	    ptr != 0)
		i386_acpi_root = ptr;

	return (i386_acpi_root);
}
Exemple #9
0
ACPI_PHYSICAL_ADDRESS
AcpiOsGetRootPointer (
    void)
{
    ACPI_SIZE address;
    ACPI_STATUS status;
    if (sACPIRoot == 0) {
        status = AcpiFindRootPointer(&address);
        if (status == AE_OK)
            sACPIRoot = address;
    }
    dbgprintf("AcpiOsGetRootPointer returning %p\n", (void *)sACPIRoot);
    return sACPIRoot;
}
Exemple #10
0
ACPI_PHYSICAL_ADDRESS
AcpiOsGetRootPointer()
{
	ACPI_PHYSICAL_ADDRESS Address;

	/*
	 * For EFI firmware, the root pointer is defined in EFI systab.
	 * The boot code process the table and put the physical address
	 * in the acpi-root-tab property.
	 */
	Address = ddi_prop_get_int(DDI_DEV_T_ANY, ddi_root_node(),
	    DDI_PROP_DONTPASS, "acpi-root-tab", NULL);

	if ((Address == NULL) && ACPI_FAILURE(AcpiFindRootPointer(&Address)))
		Address = NULL;

	return (Address);
}
Exemple #11
0
ACPI_PHYSICAL_ADDRESS
AcpiOsGetRootPointer(void)
{
	ACPI_SIZE ptr;
	ACPI_STATUS status;

	if (i386_acpi_root == 0) {
		/*
		 * The loader passes the physical address at which it found the
		 * RSDP in a hint.  We could recover this rather than searching
		 * manually here.
		 */
		status = AcpiFindRootPointer(&ptr);
		if (ACPI_SUCCESS(status))
			i386_acpi_root = ptr;
	}

	return (i386_acpi_root);
}
Exemple #12
0
/* Find the RSDP Pointer */
ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer()
{
	ACPI_PHYSICAL_ADDRESS ret;
	AcpiFindRootPointer(&ret);
	return ret;
}