Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 _UAPI_LINUX_RTC_H_ |
| 20 | #define _UAPI_LINUX_RTC_H_ |
| 21 | struct rtc_time { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 22 | int tm_sec; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 24 | int tm_min; |
| 25 | int tm_hour; |
| 26 | int tm_mday; |
| 27 | int tm_mon; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 | int tm_year; |
| 30 | int tm_wday; |
| 31 | int tm_yday; |
| 32 | int tm_isdst; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 34 | }; |
| 35 | struct rtc_wkalrm { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 36 | unsigned char enabled; |
| 37 | unsigned char pending; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | struct rtc_time time; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 40 | }; |
| 41 | struct rtc_pll_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 42 | int pll_ctrl; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 | int pll_value; |
| 45 | int pll_max; |
| 46 | int pll_min; |
| 47 | int pll_posmult; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 49 | int pll_negmult; |
| 50 | long pll_clock; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | }; |
| 52 | #define RTC_AIE_ON _IO('p', 0x01) |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | #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) |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 59 | #define RTC_PIE_OFF _IO('p', 0x06) |
| 60 | #define RTC_WIE_ON _IO('p', 0x0f) |
| 61 | #define RTC_WIE_OFF _IO('p', 0x10) |
| 62 | #define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time) |
| 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 64 | #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) |
| 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 69 | #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) |
| 72 | #define RTC_WKALM_SET _IOW('p', 0x0f, struct rtc_wkalrm) |
| 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 74 | #define RTC_WKALM_RD _IOR('p', 0x10, struct rtc_wkalrm) |
| 75 | #define RTC_PLL_GET _IOR('p', 0x11, struct rtc_pll_info) |
| 76 | #define RTC_PLL_SET _IOW('p', 0x12, struct rtc_pll_info) |
| 77 | #define RTC_VL_READ _IOR('p', 0x13, int) |
| 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 79 | #define RTC_VL_CLR _IO('p', 0x14) |
| 80 | #define RTC_IRQF 0x80 |
| 81 | #define RTC_PF 0x40 |
| 82 | #define RTC_AF 0x20 |
| 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 84 | #define RTC_UF 0x10 |
| 85 | #define RTC_MAX_FREQ 8192 |
| 86 | #endif |