Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * SyncLink Multiprotocol Serial Adapter Driver |
| 3 | * |
Paul Fulghum | cb10dc9 | 2006-09-30 23:27:45 -0700 | [diff] [blame] | 4 | * $Id: synclink.h,v 3.14 2006/07/17 20:15:43 paulkf Exp $ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | * |
| 6 | * Copyright (C) 1998-2000 by Microgate Corporation |
| 7 | * |
| 8 | * Redistribution of this file is permitted under |
| 9 | * the terms of the GNU Public License (GPL) |
| 10 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | #ifndef _SYNCLINK_H_ |
| 12 | #define _SYNCLINK_H_ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 14 | #include <uapi/linux/synclink.h> |
Jaswinder Singh Rajput | 6b6bcd0 | 2009-01-30 22:20:04 +0530 | [diff] [blame] | 15 | |
Paul Fulghum | 2acdb16 | 2007-05-10 22:22:43 -0700 | [diff] [blame] | 16 | /* provide 32 bit ioctl compatibility on 64 bit systems */ |
| 17 | #ifdef CONFIG_COMPAT |
| 18 | #include <linux/compat.h> |
| 19 | struct MGSL_PARAMS32 { |
| 20 | compat_ulong_t mode; |
| 21 | unsigned char loopback; |
| 22 | unsigned short flags; |
| 23 | unsigned char encoding; |
| 24 | compat_ulong_t clock_speed; |
| 25 | unsigned char addr_filter; |
| 26 | unsigned short crc_type; |
| 27 | unsigned char preamble_length; |
| 28 | unsigned char preamble; |
| 29 | compat_ulong_t data_rate; |
| 30 | unsigned char data_bits; |
| 31 | unsigned char stop_bits; |
| 32 | unsigned char parity; |
| 33 | }; |
| 34 | #define MGSL_IOCSPARAMS32 _IOW(MGSL_MAGIC_IOC,0,struct MGSL_PARAMS32) |
| 35 | #define MGSL_IOCGPARAMS32 _IOR(MGSL_MAGIC_IOC,1,struct MGSL_PARAMS32) |
| 36 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | #endif /* _SYNCLINK_H_ */ |