2005-04-16 22:20:36 +00:00
|
|
|
/*
|
|
|
|
* SyncLink Multiprotocol Serial Adapter Driver
|
|
|
|
*
|
2006-10-01 06:27:45 +00:00
|
|
|
* $Id: synclink.h,v 3.14 2006/07/17 20:15:43 paulkf Exp $
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 1998-2000 by Microgate Corporation
|
|
|
|
*
|
|
|
|
* Redistribution of this file is permitted under
|
|
|
|
* the terms of the GNU Public License (GPL)
|
|
|
|
*/
|
|
|
|
#ifndef _SYNCLINK_H_
|
|
|
|
#define _SYNCLINK_H_
|
|
|
|
|
2012-10-13 09:46:48 +00:00
|
|
|
#include <uapi/linux/synclink.h>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-05-11 05:22:43 +00:00
|
|
|
/* 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
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif /* _SYNCLINK_H_ */
|