hpet.h 785 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _UAPI__HPET__
  3. #define _UAPI__HPET__
  4. #include <linux/compiler.h>
  5. struct hpet_info {
  6. unsigned long hi_ireqfreq; /* Hz */
  7. unsigned long hi_flags; /* information */
  8. unsigned short hi_hpet;
  9. unsigned short hi_timer;
  10. };
  11. #define HPET_INFO_PERIODIC 0x0010 /* periodic-capable comparator */
  12. #define HPET_IE_ON _IO('h', 0x01) /* interrupt on */
  13. #define HPET_IE_OFF _IO('h', 0x02) /* interrupt off */
  14. #define HPET_INFO _IOR('h', 0x03, struct hpet_info)
  15. #define HPET_EPI _IO('h', 0x04) /* enable periodic */
  16. #define HPET_DPI _IO('h', 0x05) /* disable periodic */
  17. #define HPET_IRQFREQ _IOW('h', 0x6, unsigned long) /* IRQFREQ usec */
  18. #define MAX_HPET_TBS 8 /* maximum hpet timer blocks */
  19. #endif /* _UAPI__HPET__ */