aboutsummaryrefslogtreecommitdiff
path: root/include/linux/avtimer.h
blob: c6dabba42453bffe27402a86db6ae9cbd25bc2ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef AVTIMER_H
#define AVTIMER_H

#include <linux/ioctl.h>

#define MAJOR_NUM 100

#define IOCTL_GET_AVTIMER_TICK _IOR(MAJOR_NUM, 0, char *)
/*
 * This IOCTL is used to read the avtimer tick value.
 * Avtimer is a 64 bit timer tick, hence the expected
 * argument is of type uint64_t
 */
struct dev_avtimer_data {
	uint32_t avtimer_msw_phy_addr;
	uint32_t avtimer_lsw_phy_addr;
};
int avcs_core_open(void);
int avcs_core_disable_power_collapse(int disable);/* true or false */

#endif