Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      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  ***
     10  ***   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  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _MC146818RTC_H
     20 #define _MC146818RTC_H
     21 #include <asm/io.h>
     22 #include <linux/rtc.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #include <asm/mc146818rtc.h>
     25 #define RTC_SECONDS 0
     26 #define RTC_SECONDS_ALARM 1
     27 #define RTC_MINUTES 2
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define RTC_MINUTES_ALARM 3
     30 #define RTC_HOURS 4
     31 #define RTC_HOURS_ALARM 5
     32 #define RTC_ALARM_DONT_CARE 0xC0
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define RTC_DAY_OF_WEEK 6
     35 #define RTC_DAY_OF_MONTH 7
     36 #define RTC_MONTH 8
     37 #define RTC_YEAR 9
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define RTC_REG_A 10
     40 #define RTC_REG_B 11
     41 #define RTC_REG_C 12
     42 #define RTC_REG_D 13
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define RTC_FREQ_SELECT RTC_REG_A
     45 #define RTC_UIP 0x80
     46 #define RTC_DIV_CTL 0x70
     47 #define RTC_REF_CLCK_4MHZ 0x00
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define RTC_REF_CLCK_1MHZ 0x10
     50 #define RTC_REF_CLCK_32KHZ 0x20
     51 #define RTC_DIV_RESET1 0x60
     52 #define RTC_DIV_RESET2 0x70
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define RTC_RATE_SELECT 0x0F
     55 #define RTC_CONTROL RTC_REG_B
     56 #define RTC_SET 0x80
     57 #define RTC_PIE 0x40
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define RTC_AIE 0x20
     60 #define RTC_UIE 0x10
     61 #define RTC_SQWE 0x08
     62 #define RTC_DM_BINARY 0x04
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define RTC_24H 0x02
     65 #define RTC_DST_EN 0x01
     66 #define RTC_INTR_FLAGS RTC_REG_C
     67 #define RTC_IRQF 0x80
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define RTC_PF 0x40
     70 #define RTC_AF 0x20
     71 #define RTC_UF 0x10
     72 #define RTC_VALID RTC_REG_D
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define RTC_VRT 0x80
     75 #ifndef ARCH_RTC_LOCATION
     76 #define RTC_IO_EXTENT 0x8
     77 #define RTC_IOMAPPED 1
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #endif
     80 #endif
     81