blob: 06343214139234440eb6567584e8e9204fdc7d46 [file] [log] [blame]
Jeff Boody02e06782012-09-15 11:21:09 -06001/****************************************************************************
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 __ARCH_ARM_MACH_MSM_IDLE_STATS_DEVICE_H
20#define __ARCH_ARM_MACH_MSM_IDLE_STATS_DEVICE_H
21#include <linux/types.h>
22#include <linux/ioctl.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define MSM_IDLE_STATS_EVENT_NONE 0
25#define MSM_IDLE_STATS_EVENT_BUSY_TIMER_EXPIRED 1
26#define MSM_IDLE_STATS_EVENT_BUSY_TIMER_EXPIRED_RESET 2
27#define MSM_IDLE_STATS_EVENT_COLLECTION_NEARLY_FULL 4
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define MSM_IDLE_STATS_EVENT_COLLECTION_FULL 8
30#define MSM_IDLE_STATS_EVENT_IDLE_TIMER_EXPIRED 16
31#define MSM_IDLE_STATS_NR_MAX_INTERVALS 200
32struct msm_idle_pulse {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 __s64 busy_start_time;
35 __u32 busy_interval;
36 __u32 wait_interval;
37};
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39struct msm_idle_read_stats {
40 __u32 event;
41 __s64 return_timestamp;
42 __u32 busy_timer_remaining;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __u32 nr_collected;
45 struct msm_idle_pulse pulse_chain[MSM_IDLE_STATS_NR_MAX_INTERVALS];
46};
47struct msm_idle_write_stats {
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u32 busy_timer;
50 __u32 next_busy_timer;
51 __u32 max_samples;
52};
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define MSM_IDLE_STATS_IOC_MAGIC 0xD8
55#define MSM_IDLE_STATS_IOC_READ_STATS _IOWR(MSM_IDLE_STATS_IOC_MAGIC, 1, struct msm_idle_read_stats)
56#define MSM_IDLE_STATS_IOC_WRITE_STATS _IOWR(MSM_IDLE_STATS_IOC_MAGIC, 2, struct msm_idle_write_stats)
57#endif
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59