mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
![Timo Kreuzer](/assets/img/avatar_default.png)
* Add an NDK header to define INIT_FUNCTION/INIT_SECTION globally * Use _declspec(allocate(x)) and _declspec(code_seg(x)) on MSVC versions that support it * Use INIT_FUNCTION on functions only and INIT_SECTION on data only (required by MSVC) * Place INIT_FUNCTION before the return type (required by MSVC) * Make sure declarations and implementations share the same modifiers (required by MSVC) * Add a global linker option to suppress warnings about defined but unused INIT section * Merge INIT section into .text in freeldr
42 lines
604 B
C
42 lines
604 B
C
#pragma once
|
|
|
|
//
|
|
// Internal HAL structure
|
|
//
|
|
typedef struct _ACPI_CACHED_TABLE
|
|
{
|
|
LIST_ENTRY Links;
|
|
DESCRIPTION_HEADER Header;
|
|
// table follows
|
|
// ...
|
|
} ACPI_CACHED_TABLE, *PACPI_CACHED_TABLE;
|
|
|
|
NTSTATUS
|
|
NTAPI
|
|
HalpAcpiTableCacheInit(
|
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
|
);
|
|
|
|
PVOID
|
|
NTAPI
|
|
HalpAcpiGetTable(
|
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|
IN ULONG Signature
|
|
);
|
|
|
|
INIT_FUNCTION
|
|
NTSTATUS
|
|
NTAPI
|
|
HalpSetupAcpiPhase0(
|
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
|
);
|
|
|
|
PVOID
|
|
NTAPI
|
|
HalAcpiGetTable(
|
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|
IN ULONG Signature
|
|
);
|
|
|
|
/* EOF */
|