[BACK]Return to kern_time.h CVS log [TXT][DIR] Up to [local] / funnyos / sys

Annotation of funnyos/sys/kern_time.h, Revision 1.1

1.1     ! init        1: /*
        !             2:  * $Id$
        !             3:  */
        !             4: #ifndef _SYS_KERN_TIME_H
        !             5: #define _SYS_KERN_TIME_H
        !             6:
        !             7: #include <sys/types.h>
        !             8:
        !             9: #define HZ             100
        !            10:
        !            11: /*
        !            12:  * rtcops is a RTC manipulation abstraction.
        !            13:  * RTC device drivers should provide this information to kern_time.
        !            14:  */
        !            15: struct rtcops {
        !            16:        void            (*ro_sethz)(uint8_t hz);        /* function to set timer hz */
        !            17:        uint32_t        (*ro_getsec)(void);                     /* get seconds past Epoch */
        !            18:        uint32_t        (*ro_getusec)(void);            /* get microseconds */
        !            19: };
        !            20:
        !            21: /*
        !            22:  * Every tick system will update time data.
        !            23:  */
        !            24: struct timedata {
        !            25:        uint32_t        td_seconds;     /* seconds past Epoch */
        !            26:        /* XXX */
        !            27: };
        !            28:
        !            29: void   sysclock_init(void);
        !            30: void   sysclock(void);
        !            31:
        !            32: #endif /* not _SYS_KERN_TIME_H */
        !            33:

CVSweb