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");
134 if (PartialResourceList ==
NULL)
136 ERR(
"Failed to allocate resource descriptor\n");
141 PartialResourceList->
Version = 1;
143 PartialResourceList->
Count = 1;
164 TRACE(
"Reading disk geometry failed\n");
168 TRACE(
"Disk %x: %u Cylinders %u Heads %u Sectors %u Bytes\n",
177 return PartialResourceList;
197 if (PartialResourceList ==
NULL)
199 ERR(
"Failed to allocate resource descriptor\n");
205 PartialResourceList->
Version = 0;
207 PartialResourceList->
Count = 1;
213 PartialDescriptor->
Flags = 0;
221 ERR(
"FIXME: System docked\n");
231 "Docking State Information",
249 ULONG FoundNodeCount;
252 ULONG PnpBufferSizeLimit;
259 TRACE(
"PnP-BIOS not supported\n");
263 TRACE(
"PnP-BIOS supported\n");
264 TRACE(
"Signature '%c%c%c%c'\n",
271 TRACE(
"PnP-BIOS function 'Get Number of System Device Nodes' not supported\n");
278 if (
x != 0 || NodeSize == 0 || NodeCount == 0)
280 ERR(
"PnP-BIOS failed to enumerate device nodes\n");
283 TRACE(
"MaxNodeSize %u NodeCount %u\n", NodeSize, NodeCount);
284 TRACE(
"Estimated buffer size %u\n", NodeSize * NodeCount);
288 + (NodeSize * NodeCount);
291 if (PartialResourceList ==
NULL)
293 ERR(
"Failed to allocate resource descriptor\n");
299 PartialResourceList->
Version = 1;
301 PartialResourceList->
Count = 1;
308 Ptr = (
char *)(PartialResourceList + 1);
317 for (
i = 0;
i < 0xFF;
i++)
326 TRACE(
"Node: %u Size %u (0x%x)\n",
331 if (PnpBufferSize +
DeviceNode->Size > PnpBufferSizeLimit)
333 ERR(
"Buffer too small! Ignoring remaining device nodes. (i = %d)\n",
i);
343 if (FoundNodeCount >= NodeCount)
353 TRACE(
"Real buffer size: %u\n", PnpBufferSize);
426 for (
i = 0;
i < 4;
i++)
438 TRACE(
"Mouse data: %x %x %x %x\n",
442 for (
i = 0;
i < 4; ++
i)
463 TRACE(
"Microsoft Mouse with 3-buttons detected\n");
467 TRACE(
"Microsoft Wheel Mouse detected\n");
472 TRACE(
"Microsoft Mouse with 2-buttons detected\n");
512 if (
c == 0x08 ||
c == 0x28)
555 TRACE(
"DetectSerialPointerPeripheral()\n");
580 for (
i = 0;
i < 7;
i++)
640 for (
k = 0;
k <
i -
j;
k++)
674 if (PartialResourceList ==
NULL)
676 ERR(
"Failed to allocate resource descriptor\n");
681 PartialResourceList->
Version = 1;
683 PartialResourceList->
Count = 0;
730 ULONG OptionLength, PortBitmap,
i;
743 if (OptionLength < (
sizeof(
"NOSERIALMICE=COM9") - 1))
747 Option +=
sizeof(
"NOSERIALMICE=COM") - 1;
748 OptionLength -=
sizeof(
"NOSERIALMICE=COM") - 1;
752 for (
i = 0;
i < OptionLength;
i += 2)
778 ULONG ControllerNumber = 0;
784 TRACE(
"DetectSerialPorts()\n");
790 Base = MachGetSerialPort(
i, &Irq);
794 TRACE(
"Found COM%u port at 0x%x\n",
i + 1,
Base);
804 if (PartialResourceList ==
NULL)
806 ERR(
"Failed to allocate resource descriptor! Ignoring remaining serial ports. (i = %lu, Count = %lu)\n",
813 PartialResourceList->
Version = 1;
815 PartialResourceList->
Count = 3;
822 PartialDescriptor->
u.
Port.Start.LowPart =
Base;
823 PartialDescriptor->
u.
Port.Start.HighPart = 0x0;
824 PartialDescriptor->
u.
Port.Length = 8;
833 PartialDescriptor->
u.
Interrupt.Affinity = 0xFFFFFFFF;
839 PartialDescriptor->
Flags = 0;
878 ULONG ControllerNumber = 0;
882 TRACE(
"DetectParallelPorts() called\n");
897 TRACE(
"Parallel port %u: %x\n", ControllerNumber,
Base);
904 if (Irq[
i] != (
ULONG) - 1)
908 if (PartialResourceList ==
NULL)
910 ERR(
"Failed to allocate resource descriptor! Ignoring remaining parallel ports. (i = %lu)\n",
i);
916 PartialResourceList->
Version = 1;
918 PartialResourceList->
Count = (Irq[
i] != (
ULONG) - 1) ? 2 : 1;
925 PartialDescriptor->
u.
Port.Start.LowPart =
Base;
926 PartialDescriptor->
u.
Port.Start.HighPart = 0x0;
927 PartialDescriptor->
u.
Port.Length = 3;
930 if (Irq[
i] != (
ULONG) - 1)
938 PartialDescriptor->
u.
Interrupt.Affinity = 0xFFFFFFFF;
956 TRACE(
"DetectParallelPorts() done\n");
972 for (Loops = 0; Loops < 100; Loops++)
987 if (Scancode != 0xFA)
1003 if (Scancode != 0xAB)
1019 if (Scancode != 0x41)
1046 if (PartialResourceList ==
NULL)
1048 ERR(
"Failed to allocate resource descriptor\n");
1054 PartialResourceList->
Version = 1;
1056 PartialResourceList->
Count = 1;
1070 Int386(0x16, &Regs, &Regs);
1075 KeyboardData->
Type = 4;
1087 PartialResourceList,
1106 if (PartialResourceList ==
NULL)
1108 ERR(
"Failed to allocate resource descriptor\n");
1114 PartialResourceList->
Version = 1;
1116 PartialResourceList->
Count = 3;
1125 PartialDescriptor->
u.
Interrupt.Affinity = 0xFFFFFFFF;
1132 PartialDescriptor->
u.
Port.Start.LowPart = 0x60;
1133 PartialDescriptor->
u.
Port.Start.HighPart = 0x0;
1134 PartialDescriptor->
u.
Port.Length = 1;
1141 PartialDescriptor->
u.
Port.Start.LowPart = 0x64;
1142 PartialDescriptor->
u.
Port.Start.HighPart = 0x0;
1143 PartialDescriptor->
u.
Port.Length = 1;
1153 PartialResourceList,
1207 for (Loops = 0; Loops < 10; Loops++)
1239 for (Loops = 0; Loops < 100; Loops++)
1252 if (Scancode != 0xFA)
1262 if (Scancode != 0x00)
1281 TRACE(
"Detected PS2 port\n");
1284 if (PartialResourceList ==
NULL)
1286 ERR(
"Failed to allocate resource descriptor\n");
1292 PartialResourceList->
Version = 1;
1294 PartialResourceList->
Count = 1;
1312 PartialResourceList,
1318 TRACE(
"Detected PS2 mouse\n");
1324 if (PartialResourceList ==
NULL)
1326 ERR(
"Failed to allocate resource descriptor\n");
1331 PartialResourceList->
Version = 1;
1333 PartialResourceList->
Count = 0;
1342 "MICROSOFT PS2 MOUSE",
1343 PartialResourceList,
1352CreateBusMousePeripheralKey(
1366 if (PartialResourceList ==
NULL)
1368 ERR(
"Failed to allocate resource descriptor\n");
1374 PartialResourceList->
Version = 1;
1376 PartialResourceList->
Count = 2;
1383 PartialDescriptor->
u.
Port.Start.LowPart = IoBase;
1384 PartialDescriptor->
u.
Port.Start.HighPart = 0;
1385 PartialDescriptor->
u.
Port.Length = 4;
1404 PartialResourceList,
1411 if (PartialResourceList ==
NULL)
1413 ERR(
"Failed to allocate resource descriptor\n");
1419 PartialResourceList->
Version = 1;
1421 PartialResourceList->
Count = 0;
1430 "MICROSOFT INPORT MOUSE",
1431 PartialResourceList,
1441DetectBusMouseTestIrq(
1445 USHORT OldOffset, OldExtendedOffset;
1457 OldOffset = i386Idt[
Vector].Offset;
1458 OldExtendedOffset = i386Idt[
Vector].ExtendedOffset;
1460 i386Idt[
Vector].Offset = (
ULONG)HwIrqHandler & 0xFFFF;
1461 i386Idt[
Vector].ExtendedOffset = (
ULONG)HwIrqHandler >> 16;
1469 for (
i = 0;
i < 15;
i++)
1480 i386Idt[
Vector].Offset = OldOffset;
1481 i386Idt[
Vector].ExtendedOffset = OldExtendedOffset;
1483 return (HwIrqCount != 0) ? Irq : 0;
1501 for (Irq = 5; Irq >= 3; Irq--)
1503 Result = DetectBusMouseTestIrq(IoBase, Irq);
1519 ULONG IoBase, Irq, Signature1, Signature2, Signature3;
1525 for (IoBase = 0x23C; IoBase >= 0x230; IoBase -= 4)
1529 if (Signature1 == Signature2)
1535 if (Signature1 != Signature3)
1538 Irq = DetectBusMouseIrq(IoBase);
1542 CreateBusMousePeripheralKey(BusKey, IoBase, Irq);
1563 if (VesaVersion != 0)
1565 TRACE(
"VESA version %c.%c\n",
1566 (VesaVersion >> 8) +
'0',
1567 (VesaVersion & 0xFF) +
'0');
1571 TRACE(
"VESA not supported\n");
1574 if (VesaVersion >= 0x0200)
1591 if (VesaVersion != 0)
1595 TRACE(
"VESA/DDC supported!\n");
1598 TRACE(
"EDID data read successfully!\n");
1619 if (PartialResourceList ==
NULL)
1621 ERR(
"Failed to allocate resource descriptor\n");
1627 PartialResourceList->
Version = 1;
1629 PartialResourceList->
Count = 0;
1639 PartialResourceList,
1653 DetectBusMouse(BusKey);
1661#if !defined(SARCH_XBOX)
1671 return ((
Data & 0xF0) ? 1 : 0) + ((
Data & 0x0F) ? 1 : 0);
1682 TRACE(
"DetectHardware()\n");
1701 TRACE(
"DetectHardware() Done\n");
1717 Int386(0x15, &Regs, &Regs);
1759#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)
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)
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::@392::@401 DeviceSpecificData
union _CM_PARTIAL_RESOURCE_DESCRIPTOR::@392 u
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@392::@394 Port
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@392::@395 Interrupt
CM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptors[1]
ULONG BytesPerSector
Number of bytes per sector.
ULONG Cylinders
Number of cylinders on the disk.
ULONG SectorsPerTrack
Number of sectors per track.
ULONG Heads
Number of heads on the disk.
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