[BACK]Return to clock_subr.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/clock_subr.h between version 1.4 and 1.5

version 1.4, 2000/07/26 11:07:45 version 1.5, 2000/09/01 19:04:50
Line 78  void clock_secs_to_ymdhms __P((time_t, s
Line 78  void clock_secs_to_ymdhms __P((time_t, s
  */   */
 struct todr_chip_handle {  struct todr_chip_handle {
         void    *cookie;        /* Device specific data */          void    *cookie;        /* Device specific data */
           void    *bus_cookie;    /* Bus specific data */
   
         int     (*todr_gettime)(struct todr_chip_handle *, struct timeval *);          int     (*todr_gettime)(struct todr_chip_handle *, struct timeval *);
         int     (*todr_settime)(struct todr_chip_handle *, struct timeval *);          int     (*todr_settime)(struct todr_chip_handle *, struct timeval *);
         int     (*todr_getcal)(struct todr_chip_handle *, int *);          int     (*todr_getcal)(struct todr_chip_handle *, int *);
         int     (*todr_setcal)(struct todr_chip_handle *, int);          int     (*todr_setcal)(struct todr_chip_handle *, int);
 #if notyet          int     (*todr_setwen)(struct todr_chip_handle *, int);
         int     (*todr_setwen)(struct todr_chip_handle *, int (*)(int));  
 #endif  
 };  };
 typedef struct todr_chip_handle *todr_chip_handle_t;  typedef struct todr_chip_handle *todr_chip_handle_t;
   
Line 93  typedef struct todr_chip_handle *todr_ch
Line 92  typedef struct todr_chip_handle *todr_ch
 #define todr_settime(ct, t)     ((*(ct)->todr_settime)(ct, t))  #define todr_settime(ct, t)     ((*(ct)->todr_settime)(ct, t))
 #define todr_getcal(ct, vp)     ((*(ct)->todr_gettime)(ct, vp))  #define todr_getcal(ct, vp)     ((*(ct)->todr_gettime)(ct, vp))
 #define todr_setcal(ct, v)      ((*(ct)->todr_settime)(ct, v))  #define todr_setcal(ct, v)      ((*(ct)->todr_settime)(ct, v))
   #define todr_wenable(ct, v)     if ((ct)->todr_setwen) \
                                           ((*(ct)->todr_setwen)(ct, v))

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>