diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/nthals/haleagle/ppc/mk48tdc.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/ntos/nthals/haleagle/ppc/mk48tdc.h')
-rw-r--r-- | private/ntos/nthals/haleagle/ppc/mk48tdc.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/private/ntos/nthals/haleagle/ppc/mk48tdc.h b/private/ntos/nthals/haleagle/ppc/mk48tdc.h new file mode 100644 index 000000000..c98179731 --- /dev/null +++ b/private/ntos/nthals/haleagle/ppc/mk48tdc.h @@ -0,0 +1,68 @@ +/*++ +Copyright (c) 1991 Microsoft Corporation + +Module Name: + + mk48tdc.h + +Abstract: + + This module is the header file that describes hardware structure + for the realtime clock on the Comet (PowerPC 603/604) platform. + + This module was taken from the jazzrtc.h file and renamed. + +Original Author: + + David N. Cutler (davec) 3-May-1991 + +Revision History: + +Who When What +--- -------- ----------------------------------------------- +dgh 07/13/94 Redefined the TODC registers for the MK48T18 chip. +dgh 07/22/94 Update file name in header comment. +dgh 08/03/94 Redefined virtual address of RTC and NVRAM. +dgh 08/08/94 Don't use virtual addresses for RTC and NVRAM, use + offsets instead. Actual virtual address will be in + the HalpNvramBaseAddr variable. +kjr 10/18/94 Changes to support Revision B Comet motherboard. + Remove HalpNvramBaseAddr and use new NVRAM address + and data port. + +--*/ + +#ifndef _MK48TDC +#define _MK48TDC + + +typedef struct _NVRAM_CONTROL { + UCHAR Reserved0[0x74]; + UCHAR NvramIndexLo; // Offset 0x74 + UCHAR NvramIndexHi; // Offset 0x75 + UCHAR Reserved2[1]; + UCHAR NvramData; // Offset 0x77 +} NVRAM_CONTROL, *PNVRAM_CONTROL; + +// +// Define Realtime Clock register numbers +// for the MK48T18 TODC Chip. +// +#define TODC_CONTROL 0 // TODC Control Register +#define TODC_SECOND 1 // second of minute [0..59] +#define TODC_MINUTE 2 // minute of hour [0..59] +#define TODC_HOUR 3 // hour of day [0..23] +#define TODC_DAY_OF_WEEK 4 // day of week [1..7] +#define TODC_DAY_OF_MONTH 5 // day of month [1..31] +#define TODC_MONTH 6 // month of year [1..12] +#define TODC_YEAR 7 // year [00..99] + + +// +// Comet NVRAM/RTC Mapping +// +#define TODC_OFFSET 0x9ff8 // offset of RTC +#define NVR_OFFSET 0x8000 // offset of NVRAM + + +#endif // MK48TDC |