#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
55
58 if (PartialResourceList ==
NULL)
59 {
60 ERR(
"Failed to allocate resource descriptor\n");
61 return;
62 }
64 PartialResourceList->
Version = 0;
66 PartialResourceList->
Count = 0;
67
68
69
70
74 0,
75 0,
76 0xFFFFFFFF,
77 "APM",
78 PartialResourceList,
80 &BiosKey);
81
82
83 (*BusNumber)++;
84}
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)
PVOID FrLdrHeapAlloc(SIZE_T MemorySize, ULONG Tag)
static BOOLEAN FindApmBios(VOID)
#define FIELD_OFFSET(t, f)
#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().