ReactOS  0.4.15-dev-1070-ge1a01de
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 INIT_FUNCTION
193 VOID
194 NTAPI
196  IN ULONG BusVector,
197  IN ULONG SystemVector,
198  IN KIRQL Irql);
199 
200 INIT_FUNCTION
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 */
222 INIT_FUNCTION VOID NTAPI HalpInitializeClock(VOID);
225 
226 typedef struct _HALP_ROLLOVER
227 {
231 
232 VOID
233 NTAPI
235 
236 /* pci.c */
238 
239 /* dma.c */
240 INIT_FUNCTION 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 INIT_FUNCTION
260 VOID
261 NTAPI
263  VOID
264 );
265 
266 INIT_FUNCTION
267 NTSTATUS
268 NTAPI
270  IN PVOID LoaderBlock,
272 );
273 
274 INIT_FUNCTION
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
329  IN OUT PVOID Buffer,
331 );
332 
333 NTSTATUS
334 NTAPI
339 );
340 
341 //
342 // BIOS Routines
343 //
344 BOOLEAN
345 NTAPI
347  VOID
348 );
349 
350 VOID
351 FASTCALL
353  PKTRAP_FRAME TrapFrame
354 );
355 
356 VOID
357 __cdecl
359  VOID
360 );
361 
362 //
363 // Processor Halt Routine
364 //
365 VOID
366 NTAPI
368  VOID
369 );
370 
371 //
372 // CMOS Routines
373 //
374 INIT_FUNCTION
375 VOID
376 NTAPI
378  VOID
379 );
380 
382 UCHAR
383 NTAPI
385  IN UCHAR Reg
386 );
387 
389 VOID
390 NTAPI
392  IN UCHAR Reg,
393  IN UCHAR Value
394 );
395 
396 //
397 // Spinlock for protecting CMOS access
398 //
400 VOID
401 NTAPI
403  VOID
404 );
405 
407 VOID
408 NTAPI
410  VOID
411 );
412 
413 VOID
414 NTAPI
416  VOID
417 );
418 
419 NTSTATUS
420 NTAPI
423  IN HANDLE RootKey,
427 );
428 
429 INIT_FUNCTION
430 VOID
431 NTAPI
433  VOID
434 );
435 
436 INIT_FUNCTION
437 BOOLEAN
438 NTAPI
440  VOID
441 );
442 
443 INIT_FUNCTION
444 VOID
445 NTAPI
447  VOID
448 );
449 
450 INIT_FUNCTION
451 NTSTATUS
452 NTAPI
454  VOID
455 );
456 
457 INIT_FUNCTION
458 VOID
459 NTAPI
461  VOID
462 );
463 
464 INIT_FUNCTION
465 VOID
466 NTAPI
469  IN INTERFACE_TYPE InterfaceType
470 );
471 
472 INIT_FUNCTION
473 ULONG
474 NTAPI
476  VOID
477 );
478 
479 NTSTATUS
480 NTAPI
482  OUT PIO_RESOURCE_REQUIREMENTS_LIST *Requirements
483 );
484 
485 VOID
486 FASTCALL
488  IN PKTRAP_FRAME TrapFrame,
491 );
492 
493 INIT_FUNCTION
494 VOID
495 NTAPI
497  VOID
498 );
499 
500 NTSTATUS
501 NTAPI
503  VOID
504 );
505 
506 INIT_FUNCTION
507 VOID
508 NTAPI
510  IN ULONG i,
511  IN ULONG j,
512  IN ULONG k,
513  IN PPCI_COMMON_CONFIG PciData
514 );
515 
516 VOID
517 NTAPI
519  IN ULONG ProcessorNumber,
520  IN PLOADER_PARAMETER_BLOCK LoaderBlock
521 );
522 
523 #if defined(SARCH_PC98)
524 BOOLEAN
525 NTAPI
526 HalpDismissIrq08(
527  _In_ KIRQL Irql,
528  _In_ ULONG Irq,
530 );
531 
532 BOOLEAN
533 NTAPI
534 HalpDismissIrq08Level(
535  _In_ KIRQL Irql,
536  _In_ ULONG Irq,
538 );
539 
540 VOID
541 NTAPI
543 
544 extern ULONG PIT_FREQUENCY;
545 #endif /* SARCH_PC98 */
546 
547 #ifdef _M_AMD64
548 
549 VOID
550 NTAPI
553  _In_ PLOADER_PARAMETER_BLOCK LoaderBlock
554 );
555 
556 #define KfLowerIrql KeLowerIrql
557 #define KiEnterInterruptTrap(TrapFrame) /* We do all neccessary in asm code */
558 #define KiEoiHelper(TrapFrame) return /* Just return to the caller */
559 #define HalBeginSystemInterrupt(Irql, Vector, OldIrql) ((*(OldIrql) = PASSIVE_LEVEL), TRUE)
560 #ifndef CONFIG_SMP
561 /* On UP builds, spinlocks don't exist at IRQL >= DISPATCH */
562 #define KiAcquireSpinLock(SpinLock)
563 #define KiReleaseSpinLock(SpinLock)
564 #define KfAcquireSpinLock(SpinLock) KfRaiseIrql(DISPATCH_LEVEL);
565 #define KfReleaseSpinLock(SpinLock, OldIrql) KeLowerIrql(OldIrql);
566 #endif // !CONFIG_SMP
567 #endif // _M_AMD64
568 
570 
572 
574 
576 
578 
580 
583 extern PWCHAR HalName;
584 
586 
588 
589 extern const USHORT HalpBuildType;
ULONG Length
Definition: halp.h:184
ULONG CsLimit
Definition: halp.h:21
NTSTATUS NTAPI HaliQuerySystemInformation(IN HAL_QUERY_INFORMATION_CLASS InformationClass, IN ULONG BufferSize, IN OUT PVOID Buffer, OUT PULONG ReturnedLength)
Definition: sysinfo.c:19
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ ULONG _Out_ PNDIS_STRING KeyName
Definition: ndis.h:4711
#define IN
Definition: typedefs.h:39
VOID FORCEINLINE HalpWriteCmos(IN UCHAR Reg, IN UCHAR Value)
Definition: cmos.c:35
static NTSTATUS EnableInterrupts(IN PPORT_DEVICE_EXTENSION DeviceExtension, IN UCHAR FlagsToDisable, IN UCHAR FlagsToEnable)
Definition: pnp.c:380
VOID FASTCALL HalpExitToV86(PKTRAP_FRAME TrapFrame)
PADAPTER_OBJECT NTAPI HalpAllocateAdapterEx(ULONG NumberOfMapRegisters, BOOLEAN IsMaster, BOOLEAN Dma32BitAddresses)
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
_Out_ PULONG NumberOfMapRegisters
Definition: halfuncs.h:209
#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
ULONG PFN_COUNT
Definition: mmtypes.h:102
VOID HalpClockInterrupt(VOID)
Definition: timer.c:30
INIT_FUNCTION BOOLEAN NTAPI HalpGetDebugPortTable(VOID)
Definition: halacpi.c:952
_In_ BOOLEAN Create
Definition: pstypes.h:519
INIT_FUNCTION NTSTATUS NTAPI HalpMarkAcpiHal(VOID)
Definition: misc.c:62
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NTAPI HalpQueryAcpiResourceRequirements(OUT PIO_RESOURCE_REQUIREMENTS_LIST *Requirements)
Definition: halacpi.c:1016
INIT_FUNCTION VOID NTAPI HalpReportResourceUsage(IN PUNICODE_STRING HalName, IN INTERFACE_TYPE InterfaceType)
Definition: usage.c:26
VOID NTAPI HalpInitializeClockPc98(VOID)
Definition: clock.c:62
ULONG CsBase
Definition: halp.h:22
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:59
VOID NTAPI HalpCheckPowerButton(VOID)
Definition: misc.c:20
#define FASTCALL
Definition: nt_native.h:50
_Out_ PKIRQL Irql
Definition: csq.h:179
#define DECLSPEC_NORETURN
Definition: ntbasedef.h:176
INIT_FUNCTION ULONG NTAPI HalpIs16BitPortDecodeSupported(VOID)
Definition: halacpi.c:961
IN UCHAR Value
Definition: halp.h:394
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
INIT_FUNCTION VOID NTAPI HalpDebugPciDumpBus(IN ULONG i, IN ULONG j, IN ULONG k, IN PPCI_COMMON_CONFIG PciData)
Definition: bussupp.c:807
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
UCHAR KIRQL
Definition: env_spec_w32.h:591
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
VOID HalpInitPhase1(VOID)
Definition: halinit_up.c:26
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
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:8
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:244
NTSTATUS NTAPI HalpSetupPciDeviceForDebugging(IN PVOID LoaderBlock, IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice)
Definition: pci.c:473
VOID NTAPI HalpUnmapVirtualAddress(IN PVOID VirtualAddress, IN ULONG NumberPages)
Definition: misc.c:39
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 _Out_
Definition: no_sal2.h:323
UCHAR FORCEINLINE HalpReadCmos(IN UCHAR Reg)
Definition: cmos.c:24
VOID(FASTCALL * PHAL_SW_INTERRUPT_HANDLER_2ND_ENTRY)(IN PKTRAP_FRAME TrapFrame)
Definition: halp.h:38
ULONG EFlags
Definition: halp.h:17
Definition: bufpool.h:45
ULONG SsBase
Definition: halp.h:25
VOID NTAPI HalpFlushTLB(VOID)
Definition: misc.c:161
BOOLEAN NTAPI HalpBiosDisplayReset(VOID)
Definition: x86bios.c:455
CM_RESOURCE_TYPE Type
Definition: halp.h:179
enum _HAL_QUERY_INFORMATION_CLASS HAL_QUERY_INFORMATION_CLASS
VOID HalpInitPciBus(VOID)
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
VOID HalpInitPhase0(PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: halinit_mp.c:31
INIT_FUNCTION VOID NTAPI HalpBuildAddressMap(VOID)
Definition: halacpi.c:944
ULONG CsFlags
Definition: halp.h:23
BOOLEAN HalpProfilingStopped
Definition: profil.c:18
NTSTATUS NTAPI HalpReleasePciDeviceForDebugging(IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice)
Definition: pci.c:482
_Acquires_lock_(HalpSystemHardwareLock) VOID NTAPI HalpAcquireCmosSpinLock(VOID)
VOID NTAPI HalpCalibrateStallExecution(VOID)
Definition: pchw.c:105
KAFFINITY HalpActiveProcessors
Definition: processor.c:17
struct _HalAddressUsage * PADDRESS_USAGE
ULONG SegSs
Definition: halp.h:15
ULONG SegCs
Definition: halp.h:18
#define BufferSize
Definition: classpnp.h:436
ADDRESS_USAGE HalpDefaultIoSpace
Definition: usage.c:81
const USHORT HalpBuildType
Definition: halinit_apic.c:22
VOID NTAPI HalpAcquireCmosSpinLock(VOID)
Definition: spinlock.c:227
struct _HAL_BIOS_FRAME * PHAL_BIOS_FRAME
ULONG RollOver
Definition: halp.h:228
KSPIN_LOCK HalpSystemHardwareLock
Definition: cmos.c:18
ULONG SsLimit
Definition: halp.h:24
NTSTATUS NTAPI HaliInitPnpDriver(VOID)
Definition: halpnpdd.c:893
INIT_FUNCTION VOID NTAPI HalpInitializeCmos(VOID)
Definition: cmos.c:163
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:1081
unsigned char UCHAR
Definition: xmlstorage.h:181
struct _IDTUsageFlags IDTUsageFlags
ULONG Eip
Definition: halp.h:19
INIT_FUNCTION VOID NTAPI HalpInitBusHandlers(VOID)
Definition: halacpi.c:935
VOID __cdecl HalpApcInterrupt(VOID)
KAFFINITY HalpDefaultInterruptAffinity
Definition: processor.c:18
_Releases_lock_(HalpSystemHardwareLock) VOID NTAPI HalpReleaseCmosSpinLock(VOID)
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
Definition: kefuncs.h:790
struct _HalAddressUsage::@1512 Element[]
struct _HalAddressUsage ADDRESS_USAGE
LARGE_INTEGER HalpPerfCounter
Definition: timer.c:27
VOID NTAPI HalInitializeBios(_In_ ULONG Unknown, _In_ PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: x86bios.c:46
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
_In_ ULONG _In_ BOOLEAN _Must_inspect_result_ PVOID * VirtualAddress
Definition: ndis.h:3791
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
PHAL_SW_INTERRUPT_HANDLER __cdecl HalpDispatchInterrupt2(VOID)
Definition: pic.c:1199
#define _In_
Definition: no_sal2.h:204
NTSTATUS NTAPI HalpOpenRegistryKey(IN PHANDLE KeyHandle, IN HANDLE RootKey, IN PUNICODE_STRING KeyName, IN ACCESS_MASK DesiredAccess, IN BOOLEAN Create)
Definition: misc.c:109
_Requires_lock_held_(HalpSystemHardwareLock) UCHAR NTAPI HalpReadCmos(IN UCHAR Reg)
ULONG PIT_FREQUENCY
Definition: clock.c:17
VOID NTAPI HaliHaltSystem(VOID)
Definition: processor.c:22
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
_In_ PIO_STACK_LOCATION _Inout_ PFILE_OBJECT _Inout_ PVCB _Outptr_result_maybenull_ PDCB _In_ PDCB _In_ PDIRENT _In_ ULONG _In_ ULONG _In_ PUNICODE_STRING _In_ PACCESS_MASK DesiredAccess
Definition: create.c:4137
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
unsigned int * PULONG
Definition: retypes.h:1
VOID __cdecl HalpRealModeStart(VOID)
IDTUsageFlags HalpIDTUsageFlags[MAXIMUM_IDTVECTOR+1]
Definition: usage.c:19
NTSTATUS NTAPI HaliSetSystemInformation(IN HAL_SET_INFORMATION_CLASS InformationClass, IN ULONG BufferSize, IN OUT PVOID Buffer)
Definition: sysinfo.c:31
INIT_FUNCTION VOID NTAPI HalpGetNMICrashFlag(VOID)
Definition: usage.c:626
Definition: halp.h:29
#define BOOLEAN
Definition: pedump.c:73
#define OUT
Definition: typedefs.h:40
VOID HalpInitDma(VOID)
Definition: dma.c:121
VOID NTAPI HalpInitializePICs(IN BOOLEAN EnableInterrupts)
Definition: apic.c:445
unsigned int ULONG
Definition: retypes.h:1
PVOID NTAPI HalpMapPhysicalMemory64(IN PHYSICAL_ADDRESS PhysicalAddress, IN ULONG NumberPage)
Definition: misc.c:28
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:1714
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
VOID NTAPI HalpRegisterKdSupportFunctions(VOID)
Definition: bus.c:23
INIT_FUNCTION VOID NTAPI HalpReportSerialNumber(VOID)
Definition: misc.c:31
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_apic.c:28
ULONG ACCESS_MASK
Definition: nt_native.h:40
#define MAXIMUM_IDTVECTOR
Definition: asm.h:277
VOID(__cdecl * PHAL_SW_INTERRUPT_HANDLER)(VOID)
Definition: halp.h:32
BOOLEAN NTAPI HalpDismissIrq07Level(IN KIRQL Irql, IN ULONG Irq, OUT PKIRQL OldIrql)
Definition: pic.c:890