rtc - try implementing RTC / kernel: removed rt from the codebase (released separately)
This commit is contained in:
parent
6af9752e24
commit
3461dcb1ed
6 changed files with 54 additions and 154 deletions
|
@ -1,6 +1,18 @@
|
|||
#pragma once
|
||||
#ifndef __TIME_H
|
||||
#define __TIME_H
|
||||
|
||||
#include "sys/arch/x86_64/idt.h"
|
||||
#define RTC_COMMAND 0x70
|
||||
#define RTC_DATA 0x71
|
||||
#define RTC_STATUS 0x0B
|
||||
|
||||
void rtc_init();
|
||||
void rtc_handle_interrupt(registers_t *regs);
|
||||
#define RTC_SECONDS 0x00
|
||||
#define RTC_MINUTES 0x02
|
||||
#define RTC_HOURS 0x04
|
||||
#define RTC_DAY_OF_WEEK 0x06
|
||||
#define RTC_DAY 0x07
|
||||
#define RTC_MONTH 0x08
|
||||
#define RTC_YEAR 0x09
|
||||
|
||||
int rtc_init();
|
||||
|
||||
#endif // __TIME_H__
|
Loading…
Add table
Add a link
Reference in a new issue