David Schleef | ed9eccb | 2008-11-04 20:29:31 -0800 | [diff] [blame] | 1 | /* |
Ian Abbott | 357535e | 2015-01-27 18:16:52 +0000 | [diff] [blame] | 2 | * comedi/comedi_compat32.h |
| 3 | * 32-bit ioctl compatibility for 64-bit comedi kernel module. |
| 4 | * |
| 5 | * Author: Ian Abbott, MEV Ltd. <abbotti@mev.co.uk> |
| 6 | * Copyright (C) 2007 MEV Ltd. <http://www.mev.co.uk/> |
| 7 | * |
| 8 | * COMEDI - Linux Control and Measurement Device Interface |
| 9 | * Copyright (C) 1997-2007 David A. Schleef <ds@schleef.org> |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by |
| 13 | * the Free Software Foundation; either version 2 of the License, or |
| 14 | * (at your option) any later version. |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | */ |
David Schleef | ed9eccb | 2008-11-04 20:29:31 -0800 | [diff] [blame] | 21 | |
| 22 | #ifndef _COMEDI_COMPAT32_H |
| 23 | #define _COMEDI_COMPAT32_H |
| 24 | |
David Schleef | ed9eccb | 2008-11-04 20:29:31 -0800 | [diff] [blame] | 25 | #ifdef CONFIG_COMPAT |
| 26 | |
Ian Abbott | 00d20c6 | 2012-06-19 10:58:16 +0100 | [diff] [blame] | 27 | struct file; |
H Hartley Sweeten | 46fc601 | 2014-07-18 14:28:16 -0700 | [diff] [blame] | 28 | long comedi_compat_ioctl(struct file *, unsigned int cmd, unsigned long arg); |
David Schleef | ed9eccb | 2008-11-04 20:29:31 -0800 | [diff] [blame] | 29 | |
| 30 | #else /* CONFIG_COMPAT */ |
| 31 | |
H Hartley Sweeten | 55232ec | 2012-06-18 16:53:17 -0700 | [diff] [blame] | 32 | #define comedi_compat_ioctl NULL |
David Schleef | ed9eccb | 2008-11-04 20:29:31 -0800 | [diff] [blame] | 33 | |
| 34 | #endif /* CONFIG_COMPAT */ |
| 35 | |
| 36 | #endif /* _COMEDI_COMPAT32_H */ |