22#include "../ntldr/ntldropts.h"
29#define MAX_COM_PORTS 4
30#define MAX_LPT_PORTS 3
33#define MOUSE_TYPE_NONE 0
35#define MOUSE_TYPE_MICROSOFT 1
37#define MOUSE_TYPE_LOGITECH 2
39#define MOUSE_TYPE_WHEELZ 3
41#define MOUSE_TYPE_MOUSESYSTEMS 4
43#define INPORT_REGISTER_CONTROL 0x00
44#define INPORT_REGISTER_DATA 0x01
45#define INPORT_REGISTER_SIGNATURE 0x02
47#define INPORT_REG_MODE 0x07
48#define INPORT_RESET 0x80
49#define INPORT_MODE_BASE 0x10
50#define INPORT_TEST_IRQ 0x16
51#define INPORT_SIGNATURE 0xDE
53#define PIC1_CONTROL_PORT 0x20
54#define PIC1_DATA_PORT 0x21
55#define PIC2_CONTROL_PORT 0xA0
56#define PIC2_DATA_PORT 0xA1
61#define CONTROLLER_REGISTER_STATUS 0x64
62#define CONTROLLER_REGISTER_CONTROL 0x64
63#define CONTROLLER_REGISTER_DATA 0x60
66#define CONTROLLER_COMMAND_READ_MODE 0x20
67#define CONTROLLER_COMMAND_WRITE_MODE 0x60
68#define CONTROLLER_COMMAND_GET_VERSION 0xA1
69#define CONTROLLER_COMMAND_MOUSE_DISABLE 0xA7
70#define CONTROLLER_COMMAND_MOUSE_ENABLE 0xA8
71#define CONTROLLER_COMMAND_TEST_MOUSE 0xA9
72#define CONTROLLER_COMMAND_SELF_TEST 0xAA
73#define CONTROLLER_COMMAND_KEYBOARD_TEST 0xAB
74#define CONTROLLER_COMMAND_KEYBOARD_DISABLE 0xAD
75#define CONTROLLER_COMMAND_KEYBOARD_ENABLE 0xAE
76#define CONTROLLER_COMMAND_WRITE_MOUSE_OUTPUT_BUFFER 0xD3
77#define CONTROLLER_COMMAND_WRITE_MOUSE 0xD4
80#define CONTROLLER_STATUS_OUTPUT_BUFFER_FULL 0x01
81#define CONTROLLER_STATUS_INPUT_BUFFER_FULL 0x02
82#define CONTROLLER_STATUS_SELF_TEST 0x04
83#define CONTROLLER_STATUS_COMMAND 0x08
84#define CONTROLLER_STATUS_UNLOCKED 0x10
85#define CONTROLLER_STATUS_MOUSE_OUTPUT_BUFFER_FULL 0x20
86#define CONTROLLER_STATUS_GENERAL_TIMEOUT 0x40
87#define CONTROLLER_STATUS_PARITY_ERROR 0x80
88#define AUX_STATUS_OUTPUT_BUFFER_FULL (CONTROLLER_STATUS_OUTPUT_BUFFER_FULL | \
89 CONTROLLER_STATUS_MOUSE_OUTPUT_BUFFER_FULL)
92#define CONTROLLER_TIMEOUT 250
101 BiosRegs.
d.
eax = 0xC100;
102 Int386(0x15, &BiosRegs, &BiosRegs);
110 WARN(
"Int 15h AH=C1h call failed\n");
137 if (PartialResourceList ==
NULL)
139 ERR(
"Failed to allocate resource descriptor\n");
144 PartialResourceList->
Version = 1;
146 PartialResourceList->
Count = 1;
178 TRACE(
"Reading disk geometry failed\n");
182 TRACE(
"Disk %x: %u Cylinders %u Heads %u Sectors %u Bytes\n",
193 return PartialResourceList;
213 if (PartialResourceList ==
NULL)
215 ERR(
"Failed to allocate resource descriptor\n");
221 PartialResourceList->
Version = 0;
223 PartialResourceList->
Count = 1;
229 PartialDescriptor->
Flags = 0;
237 ERR(
"FIXME: System docked\n");
247 "Docking State Information",
265 ULONG FoundNodeCount;
268 ULONG PnpBufferSizeLimit;
275 TRACE(
"PnP-BIOS not supported\n");
279 TRACE(
"PnP-BIOS supported\n");
280 TRACE(
"Signature '%c%c%c%c'\n",
287 TRACE(
"PnP-BIOS function 'Get Number of System Device Nodes' not supported\n");
294 if (
x != 0 || NodeSize == 0 || NodeCount == 0)
296 ERR(
"PnP-BIOS failed to enumerate device nodes\n");
299 TRACE(
"MaxNodeSize %u NodeCount %u\n", NodeSize, NodeCount);
300 TRACE(
"Estimated buffer size %u\n", NodeSize * NodeCount);
304 + (NodeSize * NodeCount);
307 if (PartialResourceList ==
NULL)
309 ERR(
"Failed to allocate resource descriptor\n");
315 PartialResourceList->
Version = 1;
317 PartialResourceList->
Count = 1;
324 Ptr = (
char *)(PartialResourceList + 1);
333 for (
i = 0;
i < 0xFF;
i++)
342 TRACE(
"Node: %u Size %u (0x%x)\n",
347 if (PnpBufferSize +
DeviceNode->Size > PnpBufferSizeLimit)
349 ERR(
"Buffer too small! Ignoring remaining device nodes. (i = %d)\n",
i);
359 if (FoundNodeCount >= NodeCount)
369 TRACE(
"Real buffer size: %u\n", PnpBufferSize);
442 for (
i = 0;
i < 4;
i++)
454 TRACE(
"Mouse data: %x %x %x %x\n",
458 for (
i = 0;
i < 4; ++
i)
479 TRACE(
"Microsoft Mouse with 3-buttons detected\n");
483 TRACE(
"Microsoft Wheel Mouse detected\n");
488 TRACE(
"Microsoft Mouse with 2-buttons detected\n");
528 if (
c == 0x08 ||
c == 0x28)
571 TRACE(
"DetectSerialPointerPeripheral()\n");
596 for (
i = 0;
i < 7;
i++)
656 for (
k = 0;
k <
i -
j;
k++)
690 if (PartialResourceList ==
NULL)
692 ERR(
"Failed to allocate resource descriptor\n");
697 PartialResourceList->
Version = 1;
699 PartialResourceList->
Count = 0;
746 ULONG OptionLength, PortBitmap,
i;
759 if (OptionLength < (
sizeof(
"NOSERIALMICE=COM9") - 1))
763 Option +=
sizeof(
"NOSERIALMICE=COM") - 1;
764 OptionLength -=
sizeof(
"NOSERIALMICE=COM") - 1;
768 for (
i = 0;
i < OptionLength;
i += 2)
794 ULONG ControllerNumber = 0;
800 TRACE(
"DetectSerialPorts()\n");
806 Base = MachGetSerialPort(
i, &Irq);
810 TRACE(
"Found COM%u port at 0x%x\n",
i + 1,
Base);
820 if (PartialResourceList ==
NULL)
822 ERR(
"Failed to allocate resource descriptor! Ignoring remaining serial ports. (i = %lu, Count = %lu)\n",
829 PartialResourceList->
Version = 1;
831 PartialResourceList->
Count = 3;
838 PartialDescriptor->
u.
Port.Start.LowPart =
Base;
839 PartialDescriptor->
u.
Port.Start.HighPart = 0x0;
840 PartialDescriptor->
u.
Port.Length = 8;
849 PartialDescriptor->
u.
Interrupt.Affinity = 0xFFFFFFFF;
855 PartialDescriptor->
Flags = 0;
894 ULONG ControllerNumber = 0;
898 TRACE(
"DetectParallelPorts() called\n");
913 TRACE(
"Parallel port %u: %x\n", ControllerNumber,
Base);
920 if (Irq[
i] != (
ULONG) - 1)
924 if (PartialResourceList ==
NULL)
926 ERR(
"Failed to allocate resource descriptor! Ignoring remaining parallel ports. (i = %lu)\n",
i);
932 PartialResourceList->
Version = 1;
934 PartialResourceList->
Count = (Irq[
i] != (
ULONG) - 1) ? 2 : 1;
941 PartialDescriptor->
u.
Port.Start.LowPart =
Base;
942 PartialDescriptor->
u.
Port.Start.HighPart = 0x0;
943 PartialDescriptor->
u.
Port.Length = 3;
946 if (Irq[
i] != (
ULONG) - 1)
954 PartialDescriptor->
u.
Interrupt.Affinity = 0xFFFFFFFF;
972 TRACE(
"DetectParallelPorts() done\n");
988 for (Loops = 0; Loops < 100; Loops++)
1003 if (Scancode != 0xFA)
1019 if (Scancode != 0xAB)
1035 if (Scancode != 0x41)
1062 if (PartialResourceList ==
NULL)
1064 ERR(
"Failed to allocate resource descriptor\n");
1070 PartialResourceList->
Version = 1;
1072 PartialResourceList->
Count = 1;
1086 Int386(0x16, &Regs, &Regs);
1091 KeyboardData->
Type = 4;
1103 PartialResourceList,
1122 if (PartialResourceList ==
NULL)
1124 ERR(
"Failed to allocate resource descriptor\n");
1130 PartialResourceList->
Version = 1;
1132 PartialResourceList->
Count = 3;
1141 PartialDescriptor->
u.
Interrupt.Affinity = 0xFFFFFFFF;
1148 PartialDescriptor->
u.
Port.Start.LowPart = 0x60;
1149 PartialDescriptor->
u.
Port.Start.HighPart = 0x0;
1150 PartialDescriptor->
u.
Port.Length = 1;
1157 PartialDescriptor->
u.
Port.Start.LowPart = 0x64;
1158 PartialDescriptor->
u.
Port.Start.HighPart = 0x0;
1159 PartialDescriptor->
u.
Port.Length = 1;
1169 PartialResourceList,
1223 for (Loops = 0; Loops < 10; Loops++)
1255 for (Loops = 0; Loops < 100; Loops++)
1268 if (Scancode != 0xFA)
1278 if (Scancode != 0x00)
1297 TRACE(
"Detected PS2 port\n");
1300 if (PartialResourceList ==
NULL)
1302 ERR(
"Failed to allocate resource descriptor\n");
1308 PartialResourceList->
Version = 1;
1310 PartialResourceList->
Count = 1;
1328 PartialResourceList,
1334 TRACE(
"Detected PS2 mouse\n");
1340 if (PartialResourceList ==
NULL)
1342 ERR(
"Failed to allocate resource descriptor\n");
1347 PartialResourceList->
Version = 1;
1349 PartialResourceList->
Count = 0;
1358 "MICROSOFT PS2 MOUSE",
1359 PartialResourceList,
1368CreateBusMousePeripheralKey(
1382 if (PartialResourceList ==
NULL)
1384 ERR(
"Failed to allocate resource descriptor\n");
1390 PartialResourceList->
Version = 1;
1392 PartialResourceList->
Count = 2;
1399 PartialDescriptor->
u.
Port.Start.LowPart = IoBase;
1400 PartialDescriptor->
u.
Port.Start.HighPart = 0;
1401 PartialDescriptor->
u.
Port.Length = 4;
1420 PartialResourceList,
1427 if (PartialResourceList ==
NULL)
1429 ERR(
"Failed to allocate resource descriptor\n");
1435 PartialResourceList->
Version = 1;
1437 PartialResourceList->
Count = 0;
1446 "MICROSOFT INPORT MOUSE",
1447 PartialResourceList,
1457DetectBusMouseTestIrq(
1461 USHORT OldOffset, OldExtendedOffset;
1473 OldOffset = i386Idt[
Vector].Offset;
1474 OldExtendedOffset = i386Idt[
Vector].ExtendedOffset;
1476 i386Idt[
Vector].Offset = (
ULONG)HwIrqHandler & 0xFFFF;
1477 i386Idt[
Vector].ExtendedOffset = (
ULONG)HwIrqHandler >> 16;
1485 for (
i = 0;
i < 15;
i++)
1496 i386Idt[
Vector].Offset = OldOffset;
1497 i386Idt[
Vector].ExtendedOffset = OldExtendedOffset;
1499 return (HwIrqCount != 0) ? Irq : 0;
1517 for (Irq = 5; Irq >= 3; Irq--)
1519 Result = DetectBusMouseTestIrq(IoBase, Irq);
1535 ULONG IoBase, Irq, Signature1, Signature2, Signature3;
1541 for (IoBase = 0x23C; IoBase >= 0x230; IoBase -= 4)
1545 if (Signature1 == Signature2)
1551 if (Signature1 != Signature3)
1554 Irq = DetectBusMouseIrq(IoBase);
1558 CreateBusMousePeripheralKey(BusKey, IoBase, Irq);
1579 if (VesaVersion != 0)
1581 TRACE(
"VESA version %c.%c\n",
1582 (VesaVersion >> 8) +
'0',
1583 (VesaVersion & 0xFF) +
'0');
1587 TRACE(
"VESA not supported\n");
1590 if (VesaVersion >= 0x0200)
1607 if (VesaVersion != 0)
1611 TRACE(
"VESA/DDC supported!\n");
1614 TRACE(
"EDID data read successfully!\n");
1635 if (PartialResourceList ==
NULL)
1637 ERR(
"Failed to allocate resource descriptor\n");
1643 PartialResourceList->
Version = 1;
1645 PartialResourceList->
Count = 0;
1655 PartialResourceList,
1669 DetectBusMouse(BusKey);
1677#if !defined(SARCH_XBOX)
1687 return ((
Data & 0xF0) ? 1 : 0) + ((
Data & 0x0F) ? 1 : 0);
1698 TRACE(
"DetectHardware()\n");
1717 TRACE(
"DetectHardware() Done\n");
1733 Int386(0x15, &Regs, &Regs);
1775#if !defined(SARCH_XBOX)
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
char * strcpy(char *DstString, const char *SrcString)
#define ExtendedBIOSDataArea
#define ExtendedBIOSDataSize
VOID FldrCreateSystemKey(_Out_ PCONFIGURATION_COMPONENT_DATA *SystemNode, _In_ PCSTR IdentifierString)
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)
VOID DetectAcpiBios(PCONFIGURATION_COMPONENT_DATA SystemKey, ULONG *BusNumber)
VOID DetectPciBios(PCONFIGURATION_COMPONENT_DATA SystemKey, ULONG *BusNumber)
BOOLEAN PcFindPciBios(PPCI_REGISTRY_INFO BusData)
FIND_PCI_BIOS FindPciBios
ULONG __cdecl PnpBiosGetDeviceNode(UCHAR *NodeId, UCHAR *NodeBuffer)
ULONG __cdecl PnpBiosGetDeviceNodeCount(ULONG *NodeSize, ULONG *NodeCount)
ULONG_PTR __cdecl PnpBiosSupported(VOID)
ULONG(* GET_SERIAL_PORT)(ULONG Index, PULONG Irq)
ULONG __cdecl PnpBiosGetDockStationInformation(UCHAR *DockingStationInfo)
#define DBG_DEFAULT_CHANNEL(ch)
struct _EXTENDED_GEOMETRY EXTENDED_GEOMETRY
FORCEINLINE VOID FrLdrHeapFree(PVOID MemoryPointer, ULONG Tag)
FORCEINLINE PVOID FrLdrHeapAlloc(SIZE_T MemorySize, ULONG Tag)
BOOLEAN Rs232PortInUse(PUCHAR Base)
BOOLEAN NTAPI CpDoesPortExist(IN PUCHAR Address)
static const WCHAR CmdLine[]
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
GLint GLint GLint GLint GLint x
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
VOID DetectApmBios(PCONFIGURATION_COMPONENT_DATA SystemKey, ULONG *BusNumber)
BOOLEAN PcInitializeBootDevices(VOID)
struct _CM_PARTIAL_RESOURCE_LIST CM_PARTIAL_RESOURCE_LIST
#define CmResourceTypeDeviceSpecific
#define CmResourceTypePort
#define CmResourceTypeInterrupt
void __cdecl _disable(void)
void __cdecl _enable(void)
#define CONTROLLER_COMMAND_WRITE_MOUSE
VOID PcGetExtendedBIOSData(PULONG ExtendedBIOSDataArea, PULONG ExtendedBIOSDataSize)
static VOID DetectPnpBios(PCONFIGURATION_COMPONENT_DATA SystemKey, ULONG *BusNumber)
#define MOUSE_TYPE_MICROSOFT
static VOID DetectDockingStation(_Inout_ PCONFIGURATION_COMPONENT_DATA BusKey)
BOOLEAN BiosVesaReadEdid(VOID)
static VOID PS2ControllerWait(VOID)
#define INPORT_REGISTER_DATA
#define INPORT_REGISTER_CONTROL
static ULONG GetSerialMousePnpId(PUCHAR Port, char *Buffer)
static ULONG DetectSerialMouse(PUCHAR Port)
static VOID DetectIsaBios(_In_opt_ PCSTR Options, _Inout_ PCONFIGURATION_COMPONENT_DATA SystemKey, _Out_ ULONG *BusNumber)
VOID MachInit(const char *CmdLine)
static BOOLEAN DetectPS2AuxDevice(VOID)
#define CONTROLLER_REGISTER_STATUS
#define CONTROLLER_STATUS_INPUT_BUFFER_FULL
#define MOUSE_TYPE_LOGITECH
static ULONG PcGetSerialPort(ULONG Index, PULONG Irq)
BOOLEAN DetectKeyboardDevice(VOID)
static UCHAR PcGetFloppyCount(VOID)
static VOID DetectKeyboardController(PCONFIGURATION_COMPONENT_DATA BusKey)
PCONFIGURATION_COMPONENT_DATA PcHwDetect(_In_opt_ PCSTR Options)
static VOID InitializeSerialPort(PUCHAR Port, UCHAR LineControl)
#define CONTROLLER_TIMEOUT
#define CONTROLLER_STATUS_MOUSE_OUTPUT_BUFFER_FULL
#define CONTROLLER_STATUS_OUTPUT_BUFFER_FULL
#define CONTROLLER_REGISTER_CONTROL
VOID PcPrepareForReactOS(VOID)
#define MOUSE_TYPE_WHEELZ
VOID __cdecl ChainLoadBiosBootSectorCode(IN UCHAR BootDrive OPTIONAL, IN ULONG BootPartition OPTIONAL)
static BOOLEAN DetectPS2AuxPort(VOID)
static VOID DetectPS2Mouse(PCONFIGURATION_COMPONENT_DATA BusKey)
static VOID DetectKeyboardPeripheral(PCONFIGURATION_COMPONENT_DATA ControllerKey)
static ULONG GetSerialMouseDetectionBitmap(_In_opt_ PCSTR Options)
static VOID DetectParallelPorts(PCONFIGURATION_COMPONENT_DATA BusKey)
VOID DetectSerialPorts(_In_opt_ PCSTR Options, _Inout_ PCONFIGURATION_COMPONENT_DATA BusKey, _In_ GET_SERIAL_PORT MachGetSerialPort, _In_ ULONG Count)
#define INPORT_REGISTER_SIGNATURE
static VOID DetectDisplayController(PCONFIGURATION_COMPONENT_DATA BusKey)
#define CONTROLLER_COMMAND_WRITE_MOUSE_OUTPUT_BUFFER
#define CONTROLLER_REGISTER_DATA
static PCM_PARTIAL_RESOURCE_LIST PcGetHarddiskConfigurationData(UCHAR DriveNumber, ULONG *pSize)
static VOID DetectSerialPointerPeripheral(PCONFIGURATION_COMPONENT_DATA ControllerKey, PUCHAR Base)
BOOLEAN BiosIsVesaDdcSupported(VOID)
USHORT BiosIsVesaSupported(VOID)
#define memcpy(s1, s2, n)
#define CM_RESOURCE_PORT_IO
#define CM_RESOURCE_INTERRUPT_LATCHED
#define DECLSPEC_ALIGN(x)
_In_ ULONG _In_ ULONG _In_ ULONG Length
PCSTR NtLdrGetOption(IN PCSTR Options, IN PCSTR OptionName)
PCSTR NtLdrGetOptionEx(IN PCSTR Options, IN PCSTR OptionName, OUT PULONG OptionLength OPTIONAL)
NTSTRSAFEVAPI RtlStringCbPrintfA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ _Printf_format_string_ NTSTRSAFE_PCSTR pszFormat,...)
VOID __cdecl DiskStopFloppyMotor(VOID)
#define READ_PORT_UCHAR(p)
#define WRITE_PORT_UCHAR(p, d)
#define INT386_SUCCESS(regs)
int __cdecl Int386(int ivec, REGS *in, REGS *out)
VOID __cdecl Relocator16Boot(IN REGS *In, IN USHORT StackSegment, IN USHORT StackPointer, IN USHORT CodeSegment, IN USHORT CodePointer)
struct _DOCKING_STATE_INFORMATION DOCKING_STATE_INFORMATION
struct _DOCKING_STATE_INFORMATION * PDOCKING_STATE_INFORMATION
VOID PcConsPutChar(int Ch)
BOOLEAN PcConsKbHit(VOID)
BOOLEAN PcDiskReadLogicalSectors(IN UCHAR DriveNumber, IN ULONGLONG SectorNumber, IN ULONG SectorCount, OUT PVOID Buffer)
static BOOLEAN DiskGetExtendedDriveParameters(IN UCHAR DriveNumber, IN PPC_DISK_DRIVE DiskDrive, OUT PVOID Buffer, IN USHORT BufferSize)
ULONG PcDiskGetCacheableBlockCount(UCHAR DriveNumber)
BOOLEAN PcDiskGetDriveGeometry(UCHAR DriveNumber, PGEOMETRY Geometry)
VOID HalpCalibrateStallExecution(VOID)
VOID DetectBiosDisks(PCONFIGURATION_COMPONENT_DATA SystemKey, PCONFIGURATION_COMPONENT_DATA BusKey)
GET_HARDDISK_CONFIG_DATA GetHarddiskConfigurationData
VOID StallExecutionProcessor(ULONG Microseconds)
PFREELDR_MEMORY_DESCRIPTOR PcMemGetMemoryMap(ULONG *MemoryMapSize)
TIMEINFO * PcGetTime(VOID)
VOID PcVideoSetTextCursorPosition(UCHAR X, UCHAR Y)
VOID PcVideoPrepareForReactOS(VOID)
BOOLEAN PcVideoIsPaletteFixed(VOID)
VOID PcVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue)
VOID PcVideoGetFontsFromFirmware(PULONG RomFontPointers)
VOID PcVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth)
VOID PcVideoGetPaletteColor(UCHAR Color, UCHAR *Red, UCHAR *Green, UCHAR *Blue)
VIDEODISPLAYMODE PcVideoSetDisplayMode(char *DisplayModeName, BOOLEAN Init)
ULONG PcVideoGetBufferSize(VOID)
VOID PcVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
VOID PcVideoClearScreen(UCHAR Attr)
VOID PcVideoCopyOffScreenBufferToVRAM(PVOID Buffer)
VOID PcVideoHideShowTextCursor(BOOLEAN Show)
struct _CM_PNP_BIOS_INSTALLATION_CHECK * PCM_PNP_BIOS_INSTALLATION_CHECK
struct _CM_PNP_BIOS_INSTALLATION_CHECK CM_PNP_BIOS_INSTALLATION_CHECK
struct _CM_PNP_BIOS_DEVICE_NODE * PCM_PNP_BIOS_DEVICE_NODE
PULONG MinorVersion OPTIONAL
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@391::@393 Port
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@391::@400 DeviceSpecificData
union _CM_PARTIAL_RESOURCE_DESCRIPTOR::@391 u
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@391::@394 Interrupt
CM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptors[1]
VOID(* VideoGetPaletteColor)(UCHAR Color, UCHAR *Red, UCHAR *Green, UCHAR *Blue)
VOID(* GetExtendedBIOSData)(PULONG ExtendedBIOSDataArea, PULONG ExtendedBIOSDataSize)
VOID(* PrepareForReactOS)(VOID)
VOID(* VideoSetPaletteColor)(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue)
BOOLEAN(* InitializeBootDevices)(VOID)
VOID(* VideoCopyOffScreenBufferToVRAM)(PVOID Buffer)
BOOLEAN(* ConsKbHit)(VOID)
VOID(* VideoHideShowTextCursor)(BOOLEAN Show)
TIMEINFO *(* GetTime)(VOID)
UCHAR(* GetFloppyCount)(VOID)
BOOLEAN(* DiskGetDriveGeometry)(UCHAR DriveNumber, PGEOMETRY DriveGeometry)
BOOLEAN(* DiskReadLogicalSectors)(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
PFREELDR_MEMORY_DESCRIPTOR(* GetMemoryMap)(PULONG MaxMemoryMapSize)
VOID(* VideoGetFontsFromFirmware)(PULONG RomFontPointers)
VOID(* VideoSetTextCursorPosition)(UCHAR X, UCHAR Y)
ULONG(* VideoGetBufferSize)(VOID)
VOID(* VideoPutChar)(int Ch, UCHAR Attr, unsigned X, unsigned Y)
ULONG(* DiskGetCacheableBlockCount)(UCHAR DriveNumber)
VOID(* VideoGetDisplaySize)(PULONG Width, PULONG Height, PULONG Depth)
VOID(* VideoClearScreen)(UCHAR Attr)
VIDEODISPLAYMODE(* VideoSetDisplayMode)(char *DisplayMode, BOOLEAN Init)
BOOLEAN(* VideoIsPaletteFixed)(VOID)
PCONFIGURATION_COMPONENT_DATA(* HwDetect)(_In_opt_ PCSTR Options)
VOID(* ConsPutChar)(int Ch)
#define FIELD_OFFSET(t, f)
#define RtlZeroMemory(Destination, Length)
#define TAG_HW_RESOURCE_LIST
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
struct _CM_SERIAL_DEVICE_DATA * PCM_SERIAL_DEVICE_DATA
struct _CM_DISK_GEOMETRY_DEVICE_DATA CM_DISK_GEOMETRY_DEVICE_DATA
struct _CM_KEYBOARD_DEVICE_DATA * PCM_KEYBOARD_DEVICE_DATA
struct _CM_KEYBOARD_DEVICE_DATA CM_KEYBOARD_DEVICE_DATA
struct _CM_SERIAL_DEVICE_DATA CM_SERIAL_DEVICE_DATA
@ CmResourceShareDeviceExclusive
@ CmResourceShareUndetermined
_In_opt_ PUNICODE_STRING _In_ PDRIVER_OBJECT _In_ PDEVICE_OBJECT _In_ INTERFACE_TYPE _In_ ULONG BusNumber