Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI__HPET__ |
| 8 | #define _UAPI__HPET__ |
| 9 | #include <linux/compiler.h> |
| 10 | struct hpet_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 11 | unsigned long hi_ireqfreq; |
| 12 | unsigned long hi_flags; |
| 13 | unsigned short hi_hpet; |
| 14 | unsigned short hi_timer; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | }; |
| 16 | #define HPET_INFO_PERIODIC 0x0010 |
| 17 | #define HPET_IE_ON _IO('h', 0x01) |
| 18 | #define HPET_IE_OFF _IO('h', 0x02) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define MAX_HPET_TBS 8 |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 24 | #endif |