Tests: Port AAPITS suite to current ACPICA. Phase 1 (compile).

Code now compiles on cygwin and windows. Next phase will be to
get the code running properly.
This commit is contained in:
Robert Moore 2009-07-01 14:16:44 -07:00
parent eeb71b76cb
commit f1ce4cf58f
20 changed files with 367 additions and 383 deletions

0
tests/aapits/AcpiApiTS.dsp Executable file → Normal file
View File

263
tests/aapits/Makefile Executable file → Normal file
View File

@ -15,136 +15,143 @@ SRCS= atexec.c atmain.c \
atosxfctrl.c \
atosxfwrap.c \
osunixxf.c \
../../hardware/hwtimer.c \
../../common/getopt.c \
../../debugger/dbcmds.c \
../../debugger/dbdisply.c \
../../debugger/dbexec.c \
../../debugger/dbfileio.c \
../../debugger/dbhistry.c \
../../debugger/dbinput.c \
../../debugger/dbstats.c \
../../debugger/dbutils.c \
../../debugger/dbxface.c \
../../disassembler/dmbuffer.c \
../../disassembler/dmnames.c \
../../disassembler/dmobject.c \
../../disassembler/dmopcode.c \
../../disassembler/dmresrc.c \
../../disassembler/dmresrcl.c \
../../disassembler/dmresrcs.c \
../../disassembler/dmutils.c \
../../disassembler/dmwalk.c \
../../events/evevent.c \
../../events/evgpeblk.c \
../../events/evgpe.c \
../../events/evmisc.c \
../../events/evregion.c \
../../events/evrgnini.c \
../../events/evsci.c \
../../events/evxface.c \
../../events/evxfevnt.c \
../../events/evxfregn.c \
../../hardware/hwacpi.c \
../../hardware/hwgpe.c \
../../hardware/hwregs.c \
../../hardware/hwsleep.c \
../../interpreter/dispatcher/dsfield.c \
../../interpreter/dispatcher/dsinit.c \
../../interpreter/dispatcher/dsmethod.c \
../../interpreter/dispatcher/dsmthdat.c \
../../interpreter/dispatcher/dsobject.c \
../../interpreter/dispatcher/dsopcode.c \
../../interpreter/dispatcher/dsutils.c \
../../interpreter/dispatcher/dswexec.c \
../../interpreter/dispatcher/dswload.c \
../../interpreter/dispatcher/dswscope.c \
../../interpreter/dispatcher/dswstate.c \
../../interpreter/executer/exconfig.c \
../../interpreter/executer/exconvrt.c \
../../interpreter/executer/excreate.c \
../../interpreter/executer/exdump.c \
../../interpreter/executer/exfield.c \
../../interpreter/executer/exfldio.c \
../../interpreter/executer/exmisc.c \
../../interpreter/executer/exmutex.c \
../../interpreter/executer/exnames.c \
../../interpreter/executer/exoparg1.c \
../../interpreter/executer/exoparg2.c \
../../interpreter/executer/exoparg3.c \
../../interpreter/executer/exoparg6.c \
../../interpreter/executer/exprep.c \
../../interpreter/executer/exregion.c \
../../interpreter/executer/exresnte.c \
../../interpreter/executer/exresolv.c \
../../interpreter/executer/exresop.c \
../../interpreter/executer/exstore.c \
../../interpreter/executer/exstoren.c \
../../interpreter/executer/exstorob.c \
../../interpreter/executer/exsystem.c \
../../interpreter/executer/exutils.c \
../../interpreter/parser/psargs.c \
../../interpreter/parser/psloop.c \
../../interpreter/parser/psopcode.c \
../../interpreter/parser/psparse.c \
../../interpreter/parser/psscope.c \
../../interpreter/parser/pstree.c \
../../interpreter/parser/psutils.c \
../../interpreter/parser/pswalk.c \
../../interpreter/parser/psxface.c \
../../namespace/nsaccess.c \
../../namespace/nsalloc.c \
../../namespace/nsdump.c \
../../namespace/nsdumpdv.c \
../../namespace/nseval.c \
../../namespace/nsinit.c \
../../namespace/nsload.c \
../../namespace/nsnames.c \
../../namespace/nsobject.c \
../../namespace/nsparse.c \
../../namespace/nssearch.c \
../../namespace/nsutils.c \
../../namespace/nswalk.c \
../../namespace/nsxfeval.c \
../../namespace/nsxfname.c \
../../namespace/nsxfobj.c \
../../resources/rsaddr.c \
../../resources/rscalc.c \
../../resources/rscreate.c \
../../resources/rsdump.c \
../../resources/rsio.c \
../../resources/rsirq.c \
../../resources/rslist.c \
../../resources/rsmemory.c \
../../resources/rsmisc.c \
../../resources/rsutils.c \
../../resources/rsxface.c \
../../resources/rsinfo.c \
../../tables/tbfind.c \
../../tables/tbinstal.c \
../../tables/tbutils.c \
../../tables/tbxface.c \
../../tables/tbxfroot.c \
../../utilities/utalloc.c \
../../utilities/utcache.c \
../../utilities/utcopy.c \
../../utilities/utdebug.c \
../../utilities/utdelete.c \
../../utilities/uteval.c \
../../utilities/utglobal.c \
../../utilities/utinit.c \
../../utilities/utmath.c \
../../utilities/utmisc.c \
../../utilities/utmutex.c \
../../utilities/utobject.c \
../../utilities/utresrc.c \
../../utilities/utstate.c \
../../utilities/uttrack.c \
../../utilities/utxface.c
# ../../osunixxf.c
../../source/components/hardware/hwtimer.c \
../../source/components/hardware/hwvalid.c \
../../source/components/hardware/hwxface.c \
../../source/common/getopt.c \
../../source/components/debugger/dbcmds.c \
../../source/components/debugger/dbdisply.c \
../../source/components/debugger/dbexec.c \
../../source/components/debugger/dbfileio.c \
../../source/components/debugger/dbhistry.c \
../../source/components/debugger/dbinput.c \
../../source/components/debugger/dbstats.c \
../../source/components/debugger/dbutils.c \
../../source/components/debugger/dbxface.c \
../../source/components/disassembler/dmbuffer.c \
../../source/components/disassembler/dmnames.c \
../../source/components/disassembler/dmobject.c \
../../source/components/disassembler/dmopcode.c \
../../source/components/disassembler/dmresrc.c \
../../source/components/disassembler/dmresrcl.c \
../../source/components/disassembler/dmresrcs.c \
../../source/components/disassembler/dmutils.c \
../../source/components/disassembler/dmwalk.c \
../../source/components/events/evevent.c \
../../source/components/events/evgpeblk.c \
../../source/components/events/evgpe.c \
../../source/components/events/evmisc.c \
../../source/components/events/evregion.c \
../../source/components/events/evrgnini.c \
../../source/components/events/evsci.c \
../../source/components/events/evxface.c \
../../source/components/events/evxfevnt.c \
../../source/components/events/evxfregn.c \
../../source/components/hardware/hwacpi.c \
../../source/components/hardware/hwgpe.c \
../../source/components/hardware/hwregs.c \
../../source/components/hardware/hwsleep.c \
../../source/components/dispatcher/dsfield.c \
../../source/components/dispatcher/dsinit.c \
../../source/components/dispatcher/dsmethod.c \
../../source/components/dispatcher/dsmthdat.c \
../../source/components/dispatcher/dsobject.c \
../../source/components/dispatcher/dsopcode.c \
../../source/components/dispatcher/dsutils.c \
../../source/components/dispatcher/dswexec.c \
../../source/components/dispatcher/dswload.c \
../../source/components/dispatcher/dswscope.c \
../../source/components/dispatcher/dswstate.c \
../../source/components/executer/exconfig.c \
../../source/components/executer/exconvrt.c \
../../source/components/executer/excreate.c \
../../source/components/executer/exdump.c \
../../source/components/executer/exfield.c \
../../source/components/executer/exfldio.c \
../../source/components/executer/exmisc.c \
../../source/components/executer/exmutex.c \
../../source/components/executer/exnames.c \
../../source/components/executer/exoparg1.c \
../../source/components/executer/exoparg2.c \
../../source/components/executer/exoparg3.c \
../../source/components/executer/exoparg6.c \
../../source/components/executer/exprep.c \
../../source/components/executer/exregion.c \
../../source/components/executer/exresnte.c \
../../source/components/executer/exresolv.c \
../../source/components/executer/exresop.c \
../../source/components/executer/exstore.c \
../../source/components/executer/exstoren.c \
../../source/components/executer/exstorob.c \
../../source/components/executer/exsystem.c \
../../source/components/executer/exutils.c \
../../source/components/parser/psargs.c \
../../source/components/parser/psloop.c \
../../source/components/parser/psopcode.c \
../../source/components/parser/psparse.c \
../../source/components/parser/psscope.c \
../../source/components/parser/pstree.c \
../../source/components/parser/psutils.c \
../../source/components/parser/pswalk.c \
../../source/components/parser/psxface.c \
../../source/components/namespace/nsaccess.c \
../../source/components/namespace/nsalloc.c \
../../source/components/namespace/nsdump.c \
../../source/components/namespace/nsdumpdv.c \
../../source/components/namespace/nseval.c \
../../source/components/namespace/nsinit.c \
../../source/components/namespace/nsload.c \
../../source/components/namespace/nsnames.c \
../../source/components/namespace/nsobject.c \
../../source/components/namespace/nsparse.c \
../../source/components/namespace/nspredef.c \
../../source/components/namespace/nsrepair.c \
../../source/components/namespace/nssearch.c \
../../source/components/namespace/nsutils.c \
../../source/components/namespace/nswalk.c \
../../source/components/namespace/nsxfeval.c \
../../source/components/namespace/nsxfname.c \
../../source/components/namespace/nsxfobj.c \
../../source/components/resources/rsaddr.c \
../../source/components/resources/rscalc.c \
../../source/components/resources/rscreate.c \
../../source/components/resources/rsdump.c \
../../source/components/resources/rsio.c \
../../source/components/resources/rsirq.c \
../../source/components/resources/rslist.c \
../../source/components/resources/rsmemory.c \
../../source/components/resources/rsmisc.c \
../../source/components/resources/rsutils.c \
../../source/components/resources/rsxface.c \
../../source/components/resources/rsinfo.c \
../../source/components/tables/tbfadt.c \
../../source/components/tables/tbfind.c \
../../source/components/tables/tbinstal.c \
../../source/components/tables/tbutils.c \
../../source/components/tables/tbxface.c \
../../source/components/tables/tbxfroot.c \
../../source/components/utilities/utalloc.c \
../../source/components/utilities/utcache.c \
../../source/components/utilities/utcopy.c \
../../source/components/utilities/utdebug.c \
../../source/components/utilities/utdelete.c \
../../source/components/utilities/uteval.c \
../../source/components/utilities/utglobal.c \
../../source/components/utilities/utids.c \
../../source/components/utilities/utinit.c \
../../source/components/utilities/utlock.c \
../../source/components/utilities/utmath.c \
../../source/components/utilities/utmisc.c \
../../source/components/utilities/utmutex.c \
../../source/components/utilities/utobject.c \
../../source/components/utilities/utresrc.c \
../../source/components/utilities/utstate.c \
../../source/components/utilities/uttrack.c \
../../source/components/utilities/utxface.c
# ../../source/components/osunixxf.c
CFLAGS+= -Wall -g -D_LINUX -DNDEBUG -D_CONSOLE -DACPI_EXEC_APP -D_MULTI_THREADED -Wstrict-prototypes -I../../include
CFLAGS+= -Wall -g -D_LINUX -DNDEBUG -D_CONSOLE -DACPI_EXEC_APP -D_MULTI_THREADED -Wstrict-prototypes -I../../source/include
acpiexec : $(patsubst %.c,%.o, $(SRCS))

