]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/clock.h
xnu-517.12.7.tar.gz
[apple/xnu.git] / osfmk / kern / clock.h
index 26cefa13cad8de964fc36f82d1a95c3b9e41b527..d6d610c604694bdbc31f9b4629ba8f88d6426957 100644 (file)
@@ -129,11 +129,14 @@ typedef struct clock              clock_data_t;
  * 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.
  */
@@ -169,23 +172,46 @@ extern void                       mk_timebase_info(
                                                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