![]() |
MOS Source Code
|
#include "mos/x86/devices/rtc.hpp"#include "mos/assert.hpp"#include "mos/device/clocksource.hpp"#include "mos/x86/devices/port.hpp"#include "mos/x86/x86_interrupt.hpp"#include <mos/types.hpp>Go to the source code of this file.
Macros | |
| #define | CURRENT_YEAR 2024 |
| #define | bcd_to_binary(val) |
Functions | |
| u8 | rtc_read_reg (x86_port_t reg) |
| u8 | rtc_is_update_in_progress () |
| void | rtc_read_time (timeval_t *time) |
| bool | rtc_irq_handler (u32 irq, void *data) |
| void | rtc_init () |
Variables | |
| static clocksource_t | rtc_clocksource |
| static const u8 | RTC_STATUS_REG_B = 0x0B |
| static const u8 | CMOS_PORT_ADDRESS = 0x70 |
| static const u8 | CMOS_PORT_DATA = 0x71 |
| #define CURRENT_YEAR 2024 |
Definition at line 3 of file rtc.cpp.
Referenced by rtc_read_time().
| #define bcd_to_binary | ( | val | ) |
Referenced by rtc_read_time().
| u8 rtc_read_reg | ( | x86_port_t | reg | ) |
Definition at line 24 of file rtc.cpp.
Referenced by rtc_init(), rtc_irq_handler(), rtc_is_update_in_progress(), and rtc_read_time().
| u8 rtc_is_update_in_progress | ( | ) |
Definition at line 30 of file rtc.cpp.
Referenced by rtc_read_time().
Definition at line 35 of file rtc.cpp.
Referenced by platform_get_time().
Definition at line 98 of file rtc.cpp.
Referenced by platform_startup_late().
| void rtc_init | ( | ) |
Definition at line 107 of file rtc.cpp.
Referenced by platform_startup_late().
|
static |
Definition at line 14 of file rtc.cpp.
Referenced by rtc_init(), and rtc_irq_handler().
|
static |
Definition at line 20 of file rtc.cpp.
Referenced by rtc_init().
|
static |
Definition at line 21 of file rtc.cpp.
Referenced by rtc_init(), and rtc_read_reg().
|
static |
Definition at line 22 of file rtc.cpp.
Referenced by rtc_init(), and rtc_read_reg().