Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * SyncLink Multiprotocol Serial Adapter Driver
0003  *
0004  * $Id: synclink.h,v 3.14 2006/07/17 20:15:43 paulkf Exp $
0005  *
0006  * Copyright (C) 1998-2000 by Microgate Corporation
0007  *
0008  * Redistribution of this file is permitted under
0009  * the terms of the GNU Public License (GPL)
0010  */
0011 #ifndef _SYNCLINK_H_
0012 #define _SYNCLINK_H_
0013 
0014 #include <uapi/linux/synclink.h>
0015 
0016 /* provide 32 bit ioctl compatibility on 64 bit systems */
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 /* _SYNCLINK_H_ */