Files
Laxminath Kasam 172f93ee42 avtimer: msm: allow driver to register to SSR framework
Sub System Restart[SSR] framework allows driver to handle
unexpected crash in middle of operation.
Also, adding support clk_div dtsi entry to calculate
avtimer_lsw value.

Change-Id: I521e3c010dadd00a06a0fe8998a1759b2eb81b55
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2014-10-30 22:27:18 -07:00

20 lines
401 B
C

#ifndef _UAPI_AVTIMER_H
#define _UAPI_AVTIMER_H
#include <linux/ioctl.h>
#define MAJOR_NUM 100
#define IOCTL_GET_AVTIMER_TICK _IOR(MAJOR_NUM, 0, char *)
/*
* This IOCTL is used 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;
};
#endif