#include <hal.h>
#include <debug.h>
Go to the source code of this file.
|
static UCHAR | BCD_INT (_In_ UCHAR Bcd) |
|
static UCHAR NTAPI | HalpReadNvram (_In_ UCHAR Register) |
|
| _Requires_lock_held_ (HalpSystemHardwareLock) |
|
UCHAR NTAPI | HalpReadCmos (_In_ UCHAR Reg) |
|
VOID NTAPI | HalpWriteCmos (_In_ UCHAR Reg, _In_ UCHAR Value) |
|
ULONG NTAPI | HalpGetCmosData (_In_ ULONG BusNumber, _In_ ULONG SlotNumber, _Out_writes_bytes_(Length) PVOID Buffer, _In_ ULONG Length) |
|
ULONG NTAPI | HalpSetCmosData (_In_ ULONG BusNumber, _In_ ULONG SlotNumber, _In_reads_bytes_(Length) PVOID Buffer, _In_ ULONG Length) |
|
VOID NTAPI | HalpInitializeCmos (VOID) |
|
ARC_STATUS NTAPI | HalGetEnvironmentVariable (_In_ PCH Name, _In_ USHORT ValueLength, _Out_writes_z_(ValueLength) PCH Value) |
|
ARC_STATUS NTAPI | HalSetEnvironmentVariable (_In_ PCH Name, _In_ PCH Value) |
|
BOOLEAN NTAPI | HalQueryRealTimeClock (_Out_ PTIME_FIELDS Time) |
|
BOOLEAN NTAPI | HalSetRealTimeClock (_In_ PTIME_FIELDS Time) |
|
◆ NDEBUG
◆ NVRAM_SIZE
◆ NVRAM_START
◆ NVRAM_UNUSED_BIT
◆ NVRAM_UNUSED_REG
◆ _Requires_lock_held_()
Definition at line 53 of file cmos.c.
59{
63}
static ULONG_PTR MappedNvram
PPC_QUAL void __outbyte(unsigned long const Port, const unsigned char Data)
#define GDC1_IO_o_MODE_FLIPFLOP1
#define GDC1_NVRAM_PROTECT
#define GDC1_NVRAM_UNPROTECT
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
◆ BCD_INT()
Definition at line 39 of file cmos.c.
41{
42 return ((Bcd & 0xF0) >> 4) * 10 + (Bcd & 0x0F);
43}
◆ HalGetEnvironmentVariable()
Definition at line 183 of file cmos.c.
187{
189
190
193
196
198
200
202
203
204 if (Val)
206 else
208
210}
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
VOID NTAPI HalpReleaseCmosSpinLock(VOID)
VOID NTAPI HalpAcquireCmosSpinLock(VOID)
static UCHAR NTAPI HalpReadNvram(_In_ UCHAR Register)
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_ ULONG ValueLength
◆ HalpGetCmosData()
Definition at line 142 of file cmos.c.
147{
148
149 return 0;
150}
◆ HalpInitializeCmos()
Definition at line 167 of file cmos.c.
168{
170
171
174 else
177}
PVOID NTAPI HalpMapPhysicalMemory64(IN PHYSICAL_ADDRESS PhysicalAddress, IN PFN_COUNT PageCount)
#define VRAM_HI_RESO_TEXT
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS PhysicalAddress
#define BYTES_TO_PAGES(Size)
◆ HalpReadCmos()
Definition at line 123 of file cmos.c.
125{
126
127 return 0;
128}
Referenced by HalGetEnvironmentVariable(), HalpClockInterruptHandler(), HalpGetCmosData(), HalpInitializeClock(), HalpInitializeTsc(), HalQueryRealTimeClock(), HalSetEnvironmentVariable(), HalSetRealTimeClock(), HalStartProfileInterrupt(), HalStopProfileInterrupt(), and RtcSetClockRate().
◆ HalpReadNvram()
◆ HalpSetCmosData()
Definition at line 154 of file cmos.c.
159{
160
161 return 0;
162}
◆ HalpWriteCmos()
◆ HalQueryRealTimeClock()
Definition at line 255 of file cmos.c.
257{
259
261
265
266
271 Temp = HalpRtcReadByte();
272 Time->Weekday = Temp & 0x0F;
273 Time->Month = Temp >> 4;
275 Time->Milliseconds = 0;
276
277 Time->Year += (
Time->Year >= 80) ? 1900 : 2000;
278
280
282
284}
#define KeStallExecutionProcessor(MicroSeconds)
static PLARGE_INTEGER Time
#define RTC_CMD_TIME_READ
#define RTC_CMD_REGISTER_HOLD
#define RTC_CMD_REGISTER_SHIFT
◆ HalSetEnvironmentVariable()
Definition at line 214 of file cmos.c.
217{
219
220
223
226
227
229 {
231
233 }
235 {
237
239 }
240 else
241 {
242
244 }
245
247
249
251}
◆ HalSetRealTimeClock()
Definition at line 288 of file cmos.c.
290{
293
295
297
302 SysTime[4] = (
Time->Month << 4) | (
Time->Weekday & 0x0F);
304
305
306 for (
i = 0;
i < 6;
i++)
307 {
308 for (
j = 0;
j < 8;
j++)
309 HalpRtcWriteBit(SysTime[
i] >>
j);
310 }
311
314
316
318}
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
#define RTC_CMD_TIME_SET_COUNTER_HOLD
◆ MappedNvram