Bar Weiner | f82c587 | 2012-10-23 14:31:26 +0200 | [diff] [blame] | 1 | #ifndef _CI_BRIDGE_SPI_H_ |
2 | #define _CI_BRIDGE_SPI_H_ | ||||
3 | |||||
4 | #include <linux/ioctl.h> | ||||
5 | |||||
6 | #define CI_BRIDGE_IOCTL_MAGIC 'c' | ||||
7 | #define CI_BRIDGE_IOCTL_RESET _IOW(CI_BRIDGE_IOCTL_MAGIC, 0, unsigned) | ||||
8 | #define CI_BRIDGE_IOCTL_GET_INT_STATE _IOR(CI_BRIDGE_IOCTL_MAGIC, 1, unsigned) | ||||
9 | |||||
10 | #ifdef __KERNEL__ | ||||
11 | struct ci_bridge_platform_data { | ||||
12 | unsigned int reset_pin; | ||||
13 | unsigned int interrupt_pin; | ||||
14 | }; | ||||
15 | #endif /* __KERNEL__ */ | ||||
16 | |||||
17 | #endif |