* Configure the clock system.
*/
extern void clock_config(void);
+
/*
* Initialize the clock system.
*/
extern void clock_init(void);
+extern void clock_timebase_init(void);
+
/*
* Initialize the clock ipc service facility.
*/
uint32_t *proc_to_abs_numer,
uint32_t *proc_to_abs_denom);
-extern void clock_adjust_calendar(
- clock_res_t nsec);
+extern uint32_t clock_set_calendar_adjtime(
+ int32_t *secs,
+ int32_t *microsecs);
-extern mach_timespec_t
- clock_get_calendar_offset(void);
+extern uint32_t clock_adjust_calendar(void);
#endif /* MACH_KERNEL_PRIVATE */
-extern void clock_set_calendar_value(
- mach_timespec_t value);
+extern void clock_get_calendar_microtime(
+ uint32_t *secs,
+ uint32_t *microsecs);
+
+extern void clock_get_calendar_nanotime(
+ uint32_t *secs,
+ uint32_t *nanosecs);
+
+extern void clock_set_calendar_microtime(
+ uint32_t secs,
+ uint32_t microsecs);
-extern int64_t clock_set_calendar_adjtime(
- int64_t total,
- uint32_t delta);
+extern void clock_get_system_microtime(
+ uint32_t *secs,
+ uint32_t *microsecs);
+
+extern void clock_get_system_nanotime(
+ uint32_t *secs,
+ uint32_t *nanosecs);
+
+extern void clock_adjtime(
+ int32_t *secs,
+ int32_t *microsecs);
extern void clock_initialize_calendar(void);
+extern void clock_wakeup_calendar(void);
+
+extern void clock_gettimeofday(
+ uint32_t *secs,
+ uint32_t *microsecs);
+
#endif /* __APPLE_API_PRIVATE */
#ifdef __APPLE_API_UNSTABLE