blob: c6dabba42453bffe27402a86db6ae9cbd25bc2ec [file] [log] [blame]
Srikanth Uyyalabbd45292013-07-17 18:28:08 +05301#ifndef AVTIMER_H
2#define AVTIMER_H
3
4#include <linux/ioctl.h>
5
6#define MAJOR_NUM 100
7
8#define IOCTL_GET_AVTIMER_TICK _IOR(MAJOR_NUM, 0, char *)
9/*
10 * This IOCTL is used to read the avtimer tick value.
11 * Avtimer is a 64 bit timer tick, hence the expected
12 * argument is of type uint64_t
13 */
14struct dev_avtimer_data {
15 uint32_t avtimer_msw_phy_addr;
16 uint32_t avtimer_lsw_phy_addr;
17};
18int avcs_core_open(void);
19int avcs_core_disable_power_collapse(int disable);/* true or false */
20
21#endif