]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/synclink.h
autofs4: fix pending checks
[linux-2.6-omap-h63xx.git] / include / linux / synclink.h
index c8b042667af1fb70e1326bbec1c0b7b8474017f5..c844a229acc937e42b28d201168847e3ed789e45 100644 (file)
 #define _SYNCLINK_H_
 #define SYNCLINK_H_VERSION 3.6
 
-#define BOOLEAN int
-#define TRUE 1
-#define FALSE 0
-
 #define BIT0   0x0001
 #define BIT1   0x0002
 #define BIT2   0x0004
 #define MGSL_INTERFACE_RTS_EN   0x10
 #define MGSL_INTERFACE_LL       0x20
 #define MGSL_INTERFACE_RL       0x40
+#define MGSL_INTERFACE_MSB_FIRST 0x80
 
 typedef struct _MGSL_PARAMS
 {
@@ -291,4 +288,28 @@ struct gpio_desc {
 #define MGSL_IOCGGPIO          _IOR(MGSL_MAGIC_IOC,17,struct gpio_desc)
 #define MGSL_IOCWAITGPIO       _IOWR(MGSL_MAGIC_IOC,18,struct gpio_desc)
 
+#ifdef __KERNEL__
+/* provide 32 bit ioctl compatibility on 64 bit systems */
+#ifdef CONFIG_COMPAT
+#include <linux/compat.h>
+struct MGSL_PARAMS32 {
+       compat_ulong_t  mode;
+       unsigned char   loopback;
+       unsigned short  flags;
+       unsigned char   encoding;
+       compat_ulong_t  clock_speed;
+       unsigned char   addr_filter;
+       unsigned short  crc_type;
+       unsigned char   preamble_length;
+       unsigned char   preamble;
+       compat_ulong_t  data_rate;
+       unsigned char   data_bits;
+       unsigned char   stop_bits;
+       unsigned char   parity;
+};
+#define MGSL_IOCSPARAMS32 _IOW(MGSL_MAGIC_IOC,0,struct MGSL_PARAMS32)
+#define MGSL_IOCGPARAMS32 _IOR(MGSL_MAGIC_IOC,1,struct MGSL_PARAMS32)
+#endif
+#endif
+
 #endif /* _SYNCLINK_H_ */