Squash commits for public release
This commit is contained in:
21
kernel/include/drivers/clock/arm/pl031.h
Normal file
21
kernel/include/drivers/clock/arm/pl031.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef _KERNEL_DRIVERS_CLOCK_ARM_PL031_H
|
||||
#define _KERNEL_DRIVERS_CLOCK_ARM_PL031_H
|
||||
|
||||
#include <drivers/driver_manager.h>
|
||||
#include <libkern/mask.h>
|
||||
#include <libkern/types.h>
|
||||
#include <platform/arm32/interrupts.h>
|
||||
#include <platform/arm32/target/cortex-a15/device_settings.h>
|
||||
|
||||
struct pl031_registers {
|
||||
uint32_t data;
|
||||
uint32_t match;
|
||||
uint32_t load;
|
||||
uint32_t control;
|
||||
// TO BE CONTINUED
|
||||
};
|
||||
typedef struct pl031_registers pl031_registers_t;
|
||||
|
||||
uint32_t pl031_read_rtc();
|
||||
|
||||
#endif // _KERNEL_DRIVERS_CLOCK_ARM_PL031_H
|
||||
8
kernel/include/drivers/clock/x86/rtc.h
Normal file
8
kernel/include/drivers/clock/x86/rtc.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef _KERNEL_DRIVERS_CLOCK_X86_RTC_H
|
||||
#define _KERNEL_DRIVERS_CLOCK_X86_RTC_H
|
||||
|
||||
#include <libkern/types.h>
|
||||
|
||||
uint32_t rtc_load_time();
|
||||
|
||||
#endif /* _KERNEL_DRIVERS_CLOCK_X86_RTC_H */
|
||||
Reference in New Issue
Block a user