2000-10-28 05:01:06 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* Module Name: rsdump - Functions to display the resource structures.
|
2002-08-29 01:51:24 +00:00
|
|
|
* $Revision: 33 $
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* 1. Copyright Notice
|
|
|
|
*
|
2002-02-23 05:10:40 +00:00
|
|
|
* Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.
|
2000-12-21 06:56:46 +00:00
|
|
|
* All rights reserved.
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* 2. License
|
|
|
|
*
|
|
|
|
* 2.1. This is your license from Intel Corp. under its intellectual property
|
|
|
|
* rights. You may have additional license terms from the party that provided
|
|
|
|
* you this software, covering your right to use that party's intellectual
|
|
|
|
* property rights.
|
|
|
|
*
|
|
|
|
* 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
|
|
|
|
* copy of the source code appearing in this file ("Covered Code") an
|
|
|
|
* irrevocable, perpetual, worldwide license under Intel's copyrights in the
|
|
|
|
* base code distributed originally by Intel ("Original Intel Code") to copy,
|
|
|
|
* make derivatives, distribute, use and display any portion of the Covered
|
|
|
|
* Code in any form, with the right to sublicense such rights; and
|
|
|
|
*
|
|
|
|
* 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
|
|
|
|
* license (with the right to sublicense), under only those claims of Intel
|
|
|
|
* patents that are infringed by the Original Intel Code, to make, use, sell,
|
|
|
|
* offer to sell, and import the Covered Code and derivative works thereof
|
|
|
|
* solely to the minimum extent necessary to exercise the above copyright
|
|
|
|
* license, and in no event shall the patent license extend to any additions
|
|
|
|
* to or modifications of the Original Intel Code. No other license or right
|
|
|
|
* is granted directly or by implication, estoppel or otherwise;
|
|
|
|
*
|
|
|
|
* The above copyright and patent license is granted only if the following
|
|
|
|
* conditions are met:
|
|
|
|
*
|
|
|
|
* 3. Conditions
|
|
|
|
*
|
|
|
|
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
|
|
|
* Redistribution of source code of any substantial portion of the Covered
|
|
|
|
* Code or modification with rights to further distribute source must include
|
|
|
|
* the above Copyright Notice, the above License, this list of Conditions,
|
|
|
|
* and the following Disclaimer and Export Compliance provision. In addition,
|
|
|
|
* Licensee must cause all Covered Code to which Licensee contributes to
|
|
|
|
* contain a file documenting the changes Licensee made to create that Covered
|
|
|
|
* Code and the date of any change. Licensee must include in that file the
|
|
|
|
* documentation of any changes made by any predecessor Licensee. Licensee
|
|
|
|
* must include a prominent statement that the modification is derived,
|
|
|
|
* directly or indirectly, from Original Intel Code.
|
|
|
|
*
|
|
|
|
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
|
|
|
* Redistribution of source code of any substantial portion of the Covered
|
|
|
|
* Code or modification without rights to further distribute source must
|
|
|
|
* include the following Disclaimer and Export Compliance provision in the
|
|
|
|
* documentation and/or other materials provided with distribution. In
|
|
|
|
* addition, Licensee may not authorize further sublicense of source of any
|
|
|
|
* portion of the Covered Code, and must include terms to the effect that the
|
|
|
|
* license from Licensee to its licensee is limited to the intellectual
|
|
|
|
* property embodied in the software Licensee provides to its licensee, and
|
|
|
|
* not to intellectual property embodied in modifications its licensee may
|
|
|
|
* make.
|
|
|
|
*
|
|
|
|
* 3.3. Redistribution of Executable. Redistribution in executable form of any
|
|
|
|
* substantial portion of the Covered Code or modification must reproduce the
|
|
|
|
* above Copyright Notice, and the following Disclaimer and Export Compliance
|
|
|
|
* provision in the documentation and/or other materials provided with the
|
|
|
|
* distribution.
|
|
|
|
*
|
|
|
|
* 3.4. Intel retains all right, title, and interest in and to the Original
|
|
|
|
* Intel Code.
|
|
|
|
*
|
|
|
|
* 3.5. Neither the name Intel nor any other trademark owned or controlled by
|
|
|
|
* Intel shall be used in advertising or otherwise to promote the sale, use or
|
|
|
|
* other dealings in products derived from or relating to the Covered Code
|
|
|
|
* without prior written authorization from Intel.
|
|
|
|
*
|
|
|
|
* 4. Disclaimer and Export Compliance
|
|
|
|
*
|
|
|
|
* 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
|
|
|
|
* HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
|
|
|
|
* IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
|
|
|
|
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
|
|
|
|
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
|
|
|
|
* PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
|
|
|
|
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
|
|
|
|
* COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
|
|
|
|
* SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
|
|
|
|
* CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
|
|
|
|
* HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
|
|
|
|
* SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
|
|
|
|
* LIMITED REMEDY.
|
|
|
|
*
|
|
|
|
* 4.3. Licensee shall not export, either directly or indirectly, any of this
|
|
|
|
* software or system incorporating such software without first obtaining any
|
|
|
|
* required license or other approval from the U. S. Department of Commerce or
|
|
|
|
* any other agency or department of the United States Government. In the
|
|
|
|
* event Licensee exports any such software from the United States or
|
|
|
|
* re-exports any such software from a foreign destination, Licensee shall
|
|
|
|
* ensure that the distribution and export/re-export of the software is in
|
|
|
|
* compliance with all laws, regulations, orders, or other restrictions of the
|
|
|
|
* U.S. Export Administration Regulations. Licensee agrees that neither it nor
|
|
|
|
* any of its subsidiaries will export/re-export any technical data, process,
|
|
|
|
* software, or service, directly or indirectly, to any country for which the
|
|
|
|
* United States government or any agency thereof requires an export license,
|
|
|
|
* other governmental approval, or letter of assurance, without first obtaining
|
|
|
|
* such license, approval or letter.
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#define __RSDUMP_C__
|
|
|
|
|
|
|
|
#include "acpi.h"
|
2000-12-01 09:36:25 +00:00
|
|
|
#include "acresrc.h"
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
#define _COMPONENT ACPI_RESOURCES
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_MODULE_NAME ("rsdump")
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
2002-08-29 01:51:24 +00:00
|
|
|
#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
|
2001-09-07 01:22:25 +00:00
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpIrq
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpIrq (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_IRQ *IrqData = (ACPI_RESOURCE_IRQ *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
UINT8 Index = 0;
|
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("IRQ Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" %s Triggered\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_LEVEL_SENSITIVE == IrqData->EdgeLevel ? "Level" : "Edge");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Active %s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_ACTIVE_LOW == IrqData->ActiveHighLow ? "Low" : "High");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" %s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_SHARED == IrqData->SharedExclusive ? "Shared" : "Exclusive");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" %X Interrupts ( ", IrqData->NumberOfInterrupts);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
for (Index = 0; Index < IrqData->NumberOfInterrupts; Index++)
|
|
|
|
{
|
2000-12-08 09:20:40 +00:00
|
|
|
AcpiOsPrintf ("%X ", IrqData->Interrupts[Index]);
|
2000-10-28 05:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
AcpiOsPrintf (")\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpDma
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpDma (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DMA *DmaData = (ACPI_RESOURCE_DMA *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
UINT8 Index = 0;
|
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("DMA Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
switch (DmaData->Type)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_COMPATIBILITY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Compatibility mode\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_TYPE_A:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type A\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_TYPE_B:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type B\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_TYPE_F:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type F\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Invalid DMA type\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" %sBus Master\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_BUS_MASTER == DmaData->BusMaster ? "" : "Not a ");
|
2001-05-29 19:52:40 +00:00
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
switch (DmaData->Transfer)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_TRANSFER_8:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" 8-bit only transfer\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_TRANSFER_8_16:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" 8 and 16-bit transfer\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_TRANSFER_16:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" 16 bit only transfer\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Invalid transfer preference\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Number of Channels: %X ( ", DmaData->NumberOfChannels);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
for (Index = 0; Index < DmaData->NumberOfChannels; Index++)
|
|
|
|
{
|
2000-12-08 09:20:40 +00:00
|
|
|
AcpiOsPrintf ("%X ", DmaData->Channels[Index]);
|
2000-10-28 05:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
AcpiOsPrintf (")\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2002-02-23 05:10:40 +00:00
|
|
|
* FUNCTION: AcpiRsDumpStartDependFns
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
2002-02-23 05:10:40 +00:00
|
|
|
AcpiRsDumpStartDependFns (
|
2002-07-09 17:51:31 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2002-07-09 17:51:31 +00:00
|
|
|
ACPI_RESOURCE_START_DPF *SdfData = (ACPI_RESOURCE_START_DPF *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-09-07 01:22:25 +00:00
|
|
|
AcpiOsPrintf ("Start Dependent Functions Resource\n");
|
2001-05-29 19:52:40 +00:00
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
switch (SdfData->CompatibilityPriority)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_GOOD_CONFIGURATION:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Good configuration\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_ACCEPTABLE_CONFIGURATION:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Acceptable configuration\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_SUB_OPTIMAL_CONFIGURATION:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Sub-optimal configuration\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Invalid compatibility priority\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch(SdfData->PerformanceRobustness)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_GOOD_CONFIGURATION:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Good configuration\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_ACCEPTABLE_CONFIGURATION:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Acceptable configuration\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_SUB_OPTIMAL_CONFIGURATION:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Sub-optimal configuration\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Invalid performance "
|
2000-10-28 05:01:06 +00:00
|
|
|
"robustness preference\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpIo
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpIo (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_IO *IoData = (ACPI_RESOURCE_IO *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("Io Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" %d bit decode\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_DECODE_16 == IoData->IoDecode ? 16 : 10);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range minimum base: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
IoData->MinBaseAddress);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range maximum base: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
IoData->MaxBaseAddress);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Alignment: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
IoData->Alignment);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range Length: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
IoData->RangeLength);
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpFixedIo
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpFixedIo (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_FIXED_IO *FixedIoData = (ACPI_RESOURCE_FIXED_IO *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("Fixed Io Resource\n");
|
|
|
|
AcpiOsPrintf (" Range base address: %08X",
|
2000-10-28 05:01:06 +00:00
|
|
|
FixedIoData->BaseAddress);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range length: %08X",
|
2000-10-28 05:01:06 +00:00
|
|
|
FixedIoData->RangeLength);
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpVendorSpecific
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpVendorSpecific (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_VENDOR *VendorData = (ACPI_RESOURCE_VENDOR *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
UINT16 Index = 0;
|
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("Vendor Specific Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Length: %08X\n", VendorData->Length);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
for (Index = 0; Index < VendorData->Length; Index++)
|
|
|
|
{
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Byte %X: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Index, VendorData->Reserved[Index]);
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpMemory24
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpMemory24 (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_MEM24 *Memory24Data = (ACPI_RESOURCE_MEM24 *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("24-Bit Memory Range Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Read%s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_READ_WRITE_MEMORY ==
|
2000-10-28 05:01:06 +00:00
|
|
|
Memory24Data->ReadWriteAttribute ?
|
|
|
|
"/Write" : " only");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range minimum base: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Memory24Data->MinBaseAddress);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range maximum base: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Memory24Data->MaxBaseAddress);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Alignment: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Memory24Data->Alignment);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range length: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Memory24Data->RangeLength);
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpMemory32
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpMemory32 (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_MEM32 *Memory32Data = (ACPI_RESOURCE_MEM32 *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("32-Bit Memory Range Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Read%s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_READ_WRITE_MEMORY ==
|
2000-10-28 05:01:06 +00:00
|
|
|
Memory32Data->ReadWriteAttribute ?
|
|
|
|
"/Write" : " only");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range minimum base: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Memory32Data->MinBaseAddress);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range maximum base: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Memory32Data->MaxBaseAddress);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Alignment: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Memory32Data->Alignment);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range length: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Memory32Data->RangeLength);
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpFixedMemory32
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
|
|
|
* RETURN:
|
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpFixedMemory32 (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_FIXED_MEM32 *FixedMemory32Data = (ACPI_RESOURCE_FIXED_MEM32 *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("32-Bit Fixed Location Memory Range Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Read%s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_READ_WRITE_MEMORY ==
|
2000-10-28 05:01:06 +00:00
|
|
|
FixedMemory32Data->ReadWriteAttribute ?
|
|
|
|
"/Write" : " Only");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range base address: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
FixedMemory32Data->RangeBaseAddress);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Range length: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
FixedMemory32Data->RangeLength);
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpAddress16
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpAddress16 (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_ADDRESS16 *Address16Data = (ACPI_RESOURCE_ADDRESS16 *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("16-Bit Address Space Resource\n");
|
|
|
|
AcpiOsPrintf (" Resource Type: ");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
switch (Address16Data->ResourceType)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_MEMORY_RANGE:
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
AcpiOsPrintf ("Memory Range\n");
|
|
|
|
|
|
|
|
switch (Address16Data->Attribute.Memory.CacheAttribute)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_NON_CACHEABLE_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Noncacheable memory\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_CACHABLE_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Cacheable memory\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_WRITE_COMBINING_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Write-combining memory\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_PREFETCHABLE_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Prefetchable memory\n");
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Invalid cache attribute\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: Read%s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_READ_WRITE_MEMORY ==
|
2000-10-28 05:01:06 +00:00
|
|
|
Address16Data->Attribute.Memory.ReadWriteAttribute ?
|
|
|
|
"/Write" : " Only");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_IO_RANGE:
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
AcpiOsPrintf ("I/O Range\n");
|
|
|
|
|
|
|
|
switch (Address16Data->Attribute.Io.RangeAttribute)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_NON_ISA_ONLY_RANGES:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Non-ISA Io Addresses\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_ISA_ONLY_RANGES:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"ISA Io Addresses\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_ENTIRE_RANGE:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"ISA and non-ISA Io Addresses\n");
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Invalid range attribute\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_BUS_NUMBER_RANGE:
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
AcpiOsPrintf ("Bus Number Range\n");
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
AcpiOsPrintf ("Invalid resource type. Exiting.\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource %s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_CONSUMER == Address16Data->ProducerConsumer ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"Consumer" : "Producer");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" %s decode\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_SUB_DECODE == Address16Data->Decode ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"Subtractive" : "Positive");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Min address is %s fixed\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_ADDRESS_FIXED == Address16Data->MinAddressFixed ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"" : "not");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Max address is %s fixed\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_ADDRESS_FIXED == Address16Data->MaxAddressFixed ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"" : "not");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Granularity: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Address16Data->Granularity);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address range min: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Address16Data->MinAddressRange);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address range max: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Address16Data->MaxAddressRange);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address translation offset: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Address16Data->AddressTranslationOffset);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address Length: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Address16Data->AddressLength);
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
if (0xFF != Address16Data->ResourceSource.Index)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Source Index: %X\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address16Data->ResourceSource.Index);
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Source: %s\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address16Data->ResourceSource.StringPtr);
|
2000-10-28 05:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpAddress32
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpAddress32 (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_ADDRESS32 *Address32Data = (ACPI_RESOURCE_ADDRESS32 *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("32-Bit Address Space Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
switch (Address32Data->ResourceType)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_MEMORY_RANGE:
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Type: Memory Range\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
switch (Address32Data->Attribute.Memory.CacheAttribute)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_NON_CACHEABLE_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Noncacheable memory\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_CACHABLE_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Cacheable memory\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_WRITE_COMBINING_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Write-combining memory\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_PREFETCHABLE_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Prefetchable memory\n");
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Invalid cache attribute\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: Read%s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_READ_WRITE_MEMORY ==
|
2000-10-28 05:01:06 +00:00
|
|
|
Address32Data->Attribute.Memory.ReadWriteAttribute ?
|
|
|
|
"/Write" : " Only");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_IO_RANGE:
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Type: Io Range\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
switch (Address32Data->Attribute.Io.RangeAttribute)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_NON_ISA_ONLY_RANGES:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Non-ISA Io Addresses\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_ISA_ONLY_RANGES:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"ISA Io Addresses\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_ENTIRE_RANGE:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"ISA and non-ISA Io Addresses\n");
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2000-10-28 05:01:06 +00:00
|
|
|
"Invalid Range attribute");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_BUS_NUMBER_RANGE:
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Type: Bus Number Range\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Invalid Resource Type..exiting.\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource %s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_CONSUMER == Address32Data->ProducerConsumer ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"Consumer" : "Producer");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" %s decode\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_SUB_DECODE == Address32Data->Decode ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"Subtractive" : "Positive");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Min address is %s fixed\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_ADDRESS_FIXED == Address32Data->MinAddressFixed ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"" : "not ");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Max address is %s fixed\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_ADDRESS_FIXED == Address32Data->MaxAddressFixed ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"" : "not ");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Granularity: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Address32Data->Granularity);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address range min: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Address32Data->MinAddressRange);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address range max: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Address32Data->MaxAddressRange);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address translation offset: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Address32Data->AddressTranslationOffset);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address Length: %08X\n",
|
2000-10-28 05:01:06 +00:00
|
|
|
Address32Data->AddressLength);
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
if(0xFF != Address32Data->ResourceSource.Index)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Source Index: %X\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address32Data->ResourceSource.Index);
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Source: %s\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address32Data->ResourceSource.StringPtr);
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpAddress64
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
|
|
|
* RETURN: None
|
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpAddress64 (
|
|
|
|
ACPI_RESOURCE_DATA *Data)
|
|
|
|
{
|
|
|
|
ACPI_RESOURCE_ADDRESS64 *Address64Data = (ACPI_RESOURCE_ADDRESS64 *) Data;
|
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("64-Bit Address Space Resource\n");
|
2001-05-29 19:52:40 +00:00
|
|
|
|
|
|
|
switch (Address64Data->ResourceType)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_MEMORY_RANGE:
|
2001-05-29 19:52:40 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Type: Memory Range\n");
|
2001-05-29 19:52:40 +00:00
|
|
|
|
|
|
|
switch (Address64Data->Attribute.Memory.CacheAttribute)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_NON_CACHEABLE_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2001-05-29 19:52:40 +00:00
|
|
|
"Noncacheable memory\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_CACHABLE_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2001-05-29 19:52:40 +00:00
|
|
|
"Cacheable memory\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_WRITE_COMBINING_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2001-05-29 19:52:40 +00:00
|
|
|
"Write-combining memory\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_PREFETCHABLE_MEMORY:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2001-05-29 19:52:40 +00:00
|
|
|
"Prefetchable memory\n");
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2001-05-29 19:52:40 +00:00
|
|
|
"Invalid cache attribute\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: Read%s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_READ_WRITE_MEMORY ==
|
2001-05-29 19:52:40 +00:00
|
|
|
Address64Data->Attribute.Memory.ReadWriteAttribute ?
|
|
|
|
"/Write" : " Only");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_IO_RANGE:
|
2001-05-29 19:52:40 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Type: Io Range\n");
|
2001-05-29 19:52:40 +00:00
|
|
|
|
|
|
|
switch (Address64Data->Attribute.Io.RangeAttribute)
|
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_NON_ISA_ONLY_RANGES:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2001-05-29 19:52:40 +00:00
|
|
|
"Non-ISA Io Addresses\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_ISA_ONLY_RANGES:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2001-05-29 19:52:40 +00:00
|
|
|
"ISA Io Addresses\n");
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_ENTIRE_RANGE:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2001-05-29 19:52:40 +00:00
|
|
|
"ISA and non-ISA Io Addresses\n");
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Type Specific: "
|
2001-05-29 19:52:40 +00:00
|
|
|
"Invalid Range attribute");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
case ACPI_BUS_NUMBER_RANGE:
|
2001-05-29 19:52:40 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Type: Bus Number Range\n");
|
2001-05-29 19:52:40 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Invalid Resource Type..exiting.\n");
|
2001-05-29 19:52:40 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource %s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_CONSUMER == Address64Data->ProducerConsumer ?
|
2001-05-29 19:52:40 +00:00
|
|
|
"Consumer" : "Producer");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" %s decode\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_SUB_DECODE == Address64Data->Decode ?
|
2001-05-29 19:52:40 +00:00
|
|
|
"Subtractive" : "Positive");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Min address is %s fixed\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_ADDRESS_FIXED == Address64Data->MinAddressFixed ?
|
2001-05-29 19:52:40 +00:00
|
|
|
"" : "not ");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Max address is %s fixed\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_ADDRESS_FIXED == Address64Data->MaxAddressFixed ?
|
2001-05-29 19:52:40 +00:00
|
|
|
"" : "not ");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Granularity: %16X\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address64Data->Granularity);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address range min: %16X\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address64Data->MinAddressRange);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address range max: %16X\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address64Data->MaxAddressRange);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address translation offset: %16X\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address64Data->AddressTranslationOffset);
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Address Length: %16X\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address64Data->AddressLength);
|
|
|
|
|
|
|
|
if(0xFF != Address64Data->ResourceSource.Index)
|
|
|
|
{
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Source Index: %X\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address64Data->ResourceSource.Index);
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Source: %s\n",
|
2001-05-29 19:52:40 +00:00
|
|
|
Address64Data->ResourceSource.StringPtr);
|
2000-10-28 05:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpExtendedIrq
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Prints out the various members of the Data structure type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpExtendedIrq (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_DATA *Data)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE_EXT_IRQ *ExtIrqData = (ACPI_RESOURCE_EXT_IRQ *) Data;
|
2000-10-28 05:01:06 +00:00
|
|
|
UINT8 Index = 0;
|
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("Extended IRQ Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource %s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_CONSUMER == ExtIrqData->ProducerConsumer ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"Consumer" : "Producer");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" %s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_LEVEL_SENSITIVE == ExtIrqData->EdgeLevel ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"Level" : "Edge");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Active %s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_ACTIVE_LOW == ExtIrqData->ActiveHighLow ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"low" : "high");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" %s\n",
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_SHARED == ExtIrqData->SharedExclusive ?
|
2000-10-28 05:01:06 +00:00
|
|
|
"Shared" : "Exclusive");
|
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Interrupts : %X ( ",
|
2000-10-28 05:01:06 +00:00
|
|
|
ExtIrqData->NumberOfInterrupts);
|
|
|
|
|
|
|
|
for (Index = 0; Index < ExtIrqData->NumberOfInterrupts; Index++)
|
|
|
|
{
|
2000-12-08 09:20:40 +00:00
|
|
|
AcpiOsPrintf ("%X ", ExtIrqData->Interrupts[Index]);
|
2000-10-28 05:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
AcpiOsPrintf (")\n");
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
if(0xFF != ExtIrqData->ResourceSource.Index)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Source Index: %X",
|
2001-05-29 19:52:40 +00:00
|
|
|
ExtIrqData->ResourceSource.Index);
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Resource Source: %s",
|
2001-05-29 19:52:40 +00:00
|
|
|
ExtIrqData->ResourceSource.StringPtr);
|
2000-10-28 05:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpResourceList
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the resource structure to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Dispatches the structure to the correct dump routine.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpResourceList (
|
2001-05-29 19:52:40 +00:00
|
|
|
ACPI_RESOURCE *Resource)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
|
|
|
UINT8 Count = 0;
|
|
|
|
BOOLEAN Done = FALSE;
|
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-08-26 22:28:18 +00:00
|
|
|
if (AcpiDbgLevel & ACPI_LV_RESOURCES && _COMPONENT & AcpiDbgLayer)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
|
|
|
while (!Done)
|
|
|
|
{
|
2002-07-09 17:51:31 +00:00
|
|
|
AcpiOsPrintf ("Resource structure %X.\n", Count++);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
switch (Resource->Id)
|
|
|
|
{
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_IRQ:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpIrq (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_DMA:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpDma (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_START_DPF:
|
2002-02-23 05:10:40 +00:00
|
|
|
AcpiRsDumpStartDependFns (&Resource->Data);
|
2000-10-28 05:01:06 +00:00
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_END_DPF:
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("EndDependentFunctions Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
/* AcpiRsDumpEndDependentFunctions (Resource->Data);*/
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_IO:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpIo (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_FIXED_IO:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpFixedIo (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_VENDOR:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpVendorSpecific (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_END_TAG:
|
2000-10-28 05:01:06 +00:00
|
|
|
/*RsDumpEndTag (Resource->Data);*/
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("EndTag Resource\n");
|
2000-10-28 05:01:06 +00:00
|
|
|
Done = TRUE;
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_MEM24:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpMemory24 (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_MEM32:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpMemory32 (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_FIXED_MEM32:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpFixedMemory32 (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_ADDRESS16:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpAddress16 (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_ADDRESS32:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpAddress32 (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
2001-05-29 19:52:40 +00:00
|
|
|
case ACPI_RSTYPE_ADDRESS64:
|
|
|
|
AcpiRsDumpAddress64 (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ACPI_RSTYPE_EXT_IRQ:
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiRsDumpExtendedIrq (&Resource->Data);
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
AcpiOsPrintf ("Invalid resource type\n");
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
Resource = ACPI_PTR_ADD (ACPI_RESOURCE, Resource, Resource->Length);
|
2000-10-28 05:01:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: AcpiRsDumpIrqList
|
|
|
|
*
|
|
|
|
* PARAMETERS: Data - pointer to the routing table to dump.
|
|
|
|
*
|
2001-05-29 19:52:40 +00:00
|
|
|
* RETURN: None
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Dispatches the structures to the correct dump routine.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiRsDumpIrqList (
|
2002-02-23 05:10:40 +00:00
|
|
|
UINT8 *RouteTable)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2002-02-23 05:10:40 +00:00
|
|
|
UINT8 *Buffer = RouteTable;
|
|
|
|
UINT8 Count = 0;
|
|
|
|
BOOLEAN Done = FALSE;
|
|
|
|
ACPI_PCI_ROUTING_TABLE *PrtElement;
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_FUNCTION_ENTRY ();
|
2001-09-07 01:22:25 +00:00
|
|
|
|
|
|
|
|
2001-08-26 22:28:18 +00:00
|
|
|
if (AcpiDbgLevel & ACPI_LV_RESOURCES && _COMPONENT & AcpiDbgLayer)
|
2000-10-28 05:01:06 +00:00
|
|
|
{
|
2002-07-09 17:51:31 +00:00
|
|
|
PrtElement = ACPI_CAST_PTR (ACPI_PCI_ROUTING_TABLE, Buffer);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
while (!Done)
|
|
|
|
{
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf ("PCI IRQ Routing Table structure %X.\n", Count++);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
AcpiOsPrintf (" Address: %8.8X%8.8X\n",
|
|
|
|
ACPI_HIDWORD (PrtElement->Address),
|
|
|
|
ACPI_LODWORD (PrtElement->Address));
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Pin: %X\n", PrtElement->Pin);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" Source: %s\n", PrtElement->Source);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2001-06-29 20:11:04 +00:00
|
|
|
AcpiOsPrintf (" SourceIndex: %X\n",
|
2001-03-05 02:15:19 +00:00
|
|
|
PrtElement->SourceIndex);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
Buffer += PrtElement->Length;
|
|
|
|
|
2002-07-09 17:51:31 +00:00
|
|
|
PrtElement = ACPI_CAST_PTR (ACPI_PCI_ROUTING_TABLE, Buffer);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
if(0 == PrtElement->Length)
|
|
|
|
{
|
|
|
|
Done = TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2001-09-07 01:22:25 +00:00
|
|
|
#endif
|
|
|
|
|