Xenomai  3.0.8
autotune.h
1 /*
2  * This file is part of the Xenomai project.
3  *
4  * Copyright (C) 2014 Philippe Gerum <rpm@xenomai.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19  */
20 #ifndef _RTDM_UAPI_AUTOTUNE_H
21 #define _RTDM_UAPI_AUTOTUNE_H
22 
23 #include <linux/types.h>
24 
25 #define RTDM_CLASS_AUTOTUNE RTDM_CLASS_MISC
26 #define RTDM_SUBCLASS_AUTOTUNE 0
27 
28 struct autotune_setup {
29  __u32 period;
30  __u32 quiet;
31 };
32 
33 #define AUTOTUNE_RTIOC_IRQ _IOW(RTDM_CLASS_AUTOTUNE, 0, struct autotune_setup)
34 #define AUTOTUNE_RTIOC_KERN _IOW(RTDM_CLASS_AUTOTUNE, 1, struct autotune_setup)
35 #define AUTOTUNE_RTIOC_USER _IOW(RTDM_CLASS_AUTOTUNE, 2, struct autotune_setup)
36 #define AUTOTUNE_RTIOC_PULSE _IOW(RTDM_CLASS_AUTOTUNE, 3, __u64)
37 #define AUTOTUNE_RTIOC_RUN _IOR(RTDM_CLASS_AUTOTUNE, 4, __u32)
38 #define AUTOTUNE_RTIOC_RESET _IO(RTDM_CLASS_AUTOTUNE, 5)
39 
40 #endif /* !_RTDM_UAPI_AUTOTUNE_H */