Srikanth Uyyala | 9e6f423 | 2012-10-12 16:50:12 +0530 | [diff] [blame] | 1 | #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 read the avtimer tick value. |
| 11 | * Avtimer is a 64 bit timer tick, hence the expected |
| 12 | * argument is of type uint64_t |
| 13 | */ |
| 14 | struct dev_avtimer_data { |
| 15 | uint32_t avtimer_msw_phy_addr; |
| 16 | uint32_t avtimer_lsw_phy_addr; |
| 17 | }; |
| 18 | int avcs_core_open(void); |
| 19 | int avcs_core_disable_power_collapse(int disable);/* true or flase */ |
| 20 | |
| 21 | #endif |