aboutsummaryrefslogtreecommitdiff
path: root/include/linux/ci-bridge-spi.h
blob: 1e531dbd1164844605cacdfb49bc4ba74cc98e67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _CI_BRIDGE_SPI_H_
#define _CI_BRIDGE_SPI_H_

#include <linux/ioctl.h>

#define CI_BRIDGE_IOCTL_MAGIC 'c'
#define CI_BRIDGE_IOCTL_RESET         _IOW(CI_BRIDGE_IOCTL_MAGIC, 0, unsigned)
#define CI_BRIDGE_IOCTL_GET_INT_STATE _IOR(CI_BRIDGE_IOCTL_MAGIC, 1, unsigned)

#ifdef __KERNEL__
struct ci_bridge_platform_data {
	unsigned int reset_pin;
	unsigned int interrupt_pin;
};
#endif /* __KERNEL__ */

#endif