/drivers/staging/comedi/comedi_compat32.h

https://bitbucket.org/wisechild/galaxy-nexus · C++ Header · 44 lines · 11 code · 8 blank · 25 comment · 0 complexity · 0eb6973f662e697482c7c0b0ceea3ddd MD5 · raw file

  1. /*
  2. comedi/comedi_compat32.h
  3. 32-bit ioctl compatibility for 64-bit comedi kernel module.
  4. Author: Ian Abbott, MEV Ltd. <abbotti@mev.co.uk>
  5. Copyright (C) 2007 MEV Ltd. <http://www.mev.co.uk/>
  6. COMEDI - Linux Control and Measurement Device Interface
  7. Copyright (C) 1997-2007 David A. Schleef <ds@schleef.org>
  8. This program is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2 of the License, or
  11. (at your option) any later version.
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. #ifndef _COMEDI_COMPAT32_H
  21. #define _COMEDI_COMPAT32_H
  22. #include <linux/compat.h>
  23. #include <linux/fs.h>
  24. #ifdef CONFIG_COMPAT
  25. extern long comedi_compat_ioctl(struct file *file, unsigned int cmd,
  26. unsigned long arg);
  27. #else /* CONFIG_COMPAT */
  28. #define comedi_compat_ioctl 0 /* NULL */
  29. #endif /* CONFIG_COMPAT */
  30. #endif /* _COMEDI_COMPAT32_H */