forked from rubenslte/android_kernel_samsung_msm8226
avtimer clock is owned by Q6. avtimer clock tick is used by mpqplayer, and vcap for implementation of avsync logic. This character driver gets the Q6 out of power collapsed state and exposes ioctl control to read avtimer tick. Change-Id: Ic60dbe6a6bf2a4aed30ef89b63830575efd30083 Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
22 lines
485 B
C
22 lines
485 B
C
#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 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 flase */
|
|
|
|
#endif
|