#include <freeldr.h>
#include <debug.h>
Go to the source code of this file.
◆ DBG_DEFAULT_CHANNEL()
DBG_DEFAULT_CHANNEL |
( |
HWDETECT |
| ) |
|
◆ DetectApmBios()
Definition at line 46 of file hwapm.c.
47{
51
53 return;
54
57
58
60 if (PartialResourceList ==
NULL)
61 {
62 ERR(
"Failed to allocate resource descriptor\n");
63 return;
64 }
66 PartialResourceList->
Version = 0;
68 PartialResourceList->
Count = 0;
69
70
71
72
76 0,
77 0,
78 0xFFFFFFFF,
79 "APM",
80 PartialResourceList,
82 &BiosKey);
83
84
85 (*BusNumber)++;
86}
VOID FldrCreateComponentKey(_In_ PCONFIGURATION_COMPONENT_DATA SystemNode, _In_ CONFIGURATION_CLASS Class, _In_ CONFIGURATION_TYPE Type, _In_ IDENTIFIER_FLAG Flags, _In_ ULONG Key, _In_ ULONG Affinity, _In_ PCSTR IdentifierString, _In_ PCM_PARTIAL_RESOURCE_LIST ResourceList, _In_ ULONG Size, _Out_ PCONFIGURATION_COMPONENT_DATA *ComponentKey)
FORCEINLINE PVOID FrLdrHeapAlloc(SIZE_T MemorySize, ULONG Tag)
static BOOLEAN FindApmBios(VOID)
struct _CM_PARTIAL_RESOURCE_LIST CM_PARTIAL_RESOURCE_LIST
#define RtlZeroMemory(Destination, Length)
#define TAG_HW_RESOURCE_LIST
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Referenced by Pc98HwDetect(), and PcHwDetect().
◆ FindApmBios()
Definition at line 14 of file hwapm.c.
15{
17
18
19#if defined(SARCH_PC98)
22 Int386(0x1F, &RegsIn, &RegsOut);
23#else
26 Int386(0x15, &RegsIn, &RegsOut);
27#endif
29 {
30 TRACE(
"Found APM BIOS\n");
36
38 }
39
40 TRACE(
"No APM BIOS found\n");
41
43}
#define INT386_SUCCESS(regs)
int __cdecl Int386(int ivec, REGS *in, REGS *out)
Referenced by DetectApmBios().