blob: e4370600da99467679a6ad2b998e5fd2dec9bc3f [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 _LINUX_RTC_H_
20#define _LINUX_RTC_H_
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021struct rtc_time {
22 int tm_sec;
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024 int tm_min;
25 int tm_hour;
26 int tm_mday;
27 int tm_mon;
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 int tm_year;
30 int tm_wday;
31 int tm_yday;
32 int tm_isdst;
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};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080035struct rtc_wkalrm {
36 unsigned char enabled;
37 unsigned char pending;
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 struct rtc_time time;
40};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080041struct rtc_pll_info {
42 int pll_ctrl;
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 int pll_value;
45 int pll_max;
46 int pll_min;
47 int pll_posmult;
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 int pll_negmult;
50 long pll_clock;
51};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080052#define RTC_AIE_ON _IO('p', 0x01)
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_AIE_OFF _IO('p', 0x02)
55#define RTC_UIE_ON _IO('p', 0x03)
56#define RTC_UIE_OFF _IO('p', 0x04)
57#define RTC_PIE_ON _IO('p', 0x05)
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059#define RTC_PIE_OFF _IO('p', 0x06)
60#define RTC_WIE_ON _IO('p', 0x0f)
61#define RTC_WIE_OFF _IO('p', 0x10)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080062#define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time)
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064#define RTC_ALM_READ _IOR('p', 0x08, struct rtc_time)
65#define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time)
66#define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time)
67#define RTC_IRQP_READ _IOR('p', 0x0b, unsigned long)
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_IRQP_SET _IOW('p', 0x0c, unsigned long)
70#define RTC_EPOCH_READ _IOR('p', 0x0d, unsigned long)
71#define RTC_EPOCH_SET _IOW('p', 0x0e, unsigned long)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080072#define RTC_WKALM_SET _IOW('p', 0x0f, struct rtc_wkalrm)
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080074#define RTC_WKALM_RD _IOR('p', 0x10, struct rtc_wkalrm)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080075#define RTC_PLL_GET _IOR('p', 0x11, struct rtc_pll_info)
76#define RTC_PLL_SET _IOW('p', 0x12, struct rtc_pll_info)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080077#define RTC_IRQF 0x80
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#define RTC_PF 0x40
80#define RTC_AF 0x20
81#define RTC_UF 0x10
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080082#endif
Ben Cheng654325d2012-03-07 21:13:49 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */