157#define ACPI_CA_VERSION 0x20240322
177#ifdef DEFINE_ACPI_GLOBALS
178#define ACPI_GLOBAL(type,name) \
182#define ACPI_INIT_GLOBAL(type,name,value) \
187#define ACPI_GLOBAL(type,name) \
191#ifndef ACPI_INIT_GLOBAL
192#define ACPI_INIT_GLOBAL(type,name,value) \
202#ifndef ACPI_EXTERNAL_RETURN_STATUS
203#define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \
207#ifndef ACPI_EXTERNAL_RETURN_OK
208#define ACPI_EXTERNAL_RETURN_OK(Prototype) \
212#ifndef ACPI_EXTERNAL_RETURN_VOID
213#define ACPI_EXTERNAL_RETURN_VOID(Prototype) \
217#ifndef ACPI_EXTERNAL_RETURN_UINT32
218#define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \
222#ifndef ACPI_EXTERNAL_RETURN_PTR
223#define ACPI_EXTERNAL_RETURN_PTR(Prototype) \
248ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableInterpreterSlack, FALSE);
257ACPI_INIT_GLOBAL (UINT8, AcpiGbl_AutoSerializeMethods, TRUE);
264ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CreateOsiMethod, TRUE);
270ACPI_INIT_GLOBAL (UINT8, AcpiGbl_UseDefaultRegisterWidths, TRUE);
280ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableTableValidation, TRUE);
285ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableAmlDebugObject, FALSE);
293ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CopyDsdtLocally, FALSE);
301ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DoNotUseXsdt, FALSE);
311ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE);
320ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE);
328ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
334ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
340ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
345ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE);
351ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
358ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
365ACPI_INIT_GLOBAL (UINT32, AcpiGbl_MaxLoopIterations, ACPI_MAX_LOOP_TIMEOUT);
375ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_IgnorePackageResolutionErrors, FALSE);
381ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
382ACPI_INIT_GLOBAL (
const char *, AcpiGbl_TraceMethodName, NULL);
383ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT);
384ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT);
391#ifdef ACPI_DEBUG_OUTPUT
392ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_DEBUG_DEFAULT);
394ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_NORMAL_DEFAULT);
396ACPI_INIT_GLOBAL (UINT32, AcpiDbgLayer, ACPI_COMPONENT_DEFAULT);
400ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisplayDebugTimer, FALSE);
407ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_MethodExecuting, FALSE);
408ACPI_GLOBAL (
char, AcpiGbl_DbLineBuf[ACPI_DB_LINE_BUFFER_SIZE]);
415ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
416ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
442#if (!ACPI_REDUCED_HARDWARE)
443#define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
444 ACPI_EXTERNAL_RETURN_STATUS(Prototype)
446#define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
447 ACPI_EXTERNAL_RETURN_OK(Prototype)
449#define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \
450 ACPI_EXTERNAL_RETURN_UINT32(prototype)
452#define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
453 ACPI_EXTERNAL_RETURN_VOID(Prototype)
456#define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
457 static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
459#define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
460 static ACPI_INLINE Prototype {return(AE_OK);}
462#define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \
463 static ACPI_INLINE prototype {return(0);}
465#define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
466 static ACPI_INLINE Prototype {return;}
478#ifndef ACPI_NO_ERROR_MESSAGES
479#define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
483#define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
484 static ACPI_INLINE Prototype {return;}
496#ifdef ACPI_DEBUG_OUTPUT
497#define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
501#define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
502 static ACPI_INLINE Prototype {return;}
514#ifdef ACPI_APPLICATION
515#define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
519#define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
520 static ACPI_INLINE Prototype {return;}
533#define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
534 ACPI_EXTERNAL_RETURN_OK(Prototype)
536#define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
537 ACPI_EXTERNAL_RETURN_VOID(Prototype)
540#define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
541 static ACPI_INLINE Prototype {return(AE_OK);}
543#define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
544 static ACPI_INLINE Prototype {return;}
558ACPI_EXTERNAL_RETURN_STATUS (
559ACPI_STATUS ACPI_INIT_FUNCTION
560AcpiInitializeTables (
562 UINT32 InitialTableCount,
563 BOOLEAN AllowResize))
565ACPI_EXTERNAL_RETURN_STATUS (
566ACPI_STATUS ACPI_INIT_FUNCTION
567AcpiInitializeSubsystem (
570ACPI_EXTERNAL_RETURN_STATUS (
571ACPI_STATUS ACPI_INIT_FUNCTION
575ACPI_EXTERNAL_RETURN_STATUS (
576ACPI_STATUS ACPI_INIT_FUNCTION
577AcpiInitializeObjects (
580ACPI_EXTERNAL_RETURN_STATUS (
581ACPI_STATUS ACPI_INIT_FUNCTION
589ACPI_HW_DEPENDENT_RETURN_STATUS (
594ACPI_HW_DEPENDENT_RETURN_STATUS (
599ACPI_EXTERNAL_RETURN_STATUS (
604ACPI_EXTERNAL_RETURN_STATUS (
609ACPI_EXTERNAL_RETURN_STATUS (
614ACPI_EXTERNAL_RETURN_PTR (
617 ACPI_STATUS Exception))
619ACPI_EXTERNAL_RETURN_STATUS (
621AcpiPurgeCachedObjects (
624ACPI_EXTERNAL_RETURN_STATUS (
626AcpiInstallInterface (
627 ACPI_STRING InterfaceName))
629ACPI_EXTERNAL_RETURN_STATUS (
632 ACPI_STRING InterfaceName))
634ACPI_EXTERNAL_RETURN_STATUS (
636AcpiUpdateInterfaces (
639ACPI_EXTERNAL_RETURN_UINT32 (
641AcpiCheckAddressRange (
642 ACPI_ADR_SPACE_TYPE SpaceId,
643 ACPI_PHYSICAL_ADDRESS Address,
647ACPI_EXTERNAL_RETURN_STATUS (
658ACPI_EXTERNAL_RETURN_STATUS (
659ACPI_STATUS ACPI_INIT_FUNCTION
663ACPI_EXTERNAL_RETURN_STATUS (
664ACPI_STATUS ACPI_INIT_FUNCTION
665AcpiInstallPhysicalTable (
666 ACPI_PHYSICAL_ADDRESS Address))
668ACPI_EXTERNAL_RETURN_STATUS (
674ACPI_EXTERNAL_RETURN_STATUS (
679ACPI_EXTERNAL_RETURN_STATUS (
681AcpiUnloadParentTable (
684ACPI_EXTERNAL_RETURN_STATUS (
685ACPI_STATUS ACPI_INIT_FUNCTION
693ACPI_EXTERNAL_RETURN_STATUS (
694ACPI_STATUS ACPI_INIT_FUNCTION
695AcpiReallocateRootTable (
698ACPI_EXTERNAL_RETURN_STATUS (
699ACPI_STATUS ACPI_INIT_FUNCTION
701 ACPI_PHYSICAL_ADDRESS *RsdpAddress))
703ACPI_EXTERNAL_RETURN_STATUS (
706 ACPI_STRING Signature,
710ACPI_EXTERNAL_RETURN_STATUS (
713 ACPI_STRING Signature,
717ACPI_EXTERNAL_RETURN_VOID (
722ACPI_EXTERNAL_RETURN_STATUS (
728ACPI_EXTERNAL_RETURN_STATUS (
730AcpiInstallTableHandler (
731 ACPI_TABLE_HANDLER Handler,
734ACPI_EXTERNAL_RETURN_STATUS (
736AcpiRemoveTableHandler (
737 ACPI_TABLE_HANDLER Handler))
743ACPI_EXTERNAL_RETURN_STATUS (
746 ACPI_OBJECT_TYPE Type,
747 ACPI_HANDLE StartObject,
749 ACPI_WALK_CALLBACK DescendingCallback,
750 ACPI_WALK_CALLBACK AscendingCallback,
754ACPI_EXTERNAL_RETURN_STATUS (
758 ACPI_WALK_CALLBACK UserFunction,
762ACPI_EXTERNAL_RETURN_STATUS (
769ACPI_EXTERNAL_RETURN_STATUS (
773 const char *Pathname,
774 ACPI_HANDLE *RetHandle))
776ACPI_EXTERNAL_RETURN_STATUS (
780 ACPI_OBJECT_HANDLER Handler,
783ACPI_EXTERNAL_RETURN_STATUS (
787 ACPI_OBJECT_HANDLER Handler))
789ACPI_EXTERNAL_RETURN_STATUS (
793 ACPI_OBJECT_HANDLER Handler,
796ACPI_EXTERNAL_RETURN_STATUS (
808ACPI_EXTERNAL_RETURN_STATUS (
812 ACPI_STRING Pathname,
816ACPI_EXTERNAL_RETURN_STATUS (
818AcpiEvaluateObjectTyped (
820 ACPI_STRING Pathname,
823 ACPI_OBJECT_TYPE ReturnType))
825ACPI_EXTERNAL_RETURN_STATUS (
831ACPI_EXTERNAL_RETURN_STATUS (
836ACPI_EXTERNAL_RETURN_STATUS (
839 ACPI_OBJECT_TYPE Type,
842 ACPI_HANDLE *OutHandle))
844ACPI_EXTERNAL_RETURN_STATUS (
848 ACPI_OBJECT_TYPE *OutType))
850ACPI_EXTERNAL_RETURN_STATUS (
854 ACPI_HANDLE *OutHandle))
860ACPI_EXTERNAL_RETURN_STATUS (
862AcpiInstallInitializationHandler (
863 ACPI_INIT_HANDLER Handler,
866ACPI_HW_DEPENDENT_RETURN_STATUS (
868AcpiInstallSciHandler (
869 ACPI_SCI_HANDLER Address,
872ACPI_HW_DEPENDENT_RETURN_STATUS (
874AcpiRemoveSciHandler (
875 ACPI_SCI_HANDLER Address))
877ACPI_HW_DEPENDENT_RETURN_STATUS (
879AcpiInstallGlobalEventHandler (
880 ACPI_GBL_EVENT_HANDLER Handler,
883ACPI_HW_DEPENDENT_RETURN_STATUS (
885AcpiInstallFixedEventHandler (
887 ACPI_EVENT_HANDLER Handler,
890ACPI_HW_DEPENDENT_RETURN_STATUS (
892AcpiRemoveFixedEventHandler (
894 ACPI_EVENT_HANDLER Handler))
896ACPI_HW_DEPENDENT_RETURN_STATUS (
898AcpiInstallGpeHandler (
899 ACPI_HANDLE GpeDevice,
902 ACPI_GPE_HANDLER Address,
905ACPI_HW_DEPENDENT_RETURN_STATUS (
907AcpiInstallGpeRawHandler (
908 ACPI_HANDLE GpeDevice,
911 ACPI_GPE_HANDLER Address,
914ACPI_HW_DEPENDENT_RETURN_STATUS (
916AcpiRemoveGpeHandler (
917 ACPI_HANDLE GpeDevice,
919 ACPI_GPE_HANDLER Address))
921ACPI_EXTERNAL_RETURN_STATUS (
923AcpiInstallNotifyHandler (
926 ACPI_NOTIFY_HANDLER Handler,
929ACPI_EXTERNAL_RETURN_STATUS (
931AcpiRemoveNotifyHandler (
934 ACPI_NOTIFY_HANDLER Handler))
936ACPI_EXTERNAL_RETURN_STATUS (
938AcpiInstallAddressSpaceHandler (
940 ACPI_ADR_SPACE_TYPE SpaceId,
941 ACPI_ADR_SPACE_HANDLER Handler,
942 ACPI_ADR_SPACE_SETUP Setup,
945ACPI_EXTERNAL_RETURN_STATUS (
947AcpiInstallAddressSpaceHandlerNo_Reg(
949 ACPI_ADR_SPACE_TYPE SpaceId,
950 ACPI_ADR_SPACE_HANDLER Handler,
951 ACPI_ADR_SPACE_SETUP Setup,
954ACPI_EXTERNAL_RETURN_STATUS (
956AcpiExecuteRegMethods (
958 ACPI_ADR_SPACE_TYPE SpaceId))
960ACPI_EXTERNAL_RETURN_STATUS (
962AcpiRemoveAddressSpaceHandler (
964 ACPI_ADR_SPACE_TYPE SpaceId,
965 ACPI_ADR_SPACE_HANDLER Handler))
967ACPI_EXTERNAL_RETURN_STATUS (
969AcpiInstallExceptionHandler (
970 ACPI_EXCEPTION_HANDLER Handler))
972ACPI_EXTERNAL_RETURN_STATUS (
974AcpiInstallInterfaceHandler (
975 ACPI_INTERFACE_HANDLER Handler))
981ACPI_HW_DEPENDENT_RETURN_STATUS (
983AcpiAcquireGlobalLock (
987ACPI_HW_DEPENDENT_RETURN_STATUS (
989AcpiReleaseGlobalLock (
996ACPI_EXTERNAL_RETURN_STATUS (
1000 ACPI_STRING Pathname,
1003ACPI_EXTERNAL_RETURN_STATUS (
1007 ACPI_STRING Pathname))
1013ACPI_HW_DEPENDENT_RETURN_STATUS (
1019ACPI_HW_DEPENDENT_RETURN_STATUS (
1025ACPI_HW_DEPENDENT_RETURN_STATUS (
1030ACPI_HW_DEPENDENT_RETURN_STATUS (
1034 ACPI_EVENT_STATUS *EventStatus))
1040ACPI_HW_DEPENDENT_RETURN_STATUS (
1045ACPI_HW_DEPENDENT_RETURN_STATUS (
1048 ACPI_HANDLE GpeDevice,
1051ACPI_HW_DEPENDENT_RETURN_STATUS (
1054 ACPI_HANDLE GpeDevice,
1057ACPI_HW_DEPENDENT_RETURN_STATUS (
1060 ACPI_HANDLE GpeDevice,
1063ACPI_HW_DEPENDENT_RETURN_STATUS (
1066 ACPI_HANDLE GpeDevice,
1070ACPI_HW_DEPENDENT_RETURN_STATUS (
1073 ACPI_HANDLE GpeDevice,
1076ACPI_HW_DEPENDENT_RETURN_STATUS (
1079 ACPI_HANDLE GpeDevice,
1083ACPI_HW_DEPENDENT_RETURN_STATUS (
1086 ACPI_HANDLE GpeDevice,
1089ACPI_HW_DEPENDENT_RETURN_STATUS (
1091AcpiSetupGpeForWake (
1092 ACPI_HANDLE ParentDevice,
1093 ACPI_HANDLE GpeDevice,
1096ACPI_HW_DEPENDENT_RETURN_STATUS (
1099 ACPI_HANDLE GpeDevice,
1103ACPI_HW_DEPENDENT_RETURN_STATUS (
1106 ACPI_HANDLE GpeDevice,
1108 ACPI_EVENT_STATUS *EventStatus))
1110ACPI_HW_DEPENDENT_RETURN_UINT32 (
1113 ACPI_HANDLE GpeDevice,
1116ACPI_HW_DEPENDENT_RETURN_STATUS (
1121ACPI_HW_DEPENDENT_RETURN_STATUS (
1123AcpiEnableAllRuntimeGpes (
1126ACPI_HW_DEPENDENT_RETURN_STATUS (
1128AcpiEnableAllWakeupGpes (
1131ACPI_HW_DEPENDENT_RETURN_UINT32 (
1132 UINT32 AcpiAnyGpeStatusSet (
1135ACPI_HW_DEPENDENT_RETURN_STATUS (
1139 ACPI_HANDLE *GpeDevice))
1141ACPI_HW_DEPENDENT_RETURN_STATUS (
1143AcpiInstallGpeBlock (
1144 ACPI_HANDLE GpeDevice,
1146 UINT32 RegisterCount,
1147 UINT32 InterruptNumber))
1149ACPI_HW_DEPENDENT_RETURN_STATUS (
1152 ACPI_HANDLE GpeDevice))
1159ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
1163ACPI_EXTERNAL_RETURN_STATUS (
1165AcpiGetVendorResource (
1171ACPI_EXTERNAL_RETURN_STATUS (
1173AcpiGetCurrentResources (
1177ACPI_EXTERNAL_RETURN_STATUS (
1179AcpiGetPossibleResources (
1183ACPI_EXTERNAL_RETURN_STATUS (
1185AcpiGetEventResources (
1186 ACPI_HANDLE DeviceHandle,
1189ACPI_EXTERNAL_RETURN_STATUS (
1191AcpiWalkResourceBuffer (
1193 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1196ACPI_EXTERNAL_RETURN_STATUS (
1201 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1204ACPI_EXTERNAL_RETURN_STATUS (
1206AcpiSetCurrentResources (
1210ACPI_EXTERNAL_RETURN_STATUS (
1212AcpiGetIrqRoutingTable (
1216ACPI_EXTERNAL_RETURN_STATUS (
1218AcpiResourceToAddress64 (
1222ACPI_EXTERNAL_RETURN_STATUS (
1224AcpiBufferToResource (
1226 UINT16 AmlBufferLength,
1233ACPI_EXTERNAL_RETURN_STATUS (
1238ACPI_EXTERNAL_RETURN_STATUS (
1244ACPI_EXTERNAL_RETURN_STATUS (
1250ACPI_HW_DEPENDENT_RETURN_STATUS (
1252AcpiReadBitRegister (
1254 UINT32 *ReturnValue))
1256ACPI_HW_DEPENDENT_RETURN_STATUS (
1258AcpiWriteBitRegister (
1266ACPI_EXTERNAL_RETURN_STATUS (
1268AcpiGetSleepTypeData (
1273ACPI_EXTERNAL_RETURN_STATUS (
1275AcpiEnterSleepStatePrep (
1278ACPI_EXTERNAL_RETURN_STATUS (
1280AcpiEnterSleepState (
1283ACPI_HW_DEPENDENT_RETURN_STATUS (
1285AcpiEnterSleepStateS4bios (
1288ACPI_EXTERNAL_RETURN_STATUS (
1290AcpiLeaveSleepStatePrep (
1293ACPI_EXTERNAL_RETURN_STATUS (
1295AcpiLeaveSleepState (
1298ACPI_HW_DEPENDENT_RETURN_STATUS (
1300AcpiSetFirmwareWakingVector (
1301 ACPI_PHYSICAL_ADDRESS PhysicalAddress,
1302 ACPI_PHYSICAL_ADDRESS PhysicalAddress64))
1308ACPI_HW_DEPENDENT_RETURN_STATUS (
1310AcpiGetTimerResolution (
1311 UINT32 *Resolution))
1313ACPI_HW_DEPENDENT_RETURN_STATUS (
1318ACPI_HW_DEPENDENT_RETURN_STATUS (
1320AcpiGetTimerDuration (
1323 UINT32 *TimeElapsed))
1329ACPI_MSG_DEPENDENT_RETURN_VOID (
1331void ACPI_INTERNAL_VAR_XFACE
1333 const char *ModuleName,
1338ACPI_MSG_DEPENDENT_RETURN_VOID (
1340void ACPI_INTERNAL_VAR_XFACE
1342 const
char *ModuleName,
1348ACPI_MSG_DEPENDENT_RETURN_VOID (
1350void ACPI_INTERNAL_VAR_XFACE
1352 const
char *ModuleName,
1357ACPI_MSG_DEPENDENT_RETURN_VOID (
1359void ACPI_INTERNAL_VAR_XFACE
1364ACPI_MSG_DEPENDENT_RETURN_VOID (
1366void ACPI_INTERNAL_VAR_XFACE
1368 const
char *ModuleName,
1373ACPI_MSG_DEPENDENT_RETURN_VOID (
1375void ACPI_INTERNAL_VAR_XFACE
1377 const
char *ModuleName,
1383ACPI_MSG_DEPENDENT_RETURN_VOID (
1385void ACPI_INTERNAL_VAR_XFACE
1387 const
char *ModuleName,
1396ACPI_DBG_DEPENDENT_RETURN_VOID (
1398void ACPI_INTERNAL_VAR_XFACE
1400 UINT32 RequestedDebugLevel,
1402 const
char *FunctionName,
1403 const
char *ModuleName,
1408ACPI_DBG_DEPENDENT_RETURN_VOID (
1410void ACPI_INTERNAL_VAR_XFACE
1412 UINT32 RequestedDebugLevel,
1414 const
char *FunctionName,
1415 const
char *ModuleName,
1420ACPI_DBG_DEPENDENT_RETURN_VOID (
1423 ACPI_TRACE_EVENT_TYPE Type,
1429AcpiInitializeDebugger (
1433AcpiTerminateDebugger (
1441AcpiSetDebuggerThreadId (
1442 ACPI_THREAD_ID ThreadId);
Test context for spec:/rtems/barrier/req/create test case.
Definition: tc-barrier-create.c:144
Definition: actypes.h:1159
Definition: actypes.h:1413
Definition: actypes.h:1134
Definition: acbuffer.h:227
Definition: acrestyp.h:522
Definition: acrestyp.h:923
Definition: actypes.h:1216
Definition: acrestyp.h:276