1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#include <linux/ioctl.h>
#include <linux/hpet.h>
#include "utils.h"
#include "ioctls.h"
static const struct ioctl hpet_ioctls[] = {
IOCTL(HPET_IE_ON),
IOCTL(HPET_IE_OFF),
IOCTL(HPET_INFO),
IOCTL(HPET_EPI),
IOCTL(HPET_DPI),
IOCTL(HPET_IRQFREQ),
};
static const char *const hpet_devs[] = {
"hpet",
};
static const struct ioctl_group hpet_grp = {
.devtype = DEV_MISC,
.devs = hpet_devs,
.devs_cnt = ARRAY_SIZE(hpet_devs),
.sanitise = pick_random_ioctl,
.ioctls = hpet_ioctls,
.ioctls_cnt = ARRAY_SIZE(hpet_ioctls),
};
REG_IOCTL_GROUP(hpet_grp)
|