blob: a4a16649c59bc7c12ee12e1bb127b99f4097c47e [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _MC146818RTC_H
20#define _MC146818RTC_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <asm/io.h>
Elliott Hughesc95eb572013-01-29 18:15:55 -080022#include <linux/rtc.h>
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080024#include <asm/mc146818rtc.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080025#define RTC_SECONDS 0
26#define RTC_SECONDS_ALARM 1
27#define RTC_MINUTES 2
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029#define RTC_MINUTES_ALARM 3
30#define RTC_HOURS 4
31#define RTC_HOURS_ALARM 5
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032#define RTC_ALARM_DONT_CARE 0xC0
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034#define RTC_DAY_OF_WEEK 6
35#define RTC_DAY_OF_MONTH 7
36#define RTC_MONTH 8
37#define RTC_YEAR 9
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039#define RTC_REG_A 10
40#define RTC_REG_B 11
41#define RTC_REG_C 12
42#define RTC_REG_D 13
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#define RTC_FREQ_SELECT RTC_REG_A
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080045#define RTC_UIP 0x80
46#define RTC_DIV_CTL 0x70
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080047#define RTC_REF_CLCK_4MHZ 0x00
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049#define RTC_REF_CLCK_1MHZ 0x10
50#define RTC_REF_CLCK_32KHZ 0x20
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080051#define RTC_DIV_RESET1 0x60
52#define RTC_DIV_RESET2 0x70
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054#define RTC_RATE_SELECT 0x0F
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080055#define RTC_CONTROL RTC_REG_B
Elliott Hughesc95eb572013-01-29 18:15:55 -080056#define RTC_SET 0x80
57#define RTC_PIE 0x40
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080059#define RTC_AIE 0x20
60#define RTC_UIE 0x10
61#define RTC_SQWE 0x08
62#define RTC_DM_BINARY 0x04
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080064#define RTC_24H 0x02
65#define RTC_DST_EN 0x01
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080066#define RTC_INTR_FLAGS RTC_REG_C
Elliott Hughesc95eb572013-01-29 18:15:55 -080067#define RTC_IRQF 0x80
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080069#define RTC_PF 0x40
70#define RTC_AF 0x20
71#define RTC_UF 0x10
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080072#define RTC_VALID RTC_REG_D
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080074#define RTC_VRT 0x80
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080075#ifndef ARCH_RTC_LOCATION
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080076#define RTC_IO_EXTENT 0x8
Elliott Hughesc95eb572013-01-29 18:15:55 -080077#define RTC_IOMAPPED 1
Ben Cheng654325d2012-03-07 21:13:49 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080079#endif
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080080#endif