MOS Source Code
|
#include "mos/x86/devices/rtc.h"
#include "mos/assert.h"
#include "mos/device/clocksource.h"
#include "mos/x86/devices/port.h"
#include "mos/x86/x86_interrupt.h"
#include <mos/types.h>
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.c.
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 25 of file rtc.c.
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 31 of file rtc.c.
Referenced by rtc_read_time().
Definition at line 36 of file rtc.c.
Referenced by platform_get_time().
Definition at line 99 of file rtc.c.
Referenced by platform_startup_late().
void rtc_init | ( | ) |
Definition at line 108 of file rtc.c.
Referenced by platform_startup_late().
|
static |
Definition at line 14 of file rtc.c.
Referenced by rtc_init(), and rtc_irq_handler().
|
static |
Definition at line 21 of file rtc.c.
Referenced by rtc_init().
|
static |
Definition at line 22 of file rtc.c.
Referenced by rtc_init(), and rtc_read_reg().
|
static |
Definition at line 23 of file rtc.c.
Referenced by rtc_init(), and rtc_read_reg().