0
tests/aapits/README Executable file → Normal file
View File

View File

@ -18,6 +18,7 @@
#include "acpi.h"
#include "accommon.h"
#include "acparser.h"
#include "amlcode.h"
#include "acnamesp.h"

View File

@ -2,11 +2,11 @@
*
* Module Name: atexec - Support routines for ACPICA API test suite
* based on AcpiExec aeexec.c
* $Revision: 1.1 $
*
*****************************************************************************/
#include "acpi.h"
#include "accommon.h"
#include "acparser.h"
#include "amlcode.h"
#include "acnamesp.h"
@ -1312,7 +1312,7 @@ AeRegionHandler (
if (((ACPI_INTEGER) Address + ByteWidth) >
((ACPI_INTEGER)(BufferAddress) + Length))
{
ACPI_DEBUG_PRINT ((ACPI_DB_WARN,
ACPI_WARNING ((AE_INFO,
"Request on [%4.4s] is beyond region limit Req-%X+%X, Base=%X, Len-%X\n",
(RegionObject->Region.Node)->Name.Ascii, (UINT32) Address,
ByteWidth, (UINT32) BufferAddress, Length));
@ -1454,7 +1454,7 @@ AeInstallHandlers (void)
SpaceId[i], AeRegionHandler, AeRegionInit, NULL);
if (ACPI_FAILURE (Status))
{
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
ACPI_ERROR ((AE_INFO,
"Could not install an OpRegion handler for %s space(%d), %s\n",
AcpiUtGetRegionName((UINT8) SpaceId[i]), SpaceId[i],
AcpiFormatException (Status)));

View File

@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: atfixedevents - ACPICA Fixed Event Management API tests
* $Revision: 1.1 $
*
*****************************************************************************/

View File

@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: atgpe - ACPICA General Purpose Event Management API tests
* $Revision: 1.1 $
*
*****************************************************************************/

View File

@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: atgpe - ACPICA Miscellaneous Handler Support API tests
* $Revision: 1.1 $
*
*****************************************************************************/
@ -1163,7 +1162,6 @@ AtAdrSpaceHandlerCommon (
void *RegionContext,
UINT32 HandlerId)
{
ACPI_STATUS Status = AE_OK;
AT_ADR_SPACE_ACC_DATA *AccData = NULL;
UINT32 i;
@ -1208,7 +1206,7 @@ AtAdrSpaceHandlerCommon (
printf ("AtAdrSpaceHandler%d %d (%d) error: *RegionContext 0x%p,\n"
" does not appropriate any Region\n",
HandlerId, AccData->AccInd, AdrSpaceHandlerCounter,
(UINT32) RegionContext);
RegionContext);
AccData->AccErr++;
return AE_OK;

View File

@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: athardware - ACPICA Hardware Management API tests
* $Revision: 1.1 $
*
*****************************************************************************/
@ -283,9 +282,6 @@ static UINT32 BitRegIds[] =
ACPI_BITREG_POWER_BUTTON_ENABLE,
ACPI_BITREG_SLEEP_BUTTON_ENABLE,
ACPI_BITREG_RT_CLOCK_ENABLE,
#if AT_BITREG_WAKE_ENABLE_CHECK
ACPI_BITREG_WAKE_ENABLE,
#endif
ACPI_BITREG_PCIEXP_WAKE_DISABLE,
ACPI_BITREG_SCI_ENABLE,
ACPI_BITREG_BUS_MASTER_RLD,
@ -293,8 +289,8 @@ static UINT32 BitRegIds[] =
ACPI_BITREG_SLEEP_ENABLE,
ACPI_BITREG_ARB_DISABLE,
/* 3-bit width registers */
ACPI_BITREG_SLEEP_TYPE_A,
ACPI_BITREG_SLEEP_TYPE_B,
ACPI_BITREG_SLEEP_TYPE,
ACPI_BITREG_SLEEP_TYPE,
};
/* Bit registers position */
@ -313,17 +309,13 @@ static UINT32 BitRegPos[] =
0x08 /* ACPI_BITREG_POWER_BUTTON_ENABLE */,
0x09 /* ACPI_BITREG_SLEEP_BUTTON_ENABLE */,
0x0A /* ACPI_BITREG_RT_CLOCK_ENABLE */,
#if AT_BITREG_WAKE_ENABLE_CHECK
0x0F /* ACPI_BITREG_WAKE_ENABLE */,
#endif
0x0E /* ACPI_BITREG_PCIEXP_WAKE_DISABLE */,
0x00 /* ACPI_BITREG_SCI_ENABLE */,
0x01 /* ACPI_BITREG_BUS_MASTER_RLD */,
0x02 /* ACPI_BITREG_GLOBAL_LOCK_RELEASE */,
0x0D /* ACPI_BITREG_SLEEP_ENABLE */,
0x00 /* ACPI_BITREG_ARB_DISABLE */,
0x0A /* ACPI_BITREG_SLEEP_TYPE_A */,
0x0A /* ACPI_BITREG_SLEEP_TYPE_B */,
0x0A /* ACPI_BITREG_SLEEP_TYPE */,
};
static UINT32 StatusRegIds[] =
@ -345,9 +337,6 @@ static UINT32 EnableRegIds[] =
ACPI_BITREG_POWER_BUTTON_ENABLE,
ACPI_BITREG_SLEEP_BUTTON_ENABLE,
ACPI_BITREG_RT_CLOCK_ENABLE,
#if AT_BITREG_WAKE_ENABLE_CHECK
ACPI_BITREG_WAKE_ENABLE,
#endif
ACPI_BITREG_PCIEXP_WAKE_DISABLE,
};
@ -356,8 +345,7 @@ static UINT32 ControlRegIds[] =
ACPI_BITREG_SCI_ENABLE,
ACPI_BITREG_BUS_MASTER_RLD,
ACPI_BITREG_GLOBAL_LOCK_RELEASE,
ACPI_BITREG_SLEEP_TYPE_A,
ACPI_BITREG_SLEEP_TYPE_B,
ACPI_BITREG_SLEEP_TYPE,
ACPI_BITREG_SLEEP_ENABLE,
};
@ -366,8 +354,7 @@ static UINT32 Control2RegIds[] =
ACPI_BITREG_ARB_DISABLE,
};
#define IS3BITREG(BitRegId) ((BitRegId == ACPI_BITREG_SLEEP_TYPE_A) || \
(BitRegId == ACPI_BITREG_SLEEP_TYPE_B))
#define IS3BITREG(BitRegId) (BitRegId == ACPI_BITREG_SLEEP_TYPE)
#define ISWRITE_ONLYBITREG(BitRegId) \
((BitRegId == ACPI_BITREG_GLOBAL_LOCK_RELEASE) || \
(BitRegId == ACPI_BITREG_SLEEP_ENABLE))
@ -485,7 +472,7 @@ AtHardwTest0006(void)
/* Check cleared BitReg */
Status = AcpiGetRegister(RegisterId, &ReturnValue);
Status = AcpiReadBitRegister(RegisterId, &ReturnValue);
if (ACPI_FAILURE(Status))
{
AapiErrors++;
@ -520,7 +507,7 @@ AtHardwTest0006(void)
/* Check BitReg to be set */
Status = AcpiGetRegister(RegisterId, &ReturnValue);
Status = AcpiReadBitRegister(RegisterId, &ReturnValue);
if (ACPI_FAILURE(Status))
{
AapiErrors++;
@ -571,11 +558,13 @@ AtHardwTest0007(void)
for (i = 0; i < MaxId; i++)
{
#if OBSOLETE_CODE
#if !AT_BITREG_WAKE_ENABLE_CHECK
if (i == ACPI_BITREG_WAKE_ENABLE)
{
continue;
}
#endif
#endif
if (IsBitDefinedRegister(i))
@ -583,7 +572,7 @@ AtHardwTest0007(void)
continue;
}
Status = AcpiGetRegister(i, &ReturnValue);
Status = AcpiReadBitRegister(i, &ReturnValue);
if (Status != AE_BAD_PARAMETER)
{
AapiErrors++;
@ -597,7 +586,7 @@ AtHardwTest0007(void)
if (CheckCount < CheckLimit)
{
TestErrors++;
printf ("Test error: number of checks less then expected(%d)\n",
printf ("Test error: number of checks less then expected(%d) limit %u\n",
CheckCount, CheckLimit);
return AE_ERROR;
}
@ -668,7 +657,7 @@ AtHardwTest0008(void)
/* Check setting BitReg to 0 */
Status = AcpiSetRegister(RegisterId, 0);
Status = AcpiWriteBitRegister(RegisterId, 0);
if (ACPI_FAILURE(Status))
{
AapiErrors++;
@ -770,7 +759,7 @@ AtHardwTest0008(void)
NormValue = (IS3BITREG(RegisterId))? 0x07: 0x01;
Status = AcpiSetRegister(RegisterId, NormValue);
Status = AcpiWriteBitRegister(RegisterId, NormValue);
if (ACPI_FAILURE(Status))
{
AapiErrors++;
@ -871,7 +860,7 @@ AtHardwTest0008(void)
}
(void)OsxfCtrlGetFixedReg(RegNum, &IniValue);
Status = AcpiSetRegister(RegisterId, 1);
Status = AcpiWriteBitRegister(RegisterId, 1);
if (ACPI_FAILURE(Status))
{
AapiErrors++;
@ -941,18 +930,20 @@ AtHardwTest0009(void)
for (i = 0; i < MaxId; i++)
{
#if OBSOLETE_CODE
#if !AT_BITREG_WAKE_ENABLE_CHECK
if (i == ACPI_BITREG_WAKE_ENABLE)
{
continue;
}
#endif
#endif
if (IsBitDefinedRegister(i))
{
continue;
}
Status = AcpiSetRegister(i, Value);
Status = AcpiWriteBitRegister(i, Value);
if (Status != AE_BAD_PARAMETER)
{
AapiErrors++;
@ -966,7 +957,7 @@ AtHardwTest0009(void)
if (CheckCount < CheckLimit)
{
TestErrors++;
printf ("Test error: number of checks less then expected(%d)\n",
printf ("Test error: number of checks less then expected(%d) limit %u\n",
CheckCount, CheckLimit);
return AE_ERROR;
}
@ -1062,7 +1053,6 @@ ACPI_STATUS
AtHardwTest0012(void)
{
ACPI_STATUS Status;
ACPI_PHYSICAL_ADDRESS OutVector;
Status = AtSubsystemInit(
AAPITS_INI_DEF,
@ -1072,6 +1062,9 @@ AtHardwTest0012(void)
return Status;
}
#if OBSOLETE_CODE
ACPI_PHYSICAL_ADDRESS OutVector;
Status = AcpiGetFirmwareWakingVector(&OutVector);
if (ACPI_FAILURE(Status))
{
@ -1080,6 +1073,7 @@ AtHardwTest0012(void)
AcpiFormatException(Status));
return Status;
}
#endif
return AtTerminateCtrlCheck(AE_OK, ALL_STAT);
}
@ -1091,7 +1085,6 @@ ACPI_STATUS
AtHardwTest0013(void)
{
ACPI_STATUS Status;
ACPI_PHYSICAL_ADDRESS OutVector;
Status = AtSubsystemInit(AAPITS_INITIALIZE_SS,
0, 0, NULL);
@ -1100,6 +1093,9 @@ AtHardwTest0013(void)
return Status;
}
#if OBSOLETE_CODE
ACPI_PHYSICAL_ADDRESS OutVector;
Status = AcpiGetFirmwareWakingVector(&OutVector);
if (Status != AE_NO_ACPI_TABLES)
{
@ -1108,6 +1104,7 @@ AtHardwTest0013(void)
AcpiFormatException(Status), AcpiFormatException(AE_NO_ACPI_TABLES));
return Status;
}
#endif
return AtTerminateCtrlCheck(AE_OK, ALL_STAT);
}
@ -1127,6 +1124,7 @@ AtHardwTest0014(void)
return Status;
}
#if OBSOLETE_CODE
Status = AcpiGetFirmwareWakingVector(NULL);
if (Status != AE_BAD_PARAMETER)
{
@ -1135,6 +1133,7 @@ AtHardwTest0014(void)
AcpiFormatException(Status), AcpiFormatException(AE_BAD_PARAMETER));
return Status;
}
#endif
return AtTerminateCtrlCheck(AE_OK, ALL_STAT);
}
@ -1432,7 +1431,7 @@ AtHardwTest0020(void)
return AE_OK;
}
ACPI_SYSTEM_XFACE
void ACPI_SYSTEM_XFACE
AtEmulateWakingStatus(void * Context)
{
ACPI_STATUS Status;
@ -1729,7 +1728,7 @@ AtHardwTest0024(void)
/*
* Acquire GlobalLock concurrently
*/
ACPI_SYSTEM_XFACE
void ACPI_SYSTEM_XFACE
AtConcurrentHoldGlobalLock(void * Context)
{
ACPI_STATUS Status;
@ -1759,7 +1758,7 @@ AtConcurrentHoldGlobalLock(void * Context)
*Flag = 1;
ErrorExit:
return 0;
return;
}
static ACPI_STATUS
@ -2345,7 +2344,7 @@ AtHardwTest0035(void)
/*
* Acquire GlobalLock concurrently
*/
ACPI_SYSTEM_XFACE
void ACPI_SYSTEM_XFACE
AtConcurrentAcquireGlobalLock(void * Context)
{
ACPI_STATUS Status;
@ -2365,7 +2364,7 @@ AtConcurrentAcquireGlobalLock(void * Context)
*Flag = 1;
ErrorExit:
return 0;
return;
}
/*
@ -2430,7 +2429,7 @@ AtHardwTest0036(void)
/*
* Emulate Global Lock Interrupt handling
*/
ACPI_SYSTEM_XFACE
void ACPI_SYSTEM_XFACE
AtEmulateEventGlobalXrupt(void * Context)
{
UINT32 RVal;
@ -2477,7 +2476,7 @@ AtEmulateEventGlobalXrupt(void * Context)
*Flag = 1;
ErrorExit:
return 0;
return;
}
ACPI_STATUS
@ -2602,7 +2601,7 @@ AtHardwTest0037(void)
/*
* Release GlobalLock concurrently
*/
ACPI_SYSTEM_XFACE
void ACPI_SYSTEM_XFACE
AtConcurrentReleaseGlobalLock(void * Context)
{
ACPI_STATUS Status;
@ -2616,7 +2615,7 @@ AtConcurrentReleaseGlobalLock(void * Context)
AcpiFormatException(Status));
}
return 0;
return;
}
/*
@ -2808,7 +2807,7 @@ AtHardwTest0039(void)
/*
* Acquire GlobalLock concurrently through AML
*/
ACPI_SYSTEM_XFACE
void ACPI_SYSTEM_XFACE
AtConcurrentHold_GL(void * Context)
{
ACPI_STATUS Status;
@ -2822,7 +2821,7 @@ AtConcurrentHold_GL(void * Context)
*Flag = 1;
ErrorExit:
return 0;
return;
}
ACPI_STATUS

View File

@ -2,7 +2,6 @@
*
* Module Name: atinit - ACPICA Subsystem Initialization, Shutdown, and Status
* API tests
* $Revision: 1.1 $
*
*****************************************************************************/
@ -818,7 +817,7 @@ A warning is issued for tables that do not pass one or more of these tests
return AE_OK;
}
#ifdef ACPI_DEBUGGER
#ifdef xxxxACPI_DEBUGGER
ACPI_EXTERN ACPI_TABLE_HEADER *AcpiGbl_DbTablePtr;
ACPI_EXTERN char *AcpiGbl_DbBuffer;
#endif
@ -833,7 +832,7 @@ AtTerminateCheck(
{
ACPI_STATUS Status;
#ifdef ACPI_DEBUGGER
#ifdef xxxxACPI_DEBUGGER
/* Shut down the debugger */
if (AcpiGbl_DbTablePtr)
{
@ -1026,7 +1025,7 @@ AtInitTermCommonTest(
AcpiFormatException(Status));
return Status;
}
#ifdef ACPI_DEBUGGER
#ifdef xxxxACPI_DEBUGGER
/* Shut down the debugger */
if (AcpiGbl_DbTablePtr)
{
@ -3808,19 +3807,15 @@ ACPI_STATUS AllExceptionsCodes[] = {
AE_STACK_OVERFLOW,
AE_STACK_UNDERFLOW,
AE_NOT_IMPLEMENTED,
AE_VERSION_MISMATCH,
AE_SUPPORT,
AE_SHARE,
AE_LIMIT,
AE_TIME,
AE_UNKNOWN_STATUS,
AE_ACQUIRE_DEADLOCK,
AE_RELEASE_DEADLOCK,
AE_NOT_ACQUIRED,
AE_ALREADY_ACQUIRED,
AE_NO_HARDWARE_RESPONSE,
AE_NO_GLOBAL_LOCK,
AE_LOGICAL_ADDRESS,
AE_ABORT_METHOD,
AE_SAME_HANDLER,
AE_WAKE_ONLY_GPE,
@ -3830,7 +3825,6 @@ ACPI_STATUS AllExceptionsCodes[] = {
AE_BAD_PATHNAME,
AE_BAD_DATA,
AE_BAD_ADDRESS,
AE_ALIGNMENT,
AE_BAD_HEX_CONSTANT,
AE_BAD_OCTAL_CONSTANT,
AE_BAD_DECIMAL_CONSTANT,
@ -3838,10 +3832,7 @@ ACPI_STATUS AllExceptionsCodes[] = {
AE_BAD_HEADER,
AE_BAD_CHECKSUM,
AE_BAD_VALUE,
AE_TABLE_NOT_SUPPORTED,
AE_INVALID_TABLE_LENGTH,
AE_AML_ERROR,
AE_AML_PARSE,
AE_AML_BAD_OPCODE,
AE_AML_NO_OPERAND,
AE_AML_OPERAND_TYPE,
@ -3902,19 +3893,15 @@ char *AllExceptionsStrings[] = {
TO_STRING(AE_STACK_OVERFLOW),
TO_STRING(AE_STACK_UNDERFLOW),
TO_STRING(AE_NOT_IMPLEMENTED),
TO_STRING(AE_VERSION_MISMATCH),
TO_STRING(AE_SUPPORT),
TO_STRING(AE_SHARE),
TO_STRING(AE_LIMIT),
TO_STRING(AE_TIME),
TO_STRING(AE_UNKNOWN_STATUS),
TO_STRING(AE_ACQUIRE_DEADLOCK),
TO_STRING(AE_RELEASE_DEADLOCK),
TO_STRING(AE_NOT_ACQUIRED),
TO_STRING(AE_ALREADY_ACQUIRED),
TO_STRING(AE_NO_HARDWARE_RESPONSE),
TO_STRING(AE_NO_GLOBAL_LOCK),
TO_STRING(AE_LOGICAL_ADDRESS),
TO_STRING(AE_ABORT_METHOD),
TO_STRING(AE_SAME_HANDLER),
TO_STRING(AE_WAKE_ONLY_GPE),
@ -3924,7 +3911,6 @@ char *AllExceptionsStrings[] = {
TO_STRING(AE_BAD_PATHNAME),
TO_STRING(AE_BAD_DATA),
TO_STRING(AE_BAD_ADDRESS),
TO_STRING(AE_ALIGNMENT),
TO_STRING(AE_BAD_HEX_CONSTANT),
TO_STRING(AE_BAD_OCTAL_CONSTANT),
TO_STRING(AE_BAD_DECIMAL_CONSTANT),
@ -3932,10 +3918,7 @@ char *AllExceptionsStrings[] = {
TO_STRING(AE_BAD_HEADER),
TO_STRING(AE_BAD_CHECKSUM),
TO_STRING(AE_BAD_VALUE),
TO_STRING(AE_TABLE_NOT_SUPPORTED),
TO_STRING(AE_INVALID_TABLE_LENGTH),
TO_STRING(AE_AML_ERROR),
TO_STRING(AE_AML_PARSE),
TO_STRING(AE_AML_BAD_OPCODE),
TO_STRING(AE_AML_NO_OPERAND),
TO_STRING(AE_AML_OPERAND_TYPE),

View File

@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: atmain - ACPICA API test suit launcher
* $Revision: 1.1 $
*
*****************************************************************************/

View File

@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: atmemory - ACPICA Memory Management API tests
* $Revision: 1.1 $
*
*****************************************************************************/

View File

@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: atnamespace - ACPICA Namespace Access API tests
* $Revision: 1.1 $
*
*****************************************************************************/
@ -399,8 +398,8 @@ typedef struct at_device_info
UINT32 Valid;
UINT32 CurrentStatus;
ACPI_INTEGER Address;
ACPI_DEVICE_ID HardwareId;
ACPI_DEVICE_ID UniqueId;
char *HardwareId;
char *UniqueId;
/* UINT8 HighestDstates[4];*/
UINT32 HighestDstates4;
UINT32 CidCount;
@ -408,23 +407,23 @@ typedef struct at_device_info
static AT_DEVICE_INFO DeviceInfo0000[] = {
{0x3f, 0xffffffff, ULL_CONST(0xf00000001),
{"PNP0A01"}, {"0"}, 0xffffff01, 1},
"PNP0A01", "0", 0xffffff01, 1},
{0x3f, 0xffffffff, ULL_CONST(0xf00000002),
{"PNP0A02"}, {"1"}, 0xffff02ff, 1},
"PNP0A02", "1", 0xffff02ff, 1},
{0x3f, 0xffffffef, ULL_CONST(0xf00000003),
{"ACPI0A03"}, {"d3l0_UID"}, 0xff03ffff, 2},
"ACPI0A03", "d3l0_UID", 0xff03ffff, 2},
{0x3d, 0x0ffffff7, ULL_CONST(0xf00000004),
{"PNP0A04"}, {"999999999"}, 0x04ffffff, 1},
"PNP0A04", "999999999", 0x04ffffff, 1},
{0x3f, 0x00fffffb, ULL_CONST(0xf00000005),
{"PNP0A05"}, {"100000000"}, 0xffffffff, 1},
"PNP0A05", "100000000", 0xffffffff, 1},
{0x2f, 0x000ffffd, ULL_CONST(0xf00000006),
{"PNP0A06"}, {"d6l0_UID"}, 0x01020304, 1},
"PNP0A06", "d6l0_UID", 0x01020304, 1},
{0x37, 0x0000ffff, ULL_CONST(0xf00000007),
{"ACPI0A07"}, {""}, 0xff02ff01, 3},
"ACPI0A07", "", 0xff02ff01, 3},
{0x3b, 0x0000fffe, ULL_CONST(0xf00000008),
{"PNP0A08"}, {"d8l0_UID"}, 0xd1e2f3ff, 1},
"PNP0A08", "d8l0_UID", 0xd1e2f3ff, 1},
{0x3f, 0x00000000, ULL_CONST(0xf00000009),
{"PNP0A09"}, {"d9l0_UID"}, 0xffffffff, 7},
"PNP0A09", "d9l0_UID", 0xffffffff, 7},
};
typedef struct at_walk_info
@ -615,7 +614,6 @@ typedef struct at_walk_handler_context
typedef struct at_attach_data_stat
{
ACPI_HANDLE Object;
UINT32 Function;
void *Data;
} AT_ATTACH_DATA_STAT;
@ -2251,11 +2249,13 @@ ACPI_STATUS
AtGetObjectInfoCommon(
ACPI_STRING ObjName,
ACPI_STATUS ExpectedStatus,
ACPI_BUFFER *Buffer,
ACPI_DEVICE_INFO **Info,
UINT32 CheckAction)
{
ACPI_STATUS Status;
ACPI_HANDLE ObjHandle;
ACPI_DEVICE_INFO *LocalInfo;
if (CheckAction == 3 && ACPI_FAILURE(Status = AtAuxiliarySsdt(AT_LOAD)))
{
@ -2295,11 +2295,12 @@ AtGetObjectInfoCommon(
}
break;
case 4:
Buffer = NULL;
*Info = NULL;
break;
}
Status = AcpiGetObjectInfo (ObjHandle, Buffer);
Status = AcpiGetObjectInfo (ObjHandle, &LocalInfo);
*Info = LocalInfo;
if (Status != ExpectedStatus)
{
@ -2330,10 +2331,8 @@ AtGetObjectInfoTypeCommon(
ACPI_STRING Node;
UINT32 i;
UINT32 HighestDstates4;
ACPI_BUFFER ReturnBuffer = {ACPI_ALLOCATE_BUFFER};
ACPI_BUFFER ReturnObjBuffer = ReturnBuffer;
ACPI_DEVICE_INFO *Info;
UINT32 Length = sizeof (ACPI_DEVICE_INFO);
if (ACPI_FAILURE(Status = AtAMLcodeFileNameSet("nmsp0000.aml")))
{
@ -2361,7 +2360,7 @@ AtGetObjectInfoTypeCommon(
strcat(Node, PathNames[2 * i + 1]);
Status = AtGetObjectInfoCommon(
Node, ExpectedStatus, &ReturnObjBuffer, 0);
Node, ExpectedStatus, &Info, 0);
if (ACPI_FAILURE(Status))
{
return Status;
@ -2372,16 +2371,13 @@ AtGetObjectInfoTypeCommon(
continue;
}
if (ReturnObjBuffer.Length < Length)
if (!Info)
{
AapiErrors++;
printf ("API Error: Length of %s (%d) < (%d)\n",
PathNames[2 * i + 1],
(UINT32)ReturnObjBuffer.Length, Length);
printf ("API Error: Null return buffer\n");
return AE_ERROR;
}
Info = ReturnObjBuffer.Pointer;
if (strncmp((ACPI_STRING)&Info->Name, PathNames[2 * i + 1],
sizeof (ACPI_NAME)))
{
@ -2436,7 +2432,7 @@ AtGetObjectInfoTypeCommon(
#else
printf ("API Error: Address of %s (0x%X) != (0x%X)\n",
PathNames[2 * i + 1],
Info->Address, ExpectedInfo[i].Address);
(UINT32) Info->Address, (UINT32) ExpectedInfo[i].Address);
#endif
return AE_ERROR;
}
@ -2460,13 +2456,12 @@ AtGetObjectInfoTypeCommon(
return AE_ERROR;
}
if ((Info->Valid & ACPI_VALID_HID) &&
strncmp(Info->HardwareId.Value, ExpectedInfo[i].HardwareId.Value,
ACPI_DEVICE_ID_LENGTH ))
strcmp(Info->HardwareId.String, ExpectedInfo[i].HardwareId))
{
AapiErrors++;
printf ("API Error: HardwareId of %s (%s) != (%s)\n",
PathNames[2 * i + 1],
Info->HardwareId.Value, ExpectedInfo[i].HardwareId.Value);
Info->HardwareId.String, ExpectedInfo[i].HardwareId);
return AE_ERROR;
}
if ((Info->Valid & ACPI_VALID_UID) &&
@ -2475,27 +2470,27 @@ AtGetObjectInfoTypeCommon(
ACPI_DEVICE_ID_LENGTH))
* Update highlighting bug 17
*/
strcmp(Info->UniqueId.Value, ExpectedInfo[i].UniqueId.Value))
strcmp(Info->UniqueId.String, ExpectedInfo[i].UniqueId))
{
AapiErrors++;
printf ("API Error: UniqueId of %s (%s) != (%s)\n",
PathNames[2 * i + 1],
Info->UniqueId.Value, ExpectedInfo[i].UniqueId.Value);
Info->UniqueId.String, ExpectedInfo[i].UniqueId);
return AE_ERROR;
}
if ((Info->Valid & ACPI_VALID_CID) &&
Info->CompatibilityId.Count != ExpectedInfo[i].CidCount)
Info->CompatibleIdList.Count != ExpectedInfo[i].CidCount)
{
AapiErrors++;
printf ("API Error: CidCount of %s (%d) != (%d)\n",
PathNames[2 * i + 1],
Info->CompatibilityId.Count, ExpectedInfo[i].CidCount);
Info->CompatibleIdList.Count, ExpectedInfo[i].CidCount);
return AE_ERROR;
}
}
AcpiOsFree(Info);
ReturnObjBuffer = ReturnBuffer;
// ReturnObjBuffer = ReturnBuffer;
}
return AtTerminateCtrlCheck(AE_OK, ALL_STAT);
@ -2550,7 +2545,7 @@ AtGetObjectInfoException(
{
ACPI_STATUS Status;
ACPI_STRING Node = "\\D1L1.D2L0.D3L0.D4L_.D5L0";
ACPI_BUFFER ReturnBuffer = {ACPI_ALLOCATE_BUFFER};
ACPI_DEVICE_INFO *ReturnBuffer;
if (ACPI_FAILURE(Status = AtAMLcodeFileNameSet("nmsp0000.aml")))
{
@ -2625,9 +2620,10 @@ AtGetObjectInfoExceptionTest(
UINT32 CtrlCheck = ALL_STAT;
UINT32 TMax = 10000;
UINT32 i;
ACPI_BUFFER ReturnBuffer = {ACPI_ALLOCATE_BUFFER};
ACPI_DEVICE_INFO *ReturnBuffer;
ACPI_HANDLE ObjHandle;
for (i = TFst; (i < TMax) && Continue_Cond; i++)
{
printf ("AtGetObjectInfoExceptionTest: i = %d\n", i);
@ -2671,7 +2667,7 @@ AtGetObjectInfoExceptionTest(
Continue_Cond = 0;
if (Status == AE_OK)
{
AcpiOsFree(ReturnBuffer.Pointer);
AcpiOsFree(ReturnBuffer);
}
}
else
@ -5723,7 +5719,6 @@ static UINT8 DataBuffer[3] = {0, 1, 2};
void \
AttachDataHandler##Hid( \
ACPI_HANDLE Object, \
UINT32 Function, \
void *Data) \
{ \
UINT32 HandlerId = Hid; \
@ -5733,11 +5728,10 @@ AttachDataHandler##Hid( \
if ((i = AttachDataCounter[HandlerId]++) < MAX_ATTACH_DATA_STAT) \
{ \
Stat[i].Object = Object; \
Stat[i].Function = Function; \
Stat[i].Data = Data; \
} \
printf ("AttachDataHandler%d %d: Object 0x%p, Func %d, Data 0x%p\n", \
Hid, i, Object, Function, Data); \
printf ("AttachDataHandler%d %d: Object 0x%p, Data 0x%p\n", \
Hid, i, Object, Data); \
if (Hid == 1) \
{ \
AcpiDetachData(Object, AttachDataHandler##Hid); \
@ -5752,7 +5746,7 @@ DEF_ATTACH_DATA_HANDLER(2)
/*
* Release GlobalLock concurrently
*/
ACPI_SYSTEM_XFACE
void ACPI_SYSTEM_XFACE
AtConcurrentMethodCall(void * Context)
{
ACPI_STATUS Status;
@ -5768,7 +5762,7 @@ AtConcurrentMethodCall(void * Context)
Pathname, AcpiFormatException(Status));
}
return 0;
return;
}
ACPI_STATUS
@ -5787,7 +5781,6 @@ AtAttachDataCommon(
ACPI_HANDLE *Objects;
AT_ATTACH_DATA_STAT *Stat;
// UINT32 Function = ACPI_NS_NODE_DEL;
UINT32 Function = 0;
UINT32 i, j, ExpectedCounter;
if (NumId > 3)
@ -5998,14 +5991,6 @@ AtAttachDataCommon(
Stat[0].Object, Objects[HandleId[i]]);
return AE_ERROR;
}
if (Stat[0].Function != Function)
{
AapiErrors++;
printf ("API Error: Handler's Function (0x%x) is different from"
" expected (0x%x)\n",
Stat[0].Function, Function);
return AE_ERROR;
}
if (Stat[0].Data != Data[i])
{
AapiErrors++;
@ -6323,7 +6308,6 @@ AtDetachDataCommon(
ACPI_HANDLE Object;
AT_ATTACH_DATA_STAT *Stat;
ACPI_STRING UpdateMethod = "\\M120";
UINT32 Function = 0;
UINT32 i, j, ExpectedCounter;
if (NumId > 3)
@ -6487,14 +6471,6 @@ AtDetachDataCommon(
Stat[0].Object, Object);
return AE_ERROR;
}
if (Stat[0].Function != Function)
{
AapiErrors++;
printf ("API Error: Handler's Function (0x%x) is different from"
" expected (0x%x)\n",
Stat[0].Function, Function);
return AE_ERROR;
}
if (Stat[0].Data != Data[i])
{
AapiErrors++;
@ -6746,7 +6722,6 @@ AtGetDataCommon(
ACPI_STATUS Status;
ACPI_HANDLE Object;
AT_ATTACH_DATA_STAT *Stat;
UINT32 Function = 0;
UINT32 i = 0;
void *RetData, **RetDataPointer = &RetData;
@ -6909,14 +6884,6 @@ AtGetDataCommon(
Stat[0].Object, Object);
return AE_ERROR;
}
if (Stat[0].Function != Function)
{
AapiErrors++;
printf ("API Error: Handler's Function (0x%x) is different from"
" expected (0x%x)\n",
Stat[0].Function, Function);
return AE_ERROR;
}
if (Stat[0].Data != Data[i])
{
AapiErrors++;

View File

@ -8,6 +8,7 @@
#define _ATOSXFCTRL
#include "acpi.h"
#include "accommon.h"
/*
* AcpiOs* interfaces enumeration
@ -272,6 +273,22 @@ extern ACPI_OSXF_CONTROL Init_OsxfCtrl;
AT_ACT_EXIT(inds); \
}
#define AT_CHCK_RET_ZERO(inds) \
if (Ctrl->CtrlAct.CallsCount && \
Ctrl->CallsCount >= Ctrl->CtrlAct.CallsCount) \
{ \
if (Ctrl->CtrlAct.ActCode == AtActRet_NULL) \
{ \
if (Ctrl->CtrlAct.ActFlag == AtActD_OneTime) \
{\
Ctrl->CtrlAct.CallsCount = 0; \
} \
Ctrl->CtrlAct.ActOsxf = OSXF_NUM(inds); \
return 0; \
} \
AT_ACT_EXIT(inds); \
}
#define AT_CHCK_RET_NO_MEMORY(inds) \
if (Ctrl->CtrlAct.CallsCount && \
Ctrl->CallsCount >= Ctrl->CtrlAct.CallsCount) \

View File

@ -4,13 +4,12 @@
*
* supporting the ACPICA API test suite actions
*
* $Revision: 1.1 $
*
*****************************************************************************/
#include <stdio.h>
#include "acpi.h"
#include "accommon.h"
#include "atcommon.h"
#include "atosxfctrl.h"
@ -142,7 +141,7 @@ AcpiOsGetRootPointer (
ACPI_PHYSICAL_ADDRESS Pointer;
AT_CTRL_DECL0(AcpiOsGetRootPointer);
AT_CHCK_RET_NULL(AcpiOsGetRootPointer);
AT_CHCK_RET_ZERO(AcpiOsGetRootPointer);
Pointer = AcpiOsActualGetRootPointer();
@ -437,8 +436,8 @@ AcpiOsMapMemory (
*/
void *
AcpiOsMapMemory (
ACPI_NATIVE_UINT Where,
ACPI_NATIVE_UINT Length)
ACPI_PHYSICAL_ADDRESS Where,
ACPI_SIZE Length)
{
void *Mem;
AT_CTRL_DECL0(AcpiOsMapMemory);
@ -711,7 +710,7 @@ AcpiOsDeleteLock (
}
ACPI_NATIVE_UINT
ACPI_CPU_FLAGS
AcpiOsAcquireLock (
ACPI_HANDLE Handle)
{
@ -726,7 +725,7 @@ AcpiOsAcquireLock (
void
AcpiOsReleaseLock (
ACPI_HANDLE Handle,
ACPI_NATIVE_UINT Flags)
ACPI_CPU_FLAGS Flags)
{
AT_CTRL_DECL0(AcpiOsReleaseLock);

View File

@ -29,7 +29,7 @@ AcpiOsActualGetRootPointer (
UINT32 Flags,
ACPI_POINTER *Address);
*/
ACPI_NATIVE_UINT
ACPI_PHYSICAL_ADDRESS
AcpiOsActualGetRootPointer (
void);
@ -76,14 +76,14 @@ void
AcpiOsActualDeleteLock (
ACPI_HANDLE Handle);
ACPI_NATIVE_UINT
ACPI_CPU_FLAGS
AcpiOsActualAcquireLock (
ACPI_HANDLE Handle);
void
AcpiOsActualReleaseLock (
ACPI_HANDLE Handle,
ACPI_NATIVE_UINT Flags);
ACPI_CPU_FLAGS Flags);
/*
@ -106,8 +106,8 @@ AcpiOsActualMapMemory (
*/
void *
AcpiOsActualMapMemory (
ACPI_NATIVE_UINT Where,
ACPI_NATIVE_UINT Length);
ACPI_PHYSICAL_ADDRESS Where,
ACPI_SIZE Length);
void
AcpiOsActualUnmapMemory (

View File

@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: atresource - ACPICA Resource Management API tests
* $Revision: 1.1 $
*
*****************************************************************************/
@ -2182,14 +2181,14 @@ AtRsrcTest0031(void)
ACPI_STATUS Status;
Status = AtWalkResourcesTestCommon("_CRS",
AE_UNKNOWN_STATUS, AE_UNKNOWN_STATUS, 1, 16);
AE_ERROR, AE_ERROR, 1, 16);
if (ACPI_FAILURE(Status))
{
return Status;
}
Status = AtWalkResourcesTestCommon("_PRS",
AE_UNKNOWN_STATUS, AE_UNKNOWN_STATUS, 1, 16);
AE_ERROR, AE_ERROR, 1, 16);
if (ACPI_FAILURE(Status))
{
return Status;
@ -2733,7 +2732,9 @@ AtRsrcTest0035(void)
return AtTerminateCtrlCheck(AE_OK, ALL_STAT);
}
typedef struct {UINT8 Bytes[1280];} UINT8ARR;
typedef struct {
UINT8 Bytes[1280];
} UINT8ARR;
static UINT32 BufLen0036[] = {
6, 5, 5, 10, 6, 10, 14, 22, 14, 26, 62, 42,
@ -2743,58 +2744,58 @@ static UINT32 BufLen0036[] = {
};
static UINT8ARR Buffer0036[] = {
{0x23, 0x01, 0x00, 0x00, 0x79, 0x00},
{0x22, 0x02, 0x00, 0x79, 0x00},
{0x2a, 0x04, 0x02, 0x79, 0x00},
{0x47, 0x01, 0xf1, 0xf0, 0xf3, 0xf2, 0xf4, 0xf5, 0x79, 0x00},
{0x4b, 0xf1, 0xf0, 0xf2, 0x79, 0x00},
{0x77, 0x00, 0xa2, 0xb3, 0x76, 0xd5, 0xe6, 0xf7, 0x79, 0x00},
{0x81, 0x09, 0x00, 0x01, 0xf1, 0xf0, 0xf3, 0xf2, 0xf5, 0xf4, 0xf7, 0xf6, 0x79, 0x00},
{0x85, 0x11, 0x00, 0x01,
{{0x23, 0x01, 0x00, 0x00, 0x79, 0x00}},
{{0x22, 0x02, 0x00, 0x79, 0x00}},
{{0x2a, 0x04, 0x02, 0x79, 0x00}},
{{0x47, 0x01, 0xf1, 0xf0, 0xf3, 0xf2, 0xf4, 0xf5, 0x79, 0x00}},
{{0x4b, 0xf1, 0xf0, 0xf2, 0x79, 0x00}},
{{0x77, 0x00, 0xa2, 0xb3, 0x76, 0xd5, 0xe6, 0xf7, 0x79, 0x00}},
{{0x81, 0x09, 0x00, 0x01, 0xf1, 0xf0, 0xf3, 0xf2, 0xf5, 0xf4, 0xf7, 0xf6, 0x79, 0x00}},
{{0x85, 0x11, 0x00, 0x01,
0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
{0x86, 0x09, 0x00, 0x00,
0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4, 0x79, 0x00},
{0x84, 0x15, 0x00, 0x9f,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00}},
{{0x86, 0x09, 0x00, 0x00,
0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4, 0x79, 0x00}},
{{0x84, 0x15, 0x00, 0x9f,
0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
0x00, 0x01, 0x02, 0x03, 0x79, 0x00},
{0x8a, 0x39, 0x00, 0x01, 0x0f, 0x33,
0x00, 0x01, 0x02, 0x03, 0x79, 0x00}},
{{0x8a, 0x39, 0x00, 0x01, 0x0f, 0x33,
0xdf, 0xde, 0xdd, 0xdc, 0xdb, 0xda, 0xd9, 0xd8,
0xe7, 0xe6, 0xe5, 0xe4, 0xe3, 0xe2, 0xe1, 0xe0,
0xef, 0xee, 0xed, 0xec, 0xeb, 0xea, 0xe9, 0xe8,
0xf7, 0xf6, 0xf5, 0xf4, 0xf3, 0xf2, 0xf1, 0xf0,
0xff, 0xfe, 0xfd, 0xfc, 0xfb, 0xfa, 0xf9, 0xf8,
0xff, 0x50, 0x41, 0x54, 0x48, 0x50, 0x41, 0x54,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00},
{0x87, 0x25, 0x00, 0x01, 0x0f, 0x33, 0xef, 0xee, 0xed, 0xec,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00}},
{{0x87, 0x25, 0x00, 0x01, 0x0f, 0x33, 0xef, 0xee, 0xed, 0xec,
0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc,
0xff, 0x50, 0x41, 0x54, 0x48, 0x50, 0x41, 0x54,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00},
{0x88, 0x1b, 0x00, 0x01, 0x0f, 0x33,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00}},
{{0x88, 0x1b, 0x00, 0x01, 0x0f, 0x33,
0xf7, 0xf6, 0xf9, 0xf8, 0xfb, 0xfa, 0xfd, 0xfc, 0xff, 0xfe,
0xff, 0x50, 0x41, 0x54, 0x48, 0x50, 0x41, 0x54,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00},
{0x8a, 0x39, 0x00, 0x00, 0x0f, 0x30,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00}},
{{0x8a, 0x39, 0x00, 0x00, 0x0f, 0x30,
0xdf, 0xde, 0xdd, 0xdc, 0xdb, 0xda, 0xd9, 0xd8,
0xe7, 0xe6, 0xe5, 0xe4, 0xe3, 0xe2, 0xe1, 0xe0,
0xef, 0xee, 0xed, 0xec, 0xeb, 0xea, 0xe9, 0xe8,
0xf7, 0xf6, 0xf5, 0xf4, 0xf3, 0xf2, 0xf1, 0xf0,
0xff, 0xfe, 0xfd, 0xfc, 0xfb, 0xfa, 0xf9, 0xf8,
0xff, 0x50, 0x41, 0x54, 0x48, 0x50, 0x41, 0x54,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00},
{0x87, 0x25, 0x00, 0x00, 0x0f, 0x30,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00}},
{{0x87, 0x25, 0x00, 0x00, 0x0f, 0x30,
0xef, 0xee, 0xed, 0xec,
0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc,
0xff, 0x50, 0x41, 0x54, 0x48, 0x50, 0x41, 0x54,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00},
{0x88, 0x1b, 0x00, 0x02, 0x0f, 0x00,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00}},
{{0x88, 0x1b, 0x00, 0x02, 0x0f, 0x00,
0xf7, 0xf6, 0xf9, 0xf8, 0xfb, 0xfa, 0xfd, 0xfc, 0xff, 0xfe,
0xff, 0x50, 0x41, 0x54, 0x48, 0x50, 0x41, 0x54,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00},
{0x89, 0xc8, 0x04, 0x0f, 0xff,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00}},
{{0x89, 0xc8, 0x04, 0x0f, 0xff,
1, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0,
5, 0, 0, 0, 6, 0, 0, 0, 7, 0, 0, 0, 8, 0, 0, 0,
9, 0, 0, 0, 10, 0, 0, 0, 11, 0, 0, 0, 12, 0, 0, 0,
@ -2885,121 +2886,121 @@ static UINT8ARR Buffer0036[] = {
0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79,
0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x20, 0x21, 0x22,
0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a,
0x00, 0x79, 0x00},
{0x82, 0x0c, 0x00, 0x7f, 0xf0, 0xf1, 0x00,
0xf9, 0xf8, 0xf7, 0xf6, 0xf5, 0xf4, 0xf3, 0xf2, 0x79, 0x00},
{0x8b, 0x35, 0x00, 0x01, 0x0f, 0x33, 0x01, 0x00,
0x00, 0x79, 0x00}},
{{0x82, 0x0c, 0x00, 0x7f, 0xf0, 0xf1, 0x00,
0xf9, 0xf8, 0xf7, 0xf6, 0xf5, 0xf4, 0xf3, 0xf2, 0x79, 0x00}},
{{0x8b, 0x35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 0x5a,
0xf7, 0xf6, 0xf9, 0xf8, 0xfb, 0xfa, 0xfd, 0xfc, 0xff, 0xfe,
0xff, 0x50, 0x41, 0x54, 0x48, 0x50, 0x41, 0x54,
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00},
{0x79, 0x00},
0x48, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00}},
{{0x79, 0x00}},
{0x89, 0x06, 0x00, 0x00, 0x01,
0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
{0x89, 0x0a, 0x00, 0x08, 0x02,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
{0x89, 0x0e, 0x00, 0x04, 0x03,
{{0x89, 0x06, 0x00, 0x00, 0x01,
0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00}},
{{0x89, 0x0a, 0x00, 0x08, 0x02,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00}},
{{0x89, 0x0e, 0x00, 0x04, 0x03,
0xf7, 0xf6, 0xf5, 0xf4,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
{0x89, 0x12, 0x00, 0x0c, 0x04,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00}},
{{0x89, 0x12, 0x00, 0x0c, 0x04,
0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
{0x89, 0x16, 0x00, 0x02, 0x05,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00}},
{{0x89, 0x16, 0x00, 0x02, 0x05,
0xef, 0xee, 0xed, 0xec,
0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0x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 0xe8, 0xef, 0xee, 0xed, 0xec,
0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
{0x31, 0x00, 0x38, 0x31, 0x04, 0x31, 0x08, 0x38, 0x31, 0x01, 0x30,
0x31, 0x09, 0x38, 0x31, 0x02, 0x38, 0x31, 0x06, 0x38, 0x31, 0x0a, 0x38, 0x79, 0x00},
0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00}},
{{0x31, 0x00, 0x38, 0x31, 0x04, 0x31, 0x08, 0x38, 0x31, 0x01, 0x30,
0x31, 0x09, 0x38, 0x31, 0x02, 0x38, 0x31, 0x06, 0x38, 0x31, 0x0a, 0x38, 0x79, 0x00}},
};
@ -3123,8 +3124,8 @@ struct acpi_pci_link_irq {
UINT8 resource_type;
UINT8 possible_count;
UINT8 possible[ACPI_PCI_LINK_MAX_POSSIBLE];
UINT8 initialized:1;
UINT8 reserved:7;
UINT8 initialized;
UINT8 reserved;
};
struct acpi_pci_link {
@ -3258,10 +3259,12 @@ AtRsrcTest0037(void)
link.handle = Device;
for (i = 0; i < 8; i++)
{
link.irq.resource_type = (i % 2)? ACPI_RESOURCE_TYPE_EXTENDED_IRQ:
ACPI_RESOURCE_TYPE_IRQ;
link.irq.triggering = (i >> 1) % 2;
link.irq.polarity = (i >> 2) % 2;
link.irq.resource_type = (UINT8) ((i % 2) ?
ACPI_RESOURCE_TYPE_EXTENDED_IRQ :
ACPI_RESOURCE_TYPE_IRQ);
link.irq.triggering = (UINT8) ((i >> 1) % 2);
link.irq.polarity = (UINT8) ((i >> 2) % 2);
if (acpi_pci_link_set(&link, irq))
{
@ -3277,4 +3280,4 @@ AtRsrcTest0037(void)
}
return AE_OK;
}
}

View File

@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: attable - ACPICA Table Management API tests
* $Revision: 1.1 $
*
*****************************************************************************/
@ -2074,7 +2073,7 @@ AtCheckGetTableHeader(void)
}
if (ACPI_COMPARE_NAME(TableSignSet[i], ACPI_SIG_FADT) &&
TablePointer->Revision < FADT2_REVISION_ID)
TablePointer->Revision < 3)
{
/* Check Length field */
if (OutTableHeader.Length != ACPI_FADT_OFFSET (ResetRegister))
@ -2347,7 +2346,7 @@ AtTableTest0045(void)
for (i = 0; i < ACPI_NUM_TABLE_TYPES; i++)
{
if (ACPI_COMPARE_NAME(TableSignSet[i], , ACPI_SIG_PSDT) ||
if (ACPI_COMPARE_NAME(TableSignSet[i], ACPI_SIG_PSDT) ||
ACPI_COMPARE_NAME(TableSignSet[i], ACPI_SIG_SSDT))
{
continue;
@ -2563,7 +2562,7 @@ AtCheckGetTable(void)
}
if (ACPI_COMPARE_NAME(TableSignSet[i], ACPI_SIG_FADT) &&
TablePointer->Revision < FADT2_REVISION_ID)
TablePointer->Revision < 3)
{
/* Check Length field */
if (OutTableHeader->Length != ACPI_FADT_OFFSET (ResetRegister))
@ -2829,7 +2828,7 @@ AtTableTest0054(void)
for (i = 0; i < ACPI_NUM_TABLE_TYPES; i++)
{
if (ACPI_COMPARE_NAME(TableSignSet[i], , ACPI_SIG_PSDT) ||
if (ACPI_COMPARE_NAME(TableSignSet[i], ACPI_SIG_PSDT) ||
ACPI_COMPARE_NAME(TableSignSet[i], ACPI_SIG_SSDT))
{
continue;

View File

@ -126,6 +126,7 @@
#include <sys/time.h>
#include "acpi.h"
#include "accommon.h"
#include "amlcode.h"
#include "acparser.h"
#include "acdebug.h"
@ -253,12 +254,15 @@ AcpiOsActualTableOverride (
/* This code exercises the table override mechanism in the core */
#if OBSOLETE_CODE
if (ACPI_COMPARE_NAME (ExistingTable->Signature, ACPI_SIG_DSDT))
{
/* override DSDT with itself */
*NewTable = AcpiGbl_DbTablePtr;
}
#endif
return (AE_OK);
#else
return AE_NO_ACPI_TABLES;
@ -469,13 +473,22 @@ AcpiOsActualGetLine (
void *
AcpiOsActualMapMemory (
ACPI_NATIVE_UINT Where,
ACPI_NATIVE_UINT Length)
ACPI_PHYSICAL_ADDRESS Where,
ACPI_SIZE length)
{
return (void *)Where;
}
void
AcpiOsActualUnmapMemory (
void *where,
ACPI_SIZE length)
{
return;
}
/******************************************************************************
*
* FUNCTION: AcpiOsUnmapMemory
@ -490,13 +503,13 @@ AcpiOsActualMapMemory (
*
*****************************************************************************/
void
AcpiOsActualUnmapMemory (
void *where,
void *
xxxxAcpiOsMapMemory (
ACPI_PHYSICAL_ADDRESS Where,
ACPI_SIZE length)
{
return;
return (void *)Where;
}
@ -1107,7 +1120,7 @@ AcpiOsActualWriteMemory (
ACPI_THREAD_ID
AcpiOsActualGetThreadId(void)
{
return getpid();
return ((ACPI_THREAD_ID) getpid());
}

View File

@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: oswinxf - Windows OSL
* $Revision: 1.1 $
*
*****************************************************************************/
@ -139,6 +138,7 @@
#include <time.h>
#include "acpi.h"
#include "accommon.h"
#include "acdebug.h"
#include "atosxfwrap.h"
@ -471,13 +471,15 @@ AcpiOsActualTableOverride (
/* This code exercises the table override mechanism in the core */
// if (ACPI_COMPARE_NAME (ExistingTable->Signature, DSDT_SIG))
#ifdef OBSOLETE_CODE
if (ACPI_COMPARE_NAME (ExistingTable->Signature, ACPI_SIG_DSDT))
{
/* override DSDT with itself */
*NewTable = AcpiGbl_DbTablePtr;
}
#endif
#else
@ -759,8 +761,8 @@ AcpiOsActualMapMemory (
*/
void *
AcpiOsActualMapMemory (
ACPI_NATIVE_UINT Where,
ACPI_NATIVE_UINT Length)
ACPI_PHYSICAL_ADDRESS Where,
ACPI_SIZE Length)
{
return (void *)Where;
}