ReactOS  0.4.15-dev-2522-g9e0a3cd
profil.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: System Profiling
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 /* GLOBALS *******************************************************************/
16 
19 
20 /* FUNCTIONS *****************************************************************/
21 
22 VOID
23 NTAPI
25  _In_ KPROFILE_SOURCE ProfileSource)
26 {
27  UNREFERENCED_PARAMETER(ProfileSource);
28 
30 
31  /* Clear the interrupt flag */
33 
35 
37 }
38 
39 VOID
40 NTAPI
42  _In_ KPROFILE_SOURCE ProfileSource)
43 {
44  UNREFERENCED_PARAMETER(ProfileSource);
45 
47 
49 
50  /* Configure the clock divisor for generating periodic interrupts */
52 
54 }
55 
57 NTAPI
60 {
61  /*
62  * FIXME:
63  * 1) What is the maximum and minimum interrupt frequency for the RTC?
64  * 2) Find the maximum possible clock divisor value.
65  */
67 
68  /* Update interval */
71 
72  /* For now... */
73  return Interval;
74 }
BOOLEAN HalpProfilingStopped
Definition: profil.c:18
ULONG_PTR NTAPI HalSetProfileInterval(IN ULONG_PTR Interval)
Definition: profil.c:44
UCHAR HalpProfileRate
Definition: profil.c:19
#define TRUE
Definition: types.h:120
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
VOID NTAPI HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
Definition: profil.c:33
#define RTC_IO_o_INT_CLOCK_DIVISOR
Definition: rtc.h:37
PPC_QUAL void __outbyte(unsigned long const Port, const unsigned char Data)
Definition: intrin_ppc.h:605
uint32_t ULONG_PTR
Definition: typedefs.h:65
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define FALSE
Definition: types.h:117
VOID NTAPI HalpReleaseCmosSpinLock(VOID)
Definition: spinlock.c:244
unsigned char BOOLEAN
enum _KPROFILE_SOURCE KPROFILE_SOURCE
DWORD Interval
Definition: netstat.c:33
#define RTC_IO_i_INTERRUPT_RESET
Definition: rtc.h:44
VOID NTAPI HalpAcquireCmosSpinLock(VOID)
Definition: spinlock.c:227
unsigned char UCHAR
Definition: xmlstorage.h:181
#define VOID
Definition: acefi.h:82
#define _In_
Definition: no_sal2.h:158
#define UNIMPLEMENTED
Definition: debug.h:115
VOID NTAPI HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
Definition: profil.c:22
PPC_QUAL unsigned char __inbyte(const unsigned long Port)
Definition: intrin_ppc.h:539