File: hpet.c

package info (click to toggle)
trinity 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,252 kB
  • ctags: 2,738
  • sloc: ansic: 24,011; sh: 322; makefile: 141
file content (29 lines) | stat: -rw-r--r-- 559 bytes parent folder | download | duplicates (6)
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)