ArvernOS
Loading...
Searching...
No Matches
cmos.h File Reference
#include <stdint.h>
Include dependency graph for cmos.h:

Data Structures

struct  cmos_rtc_t
 

Functions

void cmos_init ()
 
cmos_rtc_t cmos_read_rtc ()
 
uint64_t cmos_boot_time ()
 
uint64_t cmos_current_time ()
 

Function Documentation

◆ cmos_boot_time()

uint64_t cmos_boot_time ( )

Returns the boot time in seconds since January 1, 1970 (unix time).

Returns
the boot (unix) time

◆ cmos_current_time()

uint64_t cmos_current_time ( )

Returns the current time in seconds.

Returns
the current time in seconds

◆ cmos_init()

void cmos_init ( )

Initializes the CMOS Real Time Clock.

◆ cmos_read_rtc()

cmos_rtc_t cmos_read_rtc ( )

Reads and returns the RTC data from the CMOS.

Returns
RTC data