synclink.h 989 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * SyncLink Multiprotocol Serial Adapter Driver
  3. *
  4. * $Id: synclink.h,v 3.14 2006/07/17 20:15:43 paulkf Exp $
  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. */
  11. #ifndef _SYNCLINK_H_
  12. #define _SYNCLINK_H_
  13. #include <uapi/linux/synclink.h>
  14. /* provide 32 bit ioctl compatibility on 64 bit systems */
  15. #ifdef CONFIG_COMPAT
  16. #include <linux/compat.h>
  17. struct MGSL_PARAMS32 {
  18. compat_ulong_t mode;
  19. unsigned char loopback;
  20. unsigned short flags;
  21. unsigned char encoding;
  22. compat_ulong_t clock_speed;
  23. unsigned char addr_filter;
  24. unsigned short crc_type;
  25. unsigned char preamble_length;
  26. unsigned char preamble;
  27. compat_ulong_t data_rate;
  28. unsigned char data_bits;
  29. unsigned char stop_bits;
  30. unsigned char parity;
  31. };
  32. #define MGSL_IOCSPARAMS32 _IOW(MGSL_MAGIC_IOC,0,struct MGSL_PARAMS32)
  33. #define MGSL_IOCGPARAMS32 _IOR(MGSL_MAGIC_IOC,1,struct MGSL_PARAMS32)
  34. #endif
  35. #endif /* _SYNCLINK_H_ */