avtimer.h 401 B

1234567891011121314151617181920
  1. #ifndef _UAPI_AVTIMER_H
  2. #define _UAPI_AVTIMER_H
  3. #include <linux/ioctl.h>
  4. #define MAJOR_NUM 100
  5. #define IOCTL_GET_AVTIMER_TICK _IOR(MAJOR_NUM, 0, char *)
  6. /*
  7. * This IOCTL is used read the avtimer tick value.
  8. * Avtimer is a 64 bit timer tick, hence the expected
  9. * argument is of type uint64_t
  10. */
  11. struct dev_avtimer_data {
  12. uint32_t avtimer_msw_phy_addr;
  13. uint32_t avtimer_lsw_phy_addr;
  14. };
  15. #endif