|
ReactOS 0.4.17-dev-523-gf6fcb59
|
#include "precomp.h"#include <arc/arc.h>#include <reactos/drivers/acpi/acpi.h>#include <pseh/pseh2.h>#include <debug.h>
Go to the source code of this file.
Classes | |
| struct | _ACPI_SEM |
Macros | |
| #define | NDEBUG |
| #define | TAG_ACPI_LOADER_RSDP_TABLE 'RpcA' |
Typedefs | |
| typedef struct _ACPI_SEM | ACPI_SEM |
| typedef struct _ACPI_SEM * | PACPI_SEM |
Variables | |
| static PKINTERRUPT | AcpiInterrupt |
| static BOOLEAN | AcpiInterruptHandlerRegistered = FALSE |
| static ACPI_OSD_HANDLER | AcpiIrqHandler = NULL |
| static PVOID | AcpiIrqContext = NULL |
| static ULONG | AcpiIrqNumber = 0 |
| NTSYSAPI PLOADER_PARAMETER_BLOCK | KeLoaderBlock |
| static ACPI_TABLE_RSDP * | AcpiLoaderRsdp = NULL |
|
static |
Definition at line 107 of file osl.c.
Referenced by AcpiOsInitialize().
|
static |
Definition at line 41 of file osl.c.
Referenced by AcpiBuildLoaderRootPointer().
|
static |
Definition at line 57 of file osl.c.
Referenced by AcpiBuildLoaderRootPointer().
| ACPI_CPU_FLAGS AcpiOsAcquireLock | ( | ACPI_SPINLOCK | Handle | ) |
Definition at line 690 of file osl.c.
Referenced by AcpiClearGpe(), AcpiDisableGpe(), AcpiEnableGpe(), AcpiEvAcquireGlobalLock(), AcpiEvAsynchEnableGpe(), AcpiEvDeleteGpeBlock(), AcpiEvDeleteGpeXrupt(), AcpiEvDetectGpe(), AcpiEvGetGpeXruptBlock(), AcpiEvGlobalLockHandler(), AcpiEvGpeDetect(), AcpiEvInstallGpeBlock(), AcpiEvInstallGpeHandler(), AcpiEvRemoveAllSciHandlers(), AcpiEvSciDispatch(), AcpiEvWalkGpeList(), AcpiFinishGpe(), AcpiGetGpeStatus(), AcpiHwClearAcpiStatus(), AcpiInstallSciHandler(), AcpiMarkGpeForWake(), AcpiMaskGpe(), AcpiRemoveGpeHandler(), AcpiRemoveSciHandler(), AcpiSetGpe(), AcpiSetGpeWakeMask(), AcpiSetupGpeForWake(), AcpiUtUpdateRefCount(), and AcpiWriteBitRegister().
| ACPI_STATUS AcpiOsAcquireMutex | ( | ACPI_MUTEX | Handle, |
| UINT16 | Timeout | ||
| ) |
Definition at line 498 of file osl.c.
| ACPI_STATUS AcpiOsCreateLock | ( | ACPI_SPINLOCK * | OutHandle | ) |
Definition at line 655 of file osl.c.
Referenced by AcpiEvInitGlobalLockHandler(), and AcpiUtMutexInitialize().
| ACPI_STATUS AcpiOsCreateMutex | ( | ACPI_MUTEX * | OutHandle | ) |
Definition at line 463 of file osl.c.
| ACPI_STATUS AcpiOsCreateSemaphore | ( | UINT32 | MaxUnits, |
| UINT32 | InitialUnits, | ||
| ACPI_SEMAPHORE * | OutHandle | ||
| ) |
Definition at line 544 of file osl.c.
Referenced by AcpiExCreateEvent(), AcpiExSystemResetEvent(), AcpiNsRootInitialize(), and AcpiUtCopySimpleObject().
| void AcpiOsDeleteLock | ( | ACPI_SPINLOCK | Handle | ) |
Definition at line 677 of file osl.c.
Referenced by AcpiEvRemoveGlobalLockHandler(), and AcpiUtMutexTerminate().
| void AcpiOsDeleteMutex | ( | ACPI_MUTEX | Handle | ) |
| ACPI_STATUS AcpiOsDeleteSemaphore | ( | ACPI_SEMAPHORE | Handle | ) |
Definition at line 570 of file osl.c.
Referenced by AcpiExSystemResetEvent(), and AcpiUtDeleteInternalObj().
| ACPI_STATUS AcpiOsEnterSleep | ( | UINT8 | SleepState, |
| UINT32 | RegaValue, | ||
| UINT32 | RegbValue | ||
| ) |
Definition at line 1124 of file osl.c.
Referenced by AcpiHwExtendedSleep(), and AcpiHwLegacySleep().
| ACPI_STATUS AcpiOsExecute | ( | ACPI_EXECUTE_TYPE | Type, |
| ACPI_OSD_EXEC_CALLBACK | Function, | ||
| void * | Context | ||
| ) |
Definition at line 416 of file osl.c.
Referenced by AcpiEvAsynchExecuteGpeMethod(), AcpiEvGpeDispatch(), and AcpiEvQueueNotifyRequest().
| ACPI_STATUS AcpiOsGetLine | ( | char * | Buffer, |
| UINT32 | BufferLength, | ||
| UINT32 * | BytesRead | ||
| ) |
| ACPI_STATUS AcpiOsGetPhysicalAddress | ( | void * | LogicalAddress, |
| ACPI_PHYSICAL_ADDRESS * | PhysicalAddress | ||
| ) |
Definition at line 332 of file osl.c.
| ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer | ( | void | ) |
Definition at line 228 of file osl.c.
Referenced by acpi_create_volatile_registry_tables(), and AcpiInitializeTables().
| ACPI_THREAD_ID AcpiOsGetThreadId | ( | void | ) |
Definition at line 409 of file osl.c.
Referenced by AcpiAcquireGlobalLock(), AcpiDsBeginMethodExecution(), AcpiExAcquireGlobalLock(), AcpiUtAcquireMutex(), AcpiUtCreateThreadState(), and AcpiUtReleaseMutex().
Definition at line 1076 of file osl.c.
Referenced by AcpiDsExecBeginControlOp(), AcpiDsExecEndControlOp(), AcpiExDoDebugObject(), and AcpiExOpcode_0A_0T_1R().
| ACPI_STATUS AcpiOsInitialize | ( | void | ) |
Definition at line 195 of file osl.c.
Referenced by AcpiInitializeSubsystem().
| UINT32 AcpiOsInstallInterruptHandler | ( | UINT32 | InterruptNumber, |
| ACPI_OSD_HANDLER | ServiceRoutine, | ||
| void * | Context | ||
| ) |
Definition at line 740 of file osl.c.
Referenced by AcpiEvGetGpeXruptBlock(), and AcpiEvInstallSciHandler().
| void * AcpiOsMapMemory | ( | ACPI_PHYSICAL_ADDRESS | phys, |
| ACPI_SIZE | length | ||
| ) |
Definition at line 300 of file osl.c.
Referenced by acpi_create_volatile_registry_tables(), AcpiExSystemMemorySpaceHandler(), AcpiFindRootPointer(), AcpiGetTableHeader(), AcpiTbAcquireTable(), AcpiTbAcquireTempTable(), and AcpiTbParseRootTable().
| ACPI_STATUS AcpiOsPhysicalTableOverride | ( | ACPI_TABLE_HEADER * | ExistingTable, |
| ACPI_PHYSICAL_ADDRESS * | NewAddress, | ||
| UINT32 * | NewTableLength | ||
| ) |
Definition at line 281 of file osl.c.
Referenced by AcpiTbOverrideTable().
| ACPI_STATUS AcpiOsPredefinedOverride | ( | const ACPI_PREDEFINED_NAMES * | PredefinedObject, |
| ACPI_STRING * | NewValue | ||
| ) |
Definition at line 247 of file osl.c.
Referenced by AcpiNsRootInitialize().
| void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf | ( | const char * | Fmt, |
| ... | |||
| ) |
Definition at line 1043 of file osl.c.
Referenced by AcpiBiosError(), AcpiBiosException(), AcpiBiosWarning(), AcpiError(), AcpiException(), AcpiExDoDebugObject(), AcpiInfo(), AcpiNsLookup(), AcpiNsPrintNodePathname(), AcpiPsDeleteParseTree(), AcpiPsGetAmlOpcode(), AcpiPsParseAml(), AcpiRsDumpByteList(), AcpiRsDumpDescriptor(), AcpiRsDumpDwordList(), AcpiRsDumpIrqList(), AcpiRsDumpResourceList(), AcpiRsDumpShortByteList(), AcpiRsDumpWordList(), AcpiRsOutInteger16(), AcpiRsOutInteger32(), AcpiRsOutInteger64(), AcpiRsOutInteger8(), AcpiRsOutString(), AcpiRsOutTitle(), AcpiUtDumpBuffer(), AcpiUtMethodError(), AcpiUtPredefinedBiosError(), AcpiUtPredefinedInfo(), AcpiUtPredefinedWarning(), AcpiUtPrefixedNamespaceError(), AcpiUtPrintString(), and AcpiWarning().
Definition at line 367 of file osl.c.
| ACPI_STATUS AcpiOsReadMemory | ( | ACPI_PHYSICAL_ADDRESS | Address, |
| UINT64 * | Value, | ||
| UINT32 | Width | ||
| ) |
Definition at line 826 of file osl.c.
Referenced by AcpiHwRead().
| ACPI_STATUS AcpiOsReadPciConfiguration | ( | ACPI_PCI_ID * | PciId, |
| UINT32 | Reg, | ||
| UINT64 * | Value, | ||
| UINT32 | Width | ||
| ) |
Definition at line 985 of file osl.c.
Referenced by AcpiExPciConfigSpaceHandler(), and AcpiHwGetPciDeviceInfo().
| ACPI_STATUS AcpiOsReadPort | ( | ACPI_IO_ADDRESS | Address, |
| UINT32 * | Value, | ||
| UINT32 | Width | ||
| ) |
Definition at line 893 of file osl.c.
Referenced by AcpiHwReadPort().
| void AcpiOsReleaseLock | ( | ACPI_SPINLOCK | Handle, |
| ACPI_CPU_FLAGS | Flags | ||
| ) |
Definition at line 708 of file osl.c.
Referenced by AcpiClearGpe(), AcpiDisableGpe(), AcpiEnableGpe(), AcpiEvAcquireGlobalLock(), AcpiEvAsynchEnableGpe(), AcpiEvDeleteGpeBlock(), AcpiEvDeleteGpeXrupt(), AcpiEvDetectGpe(), AcpiEvGetGpeXruptBlock(), AcpiEvGlobalLockHandler(), AcpiEvGpeDetect(), AcpiEvInstallGpeBlock(), AcpiEvInstallGpeHandler(), AcpiEvRemoveAllSciHandlers(), AcpiEvSciDispatch(), AcpiEvWalkGpeList(), AcpiFinishGpe(), AcpiGetGpeStatus(), AcpiHwClearAcpiStatus(), AcpiInstallSciHandler(), AcpiMarkGpeForWake(), AcpiMaskGpe(), AcpiRemoveGpeHandler(), AcpiRemoveSciHandler(), AcpiSetGpe(), AcpiSetGpeWakeMask(), AcpiSetupGpeForWake(), AcpiUtUpdateRefCount(), and AcpiWriteBitRegister().
| void AcpiOsReleaseMutex | ( | ACPI_MUTEX | Handle | ) |
| ACPI_STATUS AcpiOsRemoveInterruptHandler | ( | UINT32 | InterruptNumber, |
| ACPI_OSD_HANDLER | ServiceRoutine | ||
| ) |
Definition at line 798 of file osl.c.
Referenced by AcpiEvDeleteGpeXrupt(), and AcpiEvRemoveAllSciHandlers().
| ACPI_STATUS AcpiOsSignal | ( | UINT32 | Function, |
| void * | Info | ||
| ) |
Definition at line 1096 of file osl.c.
Referenced by AcpiDsExecEndControlOp(), and AcpiExOpcode_3A_0T_0R().
| ACPI_STATUS AcpiOsSignalSemaphore | ( | ACPI_SEMAPHORE | Handle, |
| UINT32 | Units | ||
| ) |
Definition at line 631 of file osl.c.
Referenced by AcpiEvGlobalLockHandler(), and AcpiExSystemSignalEvent().
Definition at line 449 of file osl.c.
Referenced by AcpiExSystemDoSleep().
Definition at line 456 of file osl.c.
Referenced by AcpiEnterSleepStateS4bios(), AcpiExSystemDoStall(), AcpiHwLegacySleep(), and AcpiHwSetMode().
| ACPI_STATUS AcpiOsTableOverride | ( | ACPI_TABLE_HEADER * | ExistingTable, |
| ACPI_TABLE_HEADER ** | NewTable | ||
| ) |
Definition at line 264 of file osl.c.
Referenced by AcpiTbOverrideTable().
| ACPI_STATUS AcpiOsTerminate | ( | void | ) |
Definition at line 211 of file osl.c.
Referenced by AcpiTerminate().
Definition at line 320 of file osl.c.
Referenced by acpi_create_volatile_registry_tables(), AcpiEvSystemMemoryRegionSetup(), AcpiFindRootPointer(), AcpiGetTableHeader(), AcpiTbAcquireTempTable(), AcpiTbParseRootTable(), and AcpiTbReleaseTable().
Definition at line 1057 of file osl.c.
Referenced by AcpiBiosError(), AcpiBiosException(), AcpiBiosWarning(), AcpiError(), AcpiException(), AcpiInfo(), AcpiOsPrintf(), AcpiUtPredefinedBiosError(), AcpiUtPredefinedInfo(), AcpiUtPredefinedWarning(), and AcpiWarning().
Definition at line 1086 of file osl.c.
Referenced by AcpiRemoveGpeHandler(), and AcpiRemoveNotifyHandler().
| ACPI_STATUS AcpiOsWaitSemaphore | ( | ACPI_SEMAPHORE | Handle, |
| UINT32 | Units, | ||
| UINT16 | Timeout | ||
| ) |
Definition at line 585 of file osl.c.
Referenced by AcpiExSystemWaitSemaphore().
| ACPI_STATUS AcpiOsWriteMemory | ( | ACPI_PHYSICAL_ADDRESS | Address, |
| UINT64 | Value, | ||
| UINT32 | Width | ||
| ) |
Definition at line 859 of file osl.c.
Referenced by AcpiHwWrite().
| ACPI_STATUS AcpiOsWritePciConfiguration | ( | ACPI_PCI_ID * | PciId, |
| UINT32 | Reg, | ||
| UINT64 | Value, | ||
| UINT32 | Width | ||
| ) |
Definition at line 1014 of file osl.c.
Referenced by AcpiExPciConfigSpaceHandler().
| ACPI_STATUS AcpiOsWritePort | ( | ACPI_IO_ADDRESS | Address, |
| UINT32 | Value, | ||
| UINT32 | Width | ||
| ) |
Definition at line 923 of file osl.c.
Referenced by AcpiHwWritePort(), and AcpiReset().
| NTSYSAPI PCONFIGURATION_COMPONENT_DATA NTAPI KeFindConfigurationNextEntry | ( | _In_ PCONFIGURATION_COMPONENT_DATA | Child, |
| _In_ CONFIGURATION_CLASS | Class, | ||
| _In_ CONFIGURATION_TYPE | Type, | ||
| _In_opt_ PULONG | ComponentKey, | ||
| _Inout_ PCONFIGURATION_COMPONENT_DATA * | NextLink | ||
| ) |
Definition at line 21 of file config.c.
Referenced by AcpiGetLoaderAcpiBiosNode(), FindBootDisplayFromLoaderARCTree(), HalpAcpiFindRsdtPhase0(), KeFindConfigurationEntry(), and KeFindConfigurationNextEntry().
Definition at line 952 of file osl.c.
Referenced by AcpiOsReadPciConfiguration(), and AcpiOsWritePciConfiguration().
| BOOLEAN NTAPI OslIsrStub | ( | PKINTERRUPT | Interrupt, |
| PVOID | ServiceContext | ||
| ) |
Definition at line 725 of file osl.c.
Referenced by AcpiOsInstallInterruptHandler().
|
static |
Definition at line 18 of file osl.c.
Referenced by AcpiOsInstallInterruptHandler(), and AcpiOsRemoveInterruptHandler().
Definition at line 19 of file osl.c.
Referenced by AcpiOsInstallInterruptHandler(), and AcpiOsRemoveInterruptHandler().
Definition at line 21 of file osl.c.
Referenced by AcpiOsInstallInterruptHandler(), and OslIsrStub().
|
static |
Definition at line 20 of file osl.c.
Referenced by AcpiOsInstallInterruptHandler().
|
static |
Definition at line 22 of file osl.c.
Referenced by AcpiOsInstallInterruptHandler().
|
static |
Definition at line 37 of file osl.c.
Referenced by AcpiBuildLoaderRootPointer(), AcpiOsGetRootPointer(), and AcpiOsTerminate().
|
extern |
Definition at line 28 of file krnlinit.c.
Referenced by AcpiGetLoaderAcpiBiosNode(), CmInitSystem1(), DriverEntry(), FindBootDisplayFromLoaderARCTree(), IopDisplayLoadingMessage(), IopInitializeBootDrivers(), IopInitializeSystemDrivers(), KdbInitialize(), KdbSymInit(), KdpPrintBanner(), KeStartAllProcessors(), KiInitializeBugCheck(), KiInitializeKernel(), KiInitializeKernelMachineDependent(), KiInitializeMachineType(), KiInitializePcr(), KiInitializeSystem(), KiPcToFileHeader(), KiSystemStartup(), KiSystemStartupBootStack(), MiDbgDumpMemoryDescriptors(), MmArmInitSystem(), Phase1InitializationDiscard(), PoInitSystem(), RamdiskAddDevice(), and RamdiskCreateRamdisk().