Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _UAPI__HPET__
0003 #define _UAPI__HPET__
0004 
0005 #include <linux/compiler.h>
0006 
0007 
0008 struct hpet_info {
0009     unsigned long hi_ireqfreq;  /* Hz */
0010     unsigned long hi_flags; /* information */
0011     unsigned short hi_hpet;
0012     unsigned short hi_timer;
0013 };
0014 
0015 #define HPET_INFO_PERIODIC  0x0010  /* periodic-capable comparator */
0016 
0017 #define HPET_IE_ON  _IO('h', 0x01)  /* interrupt on */
0018 #define HPET_IE_OFF _IO('h', 0x02)  /* interrupt off */
0019 #define HPET_INFO   _IOR('h', 0x03, struct hpet_info)
0020 #define HPET_EPI    _IO('h', 0x04)  /* enable periodic */
0021 #define HPET_DPI    _IO('h', 0x05)  /* disable periodic */
0022 #define HPET_IRQFREQ    _IOW('h', 0x6, unsigned long)   /* IRQFREQ usec */
0023 
0024 #define MAX_HPET_TBS    8       /* maximum hpet timer blocks */
0025 
0026 #endif /* _UAPI__HPET__ */