Added real-time clock support written by Jeff Ward (for the kernel).

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5137 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-10-24 10:21:10 +00:00
parent bdd02a033d
commit 2218f79ede
7 changed files with 390 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
/*
** Copyright 2003, Jeff Ward, [email protected]. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#ifndef _KERNEL_REAL_TIME_CLOCK_H
#define _KERNEL_REAL_TIME_CLOCK_H
#include <KernelExport.h>
int rtc_init(kernel_args *ka);
// Initialize the real-time clock.
void rtc_set_system_time(uint32 current_time);
// Set the system time. 'current_time' is the number of seconds elapsed since
// Jan. 1, 1970.
bigtime_t rtc_boot_time(void);
// Returns the time at which the system was booted in microseconds since Jan 1, 1970.
#endif /* _KERNEL_REAL_TIME_CLOCK_H */