From 9a787d297d9798a2836bd1dafa6fcc7c62c38f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 13 Oct 2008 13:55:57 +0000 Subject: [PATCH] ADd platform hooks to read RTC. platform code should mimic the PC CMOS chip. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28035 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/arch/m68k/arch_platform.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/headers/private/kernel/arch/m68k/arch_platform.h b/headers/private/kernel/arch/m68k/arch_platform.h index 2449e0946d..7c47183ba9 100644 --- a/headers/private/kernel/arch/m68k/arch_platform.h +++ b/headers/private/kernel/arch/m68k/arch_platform.h @@ -48,6 +48,9 @@ public: virtual void DisableIOInterrupt(int irq) = 0; virtual bool AcknowledgeIOInterrupt(int irq) = 0; + // mimic the PC CMOS + virtual uint8 ReadRTCReg(uint8 reg) = 0; + virtual void WriteRTCReg(uint8 reg, uint8 val) = 0; virtual void SetHardwareRTC(uint32 seconds) = 0; virtual uint32 GetHardwareRTC() = 0;