diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-applications/gpio-test/files/gpio-test.h')
-rw-r--r-- | meta-amdfalconx86/recipes-applications/gpio-test/files/gpio-test.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-applications/gpio-test/files/gpio-test.h b/meta-amdfalconx86/recipes-applications/gpio-test/files/gpio-test.h new file mode 100644 index 00000000..af9c3b68 --- /dev/null +++ b/meta-amdfalconx86/recipes-applications/gpio-test/files/gpio-test.h @@ -0,0 +1,17 @@ +#ifndef _GPIO_TEST_H_ +#define _GPIO_TEST_H_ + + + +/* IOCTL numbers */ + +typedef struct { + int offset; + int value; +}debug_data; + +#define GPIO_TEST_IOC_MAGIC 'k' +#define GPIO_IOC_SWCTRLIN _IOW(GPIO_TEST_IOC_MAGIC, 1, debug_data) +#define GPIO_IOC_SWCTRLEN _IOW(GPIO_TEST_IOC_MAGIC, 2, debug_data) + +#endif /* _GPIO_TEST_H_ */ |