added ISO network software interrupts
[unix-history] / usr / src / sys / i386 / isa / rtc.h
CommitLineData
8dfab1b8
WN
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * %sccs.include.redist.c%
9 *
187497c9 10 * @(#)rtc.h 7.1 (Berkeley) %G%
8dfab1b8
WN
11 */
12
a1810a6d 13/*
a1810a6d
BJ
14 * RTC Register locations
15 */
16
17#define RTC_SEC 0x00 /* seconds */
18#define RTC_SECALRM 0x01 /* seconds alarm */
19#define RTC_MIN 0x02 /* minutes */
20#define RTC_MINALRM 0x03 /* minutes alarm */
21#define RTC_HRS 0x04 /* hours */
22#define RTC_HRSALRM 0x05 /* hours alarm */
23#define RTC_WDAY 0x06 /* week day */
24#define RTC_DAY 0x07 /* day of month */
25#define RTC_MONTH 0x08 /* month of year */
26#define RTC_YEAR 0x09 /* month of year */
27#define RTC_STATUSA 0x0a /* status register A */
8dfab1b8
WN
28#define RTCSA_TUP 0x80 /* time update, don't look now */
29
30#define RTC_STATUSB 0x0b /* status register B */
31
32#define RTC_INTR 0x0c /* status register C (R) interrupt source */
33#define RTCIR_UPDATE 0x10 /* update intr */
34#define RTCIR_ALARM 0x20 /* alarm intr */
35#define RTCIR_PERIOD 0x40 /* periodic intr */
36#define RTCIR_INT 0x80 /* interrupt output signal */
37
38#define RTC_STATUSD 0x0d /* status register D (R) Lost Power */
39#define RTCSD_PWR 0x80 /* clock lost power */
40
41#define RTC_DIAG 0x0e /* status register E - bios diagnostic */
187497c9 42#define RTCDG_BITS "\020\010clock_battery\007ROM_cksum\006config_unit\005memory_size\004fixed_disk\003invalid_time"
8dfab1b8
WN
43
44#define RTC_RESET 0x0f /* status register F - reset code byte */
45#define RTCRS_RST 0x00 /* normal reset */
46#define RTCRS_LOAD 0x04 /* load system */
a1810a6d
BJ
47
48#define RTC_BASELO 0x15 /* low byte of basemem size */
49#define RTC_BASEHI 0x16 /* high byte of basemem size */
50#define RTC_EXTLO 0x17 /* low byte of extended mem size */
51#define RTC_EXTHI 0x18 /* low byte of extended mem size */
8dfab1b8
WN
52
53#define RTC_CENTURY 0x32 /* current century - please increment in Dec99*/