xref: /aosp_15_r20/bionic/libc/kernel/uapi/linux/hpet.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI__HPET__
8 #define _UAPI__HPET__
9 #include <linux/compiler.h>
10 struct hpet_info {
11   unsigned long hi_ireqfreq;
12   unsigned long hi_flags;
13   unsigned short hi_hpet;
14   unsigned short hi_timer;
15 };
16 #define HPET_INFO_PERIODIC 0x0010
17 #define HPET_IE_ON _IO('h', 0x01)
18 #define HPET_IE_OFF _IO('h', 0x02)
19 #define HPET_INFO _IOR('h', 0x03, struct hpet_info)
20 #define HPET_EPI _IO('h', 0x04)
21 #define HPET_DPI _IO('h', 0x05)
22 #define HPET_IRQFREQ _IOW('h', 0x6, unsigned long)
23 #define MAX_HPET_TBS 8
24 #endif
25