ReactOS
0.4.16-dev-2-g02a6913
delay.c
Go to the documentation of this file.
1
/*
2
* PROJECT: NEC PC-98 series HAL
3
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4
* PURPOSE: Delay routines
5
* COPYRIGHT: Copyright 2020 Dmitry Borisov (di.sean@protonmail.com)
6
*/
7
8
/* INCLUDES ******************************************************************/
9
10
#include <hal.h>
11
12
#define NDEBUG
13
#include <debug.h>
14
15
/* PRIVATE FUNCTIONS *********************************************************/
16
17
VOID
18
NTAPI
19
HalpCalibrateStallExecution
(
VOID
)
20
{
21
/* FIXME */
22
NOTHING
;
23
}
24
25
/* PUBLIC FUNCTIONS **********************************************************/
26
27
#ifndef _MINIHAL_
28
VOID
29
NTAPI
30
KeStallExecutionProcessor
(
31
_In_
ULONG
MicroSeconds)
32
{
33
while
(MicroSeconds--)
34
{
35
/* FIXME: Use stall factor */
36
WRITE_PORT_UCHAR
((
PUCHAR
)
CPU_IO_o_ARTIC_DELAY
, 0);
37
}
38
}
39
#endif
HalpCalibrateStallExecution
VOID NTAPI HalpCalibrateStallExecution(VOID)
Definition:
delay.c:19
NOTHING
#define NOTHING
Definition:
input_list.c:10
void
Definition:
nsiface.idl:2307
KeStallExecutionProcessor
#define KeStallExecutionProcessor(MicroSeconds)
Definition:
precomp.h:27
_In_
#define _In_
Definition:
ms_sal.h:308
WRITE_PORT_UCHAR
#define WRITE_PORT_UCHAR(p, d)
Definition:
pc98vid.h:21
CPU_IO_o_ARTIC_DELAY
#define CPU_IO_o_ARTIC_DELAY
Definition:
cpu.h:22
NTAPI
#define NTAPI
Definition:
typedefs.h:36
PUCHAR
unsigned char * PUCHAR
Definition:
typedefs.h:53
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
hal
halx86
pc98
delay.c
Generated on Thu Sep 12 2024 06:06:08 for ReactOS by
1.9.6