0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef _SYNCLINK_H_
0012 #define _SYNCLINK_H_
0013
0014 #include <uapi/linux/synclink.h>
0015
0016
0017 #ifdef CONFIG_COMPAT
0018 #include <linux/compat.h>
0019 struct MGSL_PARAMS32 {
0020 compat_ulong_t mode;
0021 unsigned char loopback;
0022 unsigned short flags;
0023 unsigned char encoding;
0024 compat_ulong_t clock_speed;
0025 unsigned char addr_filter;
0026 unsigned short crc_type;
0027 unsigned char preamble_length;
0028 unsigned char preamble;
0029 compat_ulong_t data_rate;
0030 unsigned char data_bits;
0031 unsigned char stop_bits;
0032 unsigned char parity;
0033 };
0034 #define MGSL_IOCSPARAMS32 _IOW(MGSL_MAGIC_IOC,0,struct MGSL_PARAMS32)
0035 #define MGSL_IOCGPARAMS32 _IOR(MGSL_MAGIC_IOC,1,struct MGSL_PARAMS32)
0036 #endif
0037 #endif