amd64: add time system
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
bb71cfd98f
commit
36145eafbc
9 changed files with 179 additions and 2 deletions
18
amd64/drivers/rtc.h
Normal file
18
amd64/drivers/rtc.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef _RTC_H_
|
||||
#define _RTC_H_
|
||||
|
||||
#include <kernel/types.h>
|
||||
|
||||
struct rtc_regs {
|
||||
u8 sec;
|
||||
u8 min;
|
||||
u8 hour;
|
||||
u8 day;
|
||||
u8 mon;
|
||||
u8 year;
|
||||
u8 century;
|
||||
u8 reg_b;
|
||||
};
|
||||
|
||||
#endif /* _RTC_H_ */
|
||||
Loading…
Reference in a new issue