1ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef/*
2ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    comedi/comedi_compat32.h
3ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    32-bit ioctl compatibility for 64-bit comedi kernel module.
4ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
5ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    Author: Ian Abbott, MEV Ltd. <abbotti@mev.co.uk>
6ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    Copyright (C) 2007 MEV Ltd. <http://www.mev.co.uk/>
7ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
8ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    COMEDI - Linux Control and Measurement Device Interface
9ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    Copyright (C) 1997-2007 David A. Schleef <ds@schleef.org>
10ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
11ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    This program is free software; you can redistribute it and/or modify
12ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    it under the terms of the GNU General Public License as published by
13ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    the Free Software Foundation; either version 2 of the License, or
14ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    (at your option) any later version.
15ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
16ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    This program is distributed in the hope that it will be useful,
17ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    but WITHOUT ANY WARRANTY; without even the implied warranty of
18ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef    GNU General Public License for more details.
20ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef*/
21ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
22ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef#ifndef _COMEDI_COMPAT32_H
23ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef#define _COMEDI_COMPAT32_H
24ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
25ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef#ifdef CONFIG_COMPAT
26ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
2700d20c64a19bc57816d85e3e8f72ff0b8d325d5eIan Abbottstruct file;
2846fc601e6719b8637ef6d17b0bb263c3baf6b9f3H Hartley Sweetenlong comedi_compat_ioctl(struct file *, unsigned int cmd, unsigned long arg);
29ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
30ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef#else /* CONFIG_COMPAT */
31ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
3255232eca66c540cbef9b950e71b358137651955bH Hartley Sweeten#define comedi_compat_ioctl	NULL
33ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
34ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef#endif /* CONFIG_COMPAT */
35ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef
36ed9eccbe8970f6eedc1b978c157caf1251a896d4David Schleef#endif /* _COMEDI_COMPAT32_H */
37