ReactOS  0.4.15-dev-3297-g037c744
halp.h
Go to the documentation of this file.
1 /*
2  *
3  */
4 
5 #pragma once
6 
7 #ifdef CONFIG_SMP
8 #define HAL_BUILD_TYPE (DBG ? PRCB_BUILD_DEBUG : 0)
9 #else
10 #define HAL_BUILD_TYPE ((DBG ? PRCB_BUILD_DEBUG : 0) | PRCB_BUILD_UNIPROCESSOR)
11 #endif
12 
13 typedef struct _HAL_BIOS_FRAME
14 {
29 
30 typedef
31 VOID
33  VOID
34 );
35 
36 typedef
37 VOID
39  IN PKTRAP_FRAME TrapFrame
40 );
41 
42 #define HAL_APC_REQUEST 0
43 #define HAL_DPC_REQUEST 1
44 
45 /* HAL profiling offsets in KeGetPcr()->HalReserved[] */
46 #define HAL_PROFILING_INTERVAL 0
47 #define HAL_PROFILING_MULTIPLIER 1
48 
49 /* Usage flags */
50 #define IDT_REGISTERED 0x01
51 #define IDT_LATCHED 0x02
52 #define IDT_READ_ONLY 0x04
53 #define IDT_INTERNAL 0x11
54 #define IDT_DEVICE 0x21
55 
56 /* Conversion functions */
57 #define BCD_INT(bcd) \
58  (((bcd & 0xF0) >> 4) * 10 + (bcd & 0x0F))
59 #define INT_BCD(int) \
60  (UCHAR)(((int / 10) << 4) + (int % 10))
61 
62 typedef
63 BOOLEAN
65  IN KIRQL Irql,
66  IN ULONG Irq,
68 );
69 
70 BOOLEAN
71 NTAPI
73  IN KIRQL Irql,
74  IN ULONG Irq,
76 );
77 
78 BOOLEAN
79 NTAPI
81  IN KIRQL Irql,
82  IN ULONG Irq,
84 );
85 
86 BOOLEAN
87 NTAPI
89  IN KIRQL Irql,
90  IN ULONG Irq,
92 );
93 
94 BOOLEAN
95 NTAPI
97  IN KIRQL Irql,
98  IN ULONG Irq,
100 );
101 
102 BOOLEAN
103 NTAPI
105  IN KIRQL Irql,
106  IN ULONG Irq,
108 );
109 
110 BOOLEAN
111 NTAPI
113  IN KIRQL Irql,
114  IN ULONG Irq,
116 );
117 
118 BOOLEAN
119 NTAPI
121  IN KIRQL Irql,
122  IN ULONG Irq,
124 );
125 
126 BOOLEAN
127 NTAPI
129  IN KIRQL Irql,
130  IN ULONG Irq,
132 );
133 
134 VOID
135 __cdecl
137  VOID
138 );
139 
140 //
141 // Hack Flags
142 //
143 #define HALP_REVISION_FROM_HACK_FLAGS(x) ((x) >> 24)
144 #define HALP_REVISION_HACK_FLAGS(x) ((x) >> 12)
145 #define HALP_HACK_FLAGS(x) ((x) & 0xFFF)
146 
147 //
148 // Feature flags
149 //
150 #define HALP_CARD_FEATURE_FULL_DECODE 0x0001
151 
152 //
153 // Match Flags
154 //
155 #define HALP_CHECK_CARD_REVISION_ID 0x10000
156 #define HALP_CHECK_CARD_SUBVENDOR_ID 0x20000
157 #define HALP_CHECK_CARD_SUBSYSTEM_ID 0x40000
158 
159 //
160 // Mm PTE/PDE to Hal PTE/PDE
161 //
162 #define HalAddressToPde(x) (PHARDWARE_PTE)MiAddressToPde(x)
163 #define HalAddressToPte(x) (PHARDWARE_PTE)MiAddressToPte(x)
164 
165 typedef struct _IDTUsageFlags
166 {
167  UCHAR Flags;
168 } IDTUsageFlags;
169 
170 typedef struct
171 {
172  KIRQL Irql;
173  UCHAR BusReleativeVector;
174 } IDTUsage;
175 
176 typedef struct _HalAddressUsage
177 {
179  CM_RESOURCE_TYPE Type;
181  struct
182  {
185  } Element[];
187 
188 /* adapter.c */
190 
191 /* sysinfo.c */
192 CODE_SEG("INIT")
193 VOID
194 NTAPI
196  IN ULONG BusVector,
197  IN ULONG SystemVector,
198  IN KIRQL Irql);
199 
200 CODE_SEG("INIT")
201 VOID
202 NTAPI
204  IN ULONG BusVector,
205  IN ULONG SystemVector,
206  IN KIRQL Irql,
207  IN PVOID Handler,
209 
210 /* pic.c */
217 
218 /* profil.c */
220 
221 /* timer.c */
225 
227 {
231 
232 VOID
233 NTAPI
235 
236 /* pci.c */
238 
239 /* dma.c */
240 CODE_SEG("INIT") VOID HalpInitDma (VOID);
241 
242 /* Non-generic initialization */
245 
246 VOID
247 NTAPI
249 
250 //
251 // KD Support
252 //
253 VOID
254 NTAPI
256  VOID
257 );
258 
259 CODE_SEG("INIT")
260 VOID
261 NTAPI
263  VOID
264 );
265 
266 CODE_SEG("INIT")
267 NTSTATUS
268 NTAPI
270  IN PVOID LoaderBlock,
272 );
273 
274 CODE_SEG("INIT")
275 NTSTATUS
276 NTAPI
279 );
280 
281 //
282 // Memory routines
283 //
284 ULONG64
285 NTAPI
287  IN PLOADER_PARAMETER_BLOCK LoaderBlock,
288  IN ULONG64 MaxAddress,
289  IN PFN_NUMBER PageCount,
290  IN BOOLEAN Aligned
291 );
292 
293 PVOID
294 NTAPI
297  IN PFN_COUNT PageCount,
298  IN BOOLEAN FlushCurrentTLB
299 );
300 
301 VOID
302 NTAPI
305  IN PFN_COUNT NumberPages,
306  IN BOOLEAN FlushCurrentTLB
307 );
308 
309 PVOID
310 NTAPI
313  IN PFN_COUNT PageCount
314 );
315 
316 VOID
317 NTAPI
320  IN PFN_COUNT NumberPages
321 );
322 
323 /* sysinfo.c */
324 NTSTATUS
325 NTAPI
327  _In_ BOOLEAN IsRead,
328  _In_ ULONG Port,
329  _In_ ULONG Length,
331 );
332 
333 NTSTATUS
334 NTAPI
338  IN OUT PVOID Buffer,
340 );
341 
342 NTSTATUS
343 NTAPI
348 );
349 
350 //
351 // BIOS Routines
352 //
353 BOOLEAN
354 NTAPI
356  VOID
357 );
358 
359 VOID
360 FASTCALL
362  PKTRAP_FRAME TrapFrame
363 );
364 
365 VOID
366 __cdecl
368  VOID
369 );
370 
371 //
372 // Processor Halt Routine
373 //
374 VOID
375 NTAPI
377  VOID
378 );
379 
380 //
381 // CMOS Routines
382 //
383 CODE_SEG("INIT")
384 VOID
385 NTAPI
387  VOID
388 );
389 
391 UCHAR
392 NTAPI
394  IN UCHAR Reg
395 );
396 
398 VOID
399 NTAPI
401  IN UCHAR Reg,
402  IN UCHAR Value
403 );
404 
405 //
406 // Spinlock for protecting CMOS access
407 //
409 VOID
410 NTAPI
412  VOID
413 );
414 
416 VOID
417 NTAPI
419  VOID
420 );
421 
422 VOID
423 NTAPI
425  VOID
426 );
427 
428 NTSTATUS
429 NTAPI
432  IN HANDLE RootKey,
436 );
437 
438 CODE_SEG("INIT")
439 VOID
440 NTAPI
442  VOID
443 );
444 
445 CODE_SEG("INIT")
446 BOOLEAN
447 NTAPI
449  VOID
450 );
451 
452 CODE_SEG("INIT")
453 VOID
454 NTAPI
456  VOID
457 );
458 
459 CODE_SEG("INIT")
460 NTSTATUS
461 NTAPI
463  VOID
464 );
465 
466 CODE_SEG("INIT")
467 VOID
468 NTAPI
470  VOID
471 );
472 
473 CODE_SEG("INIT")
474 VOID
475 NTAPI
479 );
480 
481 CODE_SEG("INIT")
482 ULONG
483 NTAPI
485  VOID
486 );
487 
488 NTSTATUS
489 NTAPI
491  OUT PIO_RESOURCE_REQUIREMENTS_LIST *Requirements
492 );
493 
494 VOID
495 FASTCALL
497  IN PKTRAP_FRAME TrapFrame,
500 );
501 
502 CODE_SEG("INIT")
503 VOID
504 NTAPI
506  VOID
507 );
508 
509 NTSTATUS
510 NTAPI
512  VOID
513 );
514 
515 CODE_SEG("INIT")
516 VOID
517 NTAPI
519  IN ULONG i,
520  IN ULONG j,
521  IN ULONG k,
522  IN PPCI_COMMON_CONFIG PciData
523 );
524 
525 VOID
526 NTAPI
528  IN ULONG ProcessorNumber,
529  IN PLOADER_PARAMETER_BLOCK LoaderBlock
530 );
531 
532 #if defined(SARCH_PC98)
533 BOOLEAN
534 NTAPI
535 HalpDismissIrq08(
536  _In_ KIRQL Irql,
537  _In_ ULONG Irq,
539 );
540 
541 BOOLEAN
542 NTAPI
543 HalpDismissIrq08Level(
544  _In_ KIRQL Irql,
545  _In_ ULONG Irq,
547 );
548 
549 VOID
550 NTAPI
552 
553 extern ULONG PIT_FREQUENCY;
554 #endif /* SARCH_PC98 */
555 
556 #ifdef _M_AMD64
557 
558 VOID
559 NTAPI
561  _In_ ULONG Phase,
562  _In_ PLOADER_PARAMETER_BLOCK LoaderBlock
563 );
564 
565 #define KfLowerIrql KeLowerIrql
566 #define KiEnterInterruptTrap(TrapFrame) /* We do all neccessary in asm code */
567 #define KiEoiHelper(TrapFrame) return /* Just return to the caller */
568 #define HalBeginSystemInterrupt(Irql, Vector, OldIrql) ((*(OldIrql) = PASSIVE_LEVEL), TRUE)
569 #endif // _M_AMD64
570 
572 
574 
576 
578 
580 
582 
585 extern PWCHAR HalName;
586 
588 
590 
591 extern const USHORT HalpBuildType;
ULONG Length
Definition: halp.h:184
ULONG CsLimit
Definition: halp.h:21
CPPORT Port[4]
Definition: headless.c:35
#define IN
Definition: typedefs.h:39
VOID NTAPI HalInitializeBios(_In_ ULONG Phase, _In_ PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: x86bios.c:48
VOID NTAPI HalpWriteCmos(_In_ UCHAR Reg, _In_ UCHAR Value)
Definition: cmos.c:132
struct _HalAddressUsage::@1472 Element[]
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Definition: wdfdevice.h:2654
static NTSTATUS EnableInterrupts(IN PPORT_DEVICE_EXTENSION DeviceExtension, IN UCHAR FlagsToDisable, IN UCHAR FlagsToEnable)
Definition: pnp.c:380
VOID FASTCALL HalpExitToV86(PKTRAP_FRAME TrapFrame)
VOID HalpInitPciBus(VOID)
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
enum _INTERFACE_TYPE INTERFACE_TYPE
static PMEMKEY RootKey
Definition: registry.c:55
VOID NTAPI HalpRegisterVector(IN UCHAR Flags, IN ULONG BusVector, IN ULONG SystemVector, IN KIRQL Irql)
Definition: usage.c:34
#define _Inout_
Definition: ms_sal.h:378
NTSTATUS NTAPI HalpReleasePciDeviceForDebugging(IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice)
Definition: pcibus.c:624
_Out_ PULONG NumberOfMapRegisters
Definition: halfuncs.h:209
NTSTATUS NTAPI HalpMarkAcpiHal(VOID)
Definition: misc.c:57
#define __cdecl
Definition: accygwin.h:79
_In_ ULONG Mode
Definition: hubbusif.h:303
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ ULONG _Out_ PNDIS_STRING _Out_ PNDIS_HANDLE KeyHandle
Definition: ndis.h:4711
BOOLEAN NTAPI HalpDismissIrqLevel(IN KIRQL Irql, IN ULONG Irq, OUT PKIRQL OldIrql)
Definition: pic.c:816
#define _Out_
Definition: ms_sal.h:345
ULONG PFN_COUNT
Definition: mmtypes.h:102
VOID HalpClockInterrupt(VOID)
Definition: timer.c:30
NTSTATUS NTAPI HaliHandlePCIConfigSpaceAccess(_In_ BOOLEAN IsRead, _In_ ULONG Port, _In_ ULONG Length, _Inout_ PULONG Buffer)
Definition: sysinfo.c:43
_In_ BOOLEAN Create
Definition: pstypes.h:527
ULONG NTAPI HalpIs16BitPortDecodeSupported(VOID)
Definition: halacpi.c:961
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NTAPI HalpQueryAcpiResourceRequirements(OUT PIO_RESOURCE_REQUIREMENTS_LIST *Requirements)
Definition: halacpi.c:1016
VOID NTAPI HalpInitializeClockPc98(VOID)
Definition: clock.c:62
ULONG CsBase
Definition: halp.h:22
VOID NTAPI HalpCheckPowerButton(VOID)
Definition: misc.c:146
ULONG SsFlags
Definition: halp.h:26
uint16_t * PWCHAR
Definition: typedefs.h:56
VOID HalpInitializeClock(VOID)
Definition: timer.c:54
PADDRESS_USAGE HalpAddressUsageList
Definition: usage.c:20
#define FASTCALL
Definition: nt_native.h:50
_Out_ PKIRQL Irql
Definition: csq.h:179
#define DECLSPEC_NORETURN
Definition: ntbasedef.h:176
BOOLEAN NTAPI HalpDismissIrq15(IN KIRQL Irql, IN ULONG Irq, OUT PKIRQL OldIrql)
Definition: pic.c:644
PVOID NTAPI HalpMapPhysicalMemory64Vista(IN PHYSICAL_ADDRESS PhysicalAddress, IN PFN_COUNT PageCount, IN BOOLEAN FlushCurrentTLB)
Definition: memory.c:156
DECLSPEC_NORETURN VOID FASTCALL HalpDispatchInterrupt2ndEntry(IN PKTRAP_FRAME TrapFrame)
Definition: pic.c:1183
ULONG Increment
Definition: halp.h:229
VOID FASTCALL KeUpdateSystemTime(IN PKTRAP_FRAME TrapFrame, IN ULONG Increment, IN KIRQL OldIrql)
Definition: time.c:64
VOID NTAPI HalpBuildAddressMap(VOID)
Definition: halacpi.c:944
CODE_SEG("INIT") VOID NTAPI HalpInitializeClock(VOID)
Definition: Interface.c:1810
UCHAR KIRQL
Definition: env_spec_w32.h:591
VOID HalpInitPhase1(VOID)
Definition: halinit_up.c:26
VOID NTAPI HalpEnableInterruptHandler(IN UCHAR Flags, IN ULONG BusVector, IN ULONG SystemVector, IN KIRQL Irql, IN PVOID Handler, IN KINTERRUPT_MODE Mode)
Definition: usage.c:49
ULONG PFN_NUMBER
Definition: ke.h:9
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
VOID NTAPI HalpReleaseCmosSpinLock(VOID)
Definition: spinlock.c:229
PWCHAR HalName
Definition: halacpi.c:45
struct _HAL_BIOS_FRAME HAL_BIOS_FRAME
DECLSPEC_NORETURN VOID FASTCALL HalpApcInterrupt2ndEntry(IN PKTRAP_FRAME TrapFrame)
Definition: pic.c:1134
ULONG Start
Definition: halp.h:183
VOID __cdecl HalpDispatchInterrupt(VOID)
ULONG Esp
Definition: halp.h:16
unsigned char BOOLEAN
BOOLEAN HalDisableFirmwareMapper
Definition: halacpi.c:43
VOID HalpProfileInterrupt(VOID)
enum _KINTERRUPT_MODE KINTERRUPT_MODE
UCHAR Flags
Definition: halp.h:26
#define _In_
Definition: ms_sal.h:308
VOID(FASTCALL * PHAL_SW_INTERRUPT_HANDLER_2ND_ENTRY)(IN PKTRAP_FRAME TrapFrame)
Definition: halp.h:38
ULONG EFlags
Definition: halp.h:17
VOID HalpInitDma(VOID)
Definition: dma.c:153
Definition: bufpool.h:45
ULONG SsBase
Definition: halp.h:25
_Must_inspect_result_ _In_ WDFDMATRANSACTION _In_ PFN_WDF_PROGRAM_DMA _In_ WDF_DMA_DIRECTION _In_ PMDL _In_ PVOID VirtualAddress
VOID NTAPI HalpFlushTLB(VOID)
Definition: misc.c:156
BOOLEAN NTAPI HalpBiosDisplayReset(VOID)
Definition: x86bios.c:493
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
Definition: wdfdevice.h:2697
CM_RESOURCE_TYPE Type
Definition: halp.h:179
enum _HAL_QUERY_INFORMATION_CLASS HAL_QUERY_INFORMATION_CLASS
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
Definition: glfuncs.h:250
KIRQL OldIrql
Definition: mm.h:1502
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:406
VOID HalpInitPhase0(PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: halinit_mp.c:30
VOID NTAPI HalpInitializeCmos(VOID)
Definition: cmos.c:159
ULONG CsFlags
Definition: halp.h:23
BOOLEAN HalpProfilingStopped
Definition: profil.c:18
_Acquires_lock_(HalpSystemHardwareLock) VOID NTAPI HalpAcquireCmosSpinLock(VOID)
VOID NTAPI HalpCalibrateStallExecution(VOID)
Definition: pchw.c:105
VOID NTAPI HalpUnmapVirtualAddress(IN PVOID VirtualAddress, IN PFN_COUNT NumberPages)
Definition: memory.c:148
NTSTATUS NTAPI HalpSetupPciDeviceForDebugging(IN PVOID LoaderBlock, IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice)
Definition: pcibus.c:614
KAFFINITY HalpActiveProcessors
Definition: processor.c:17
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
struct _HalAddressUsage * PADDRESS_USAGE
VOID NTAPI HalpRegisterKdSupportFunctions(VOID)
Definition: busemul.c:22
ULONG SegSs
Definition: halp.h:15
KSPIN_LOCK HalpSystemHardwareLock
Definition: spinlock.c:25
ULONG SegCs
Definition: halp.h:18
ADDRESS_USAGE HalpDefaultIoSpace
Definition: usage.c:42
const USHORT HalpBuildType
Definition: buildtype.c:14
VOID NTAPI HalpAcquireCmosSpinLock(VOID)
Definition: spinlock.c:212
struct _HAL_BIOS_FRAME * PHAL_BIOS_FRAME
ULONG RollOver
Definition: halp.h:228
ULONG SsLimit
Definition: halp.h:24
NTSTATUS NTAPI HaliInitPnpDriver(VOID)
Definition: halpnpdd.c:886
BOOLEAN NTAPI HalpDismissIrq15Level(IN KIRQL Irql, IN ULONG Irq, OUT PKIRQL OldIrql)
Definition: pic.c:826
PWCHAR HalHardwareIdString
Definition: halacpi.c:44
unsigned __int64 ULONG64
Definition: imports.h:198
enum _HAL_SET_INFORMATION_CLASS HAL_SET_INFORMATION_CLASS
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS PhysicalAddress
Definition: iotypes.h:1098
unsigned char UCHAR
Definition: xmlstorage.h:181
struct _IDTUsageFlags IDTUsageFlags
ULONG Eip
Definition: halp.h:19
VOID __cdecl HalpApcInterrupt(VOID)
KAFFINITY HalpDefaultInterruptAffinity
Definition: processor.c:18
_Releases_lock_(HalpSystemHardwareLock) VOID NTAPI HalpReleaseCmosSpinLock(VOID)
struct _HalAddressUsage ADDRESS_USAGE
LARGE_INTEGER HalpPerfCounter
Definition: timer.c:23
VOID NTAPI HalpInitBusHandlers(VOID)
Definition: halacpi.c:935
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:454
#define VOID
Definition: acefi.h:82
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG _In_ ULONG _Out_ PULONG ReturnedLength
Definition: batclass.h:187
KIRQL * PKIRQL
Definition: env_spec_w32.h:592
VOID NTAPI HalpUnmapVirtualAddressVista(IN PVOID VirtualAddress, IN PFN_COUNT NumberPages, IN BOOLEAN FlushCurrentTLB)
Definition: memory.c:227
BOOLEAN NTAPI HalpDismissIrqGeneric(IN KIRQL Irql, IN ULONG Irq, OUT PKIRQL OldIrql)
Definition: pic.c:634
UCHAR Flags
Definition: halp.h:180
ULONG64 NTAPI HalpAllocPhysicalMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock, IN ULONG64 MaxAddress, IN PFN_NUMBER PageCount, IN BOOLEAN Aligned)
Definition: memory.c:29
BOOLEAN NTAPI HalpDismissIrq13(IN KIRQL Irql, IN ULONG Irq, OUT PKIRQL OldIrql)
Definition: pic.c:679
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER Handler
Definition: acpixf.h:668
VOID NTAPI HalpDebugPciDumpBus(IN ULONG i, IN ULONG j, IN ULONG k, IN PPCI_COMMON_CONFIG PciData)
Definition: bussupp.c:790
VOID NTAPI HalpGetNMICrashFlag(VOID)
Definition: usage.c:587
PHAL_SW_INTERRUPT_HANDLER __cdecl HalpDispatchInterrupt2(VOID)
Definition: pic.c:1199
NTSTATUS NTAPI HalpOpenRegistryKey(IN PHANDLE KeyHandle, IN HANDLE RootKey, IN PUNICODE_STRING KeyName, IN ACCESS_MASK DesiredAccess, IN BOOLEAN Create)
Definition: misc.c:104
_Requires_lock_held_(HalpSystemHardwareLock) UCHAR NTAPI HalpReadCmos(IN UCHAR Reg)
PADAPTER_OBJECT NTAPI HalpAllocateAdapterEx(ULONG NumberOfMapRegisters, BOOLEAN IsMaster, BOOLEAN Dma32BitAddresses)
VOID NTAPI HalpReportSerialNumber(VOID)
Definition: misc.c:26
ULONG PIT_FREQUENCY
Definition: clock.c:17
VOID NTAPI HaliHaltSystem(VOID)
Definition: processor.c:21
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
Definition: glfuncs.h:248
unsigned short USHORT
Definition: pedump.c:61
BOOLEAN NTAPI HalpDismissIrq13Level(IN KIRQL Irql, IN ULONG Irq, OUT PKIRQL OldIrql)
Definition: pic.c:861
ULONG_PTR KAFFINITY
Definition: compat.h:85
struct _HALP_ROLLOVER * PHALP_ROLLOVER
BOOLEAN NTAPI HalpDismissIrq07(IN KIRQL Irql, IN ULONG Irq, OUT PKIRQL OldIrql)
Definition: pic.c:708
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
UCHAR NTAPI HalpReadCmos(_In_ UCHAR Reg)
Definition: cmos.c:123
unsigned int * PULONG
Definition: retypes.h:1
VOID __cdecl HalpRealModeStart(VOID)
IDTUsageFlags HalpIDTUsageFlags[MAXIMUM_IDTVECTOR+1]
Definition: usage.c:19
BOOLEAN NTAPI HalpGetDebugPortTable(VOID)
Definition: halacpi.c:952
NTSTATUS NTAPI HaliSetSystemInformation(IN HAL_SET_INFORMATION_CLASS InformationClass, IN ULONG BufferSize, IN OUT PVOID Buffer)
Definition: sysinfo.c:31
PVOID NTAPI HalpMapPhysicalMemory64(IN PHYSICAL_ADDRESS PhysicalAddress, IN PFN_COUNT PageCount)
Definition: memory.c:140
Definition: halp.h:29
#define BOOLEAN
Definition: pedump.c:73
#define OUT
Definition: typedefs.h:40
VOID NTAPI HalpInitializePICs(IN BOOLEAN EnableInterrupts)
Definition: apic.c:478
unsigned int ULONG
Definition: retypes.h:1
NTSTATUS NTAPI HaliQuerySystemInformation(IN HAL_QUERY_INFORMATION_CLASS InformationClass, IN ULONG BufferSize, IN OUT PVOID Buffer, OUT PULONG ReturnedLength)
Definition: sysinfo.c:19
BOOLEAN(NTAPI * PHAL_DISMISS_INTERRUPT)(IN KIRQL Irql, IN ULONG Irq, OUT PKIRQL OldIrql)
Definition: halp.h:64
struct _HalAddressUsage * Next
Definition: halp.h:178
PKTRAP_FRAME TrapFrame
Definition: halp.h:20
_In_ FILTER_INFORMATION_CLASS InformationClass
Definition: fltkernel.h:1713
VOID __cdecl HalpHardwareInterruptLevel(VOID)
VOID NTAPI HalpInitializeLegacyPICs(VOID)
Definition: pic.c:18
IN OUT PLONG IN OUT PLONG Addend IN OUT PLONG IN LONG Increment
Definition: CrNtStubs.h:42
ULONG Prefix
Definition: halp.h:27
BOOLEAN HalpNMIInProgress
Definition: nmi.c:18
struct _HALP_ROLLOVER HALP_ROLLOVER
int k
Definition: mpi.c:3369
VOID NTAPI HalpInitProcessor(IN ULONG ProcessorNumber, IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: halinit.c:23
ULONG ACCESS_MASK
Definition: nt_native.h:40
#define MAXIMUM_IDTVECTOR
Definition: asm.h:280
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID InterfaceType
Definition: wdffdo.h:461
VOID(__cdecl * PHAL_SW_INTERRUPT_HANDLER)(VOID)
Definition: halp.h:32
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:251
BOOLEAN NTAPI HalpDismissIrq07Level(IN KIRQL Irql, IN ULONG Irq, OUT PKIRQL OldIrql)
Definition: pic.c:890
VOID NTAPI HalpReportResourceUsage(IN PUNICODE_STRING HalName, IN INTERFACE_TYPE InterfaceType)
Definition: usage.c:26