# HG changeset patch # User Josef 'Jeff' Sipek # Date 1299790057 18000 # Node ID d3c54eb7510badda95ba280dc50c6a16b400903b # Parent a4d737f03f883895d1718d9b346073e513f0e5bb tod: more docs diff -r a4d737f03f88 -r d3c54eb7510b include/tod.h --- a/include/tod.h Wed Mar 09 18:39:54 2011 -0500 +++ b/include/tod.h Thu Mar 10 15:47:37 2011 -0500 @@ -2,9 +2,42 @@ #define __TOD_H /* - * The Time Of Day (TOD) hardware adds 1 to the 51st bit every microsecond - * The timer hardware subtracts 1 from the 51st bit every microsecond + * The Time Of Day (TOD) hardware adds 1 to the 51st bit every microsecond. + * The TOD value 0 is defined as 00:00:00 on Jan 1, 1900. + * + * Here are the TOD values for each of the leap seconds, as well as the + * beginning of UTC (Jan 1, 1970). + * + * Year Month Day Leap Sec. Clock Setting (Hex) + * ------------------------------------------------ + * 1900 1 1 N/A 0000 0000 0000 0000 + * 1972 1 1 N/A 8126 D60E 4600 0000 + * 1972 7 1 1 820B A981 1E24 0000 + * 1973 1 1 2 82F3 00AE E248 0000 + * 1974 1 1 3 84BD E971 146C 0000 + * 1975 1 1 4 8688 D233 4690 0000 + * 1976 1 1 5 8853 BAF5 78B4 0000 + * 1977 1 1 6 8A1F E595 20D8 0000 + * 1978 1 1 7 8BEA CE57 52FC 0000 + * 1979 1 1 8 8DB5 B719 8520 0000 + * 1980 1 1 9 8F80 9FDB B744 0000 + * 1981 7 1 10 9230 5C0F CD68 0000 + * 1982 7 1 11 93FB 44D1 FF8C 0000 + * 1983 7 1 12 95C6 2D94 31B0 0000 + * 1985 7 1 13 995D 40F5 17D4 0000 + * 1988 1 1 14 9DDA 69A5 57F8 0000 + * 1990 1 1 15 A171 7D06 3E1C 0000 + * 1991 1 1 16 A33C 65C8 7040 0000 + * 1992 7 1 17 A5EC 21FC 8664 0000 + * 1993 7 1 18 A7B7 0ABE B888 0000 + * 1994 7 1 19 A981 F380 EAAC 0000 + * 1996 1 1 20 AC34 336F ECD0 0000 + * 1997 7 1 21 AEE3 EFA4 02F4 0000 + * 1999 1 1 22 B196 2F93 0518 0000 + * 2006 1 1 23 BE25 1097 973C 0000 + * 2009 1 1 24 C387 0CB9 BB60 0000 */ + #define TOD_MICROSEC 0x0000000000001000UL #define TOD_SEC 0x0000000f4240000ULL #define TOD_MIN 0x000003938700000ULL