Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef _LINUX_FD_H |
| 3 | #define _LINUX_FD_H |
| 4 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 5 | #include <uapi/linux/fd.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
Johannes Stezenbach | 390192b | 2011-07-01 22:32:26 +0200 | [diff] [blame] | 7 | #ifdef CONFIG_COMPAT |
Johannes Stezenbach | 719c0c5 | 2011-07-07 08:18:18 +0200 | [diff] [blame] | 8 | #include <linux/compat.h> |
| 9 | |
Johannes Stezenbach | 390192b | 2011-07-01 22:32:26 +0200 | [diff] [blame] | 10 | struct compat_floppy_struct { |
| 11 | compat_uint_t size; |
| 12 | compat_uint_t sect; |
| 13 | compat_uint_t head; |
| 14 | compat_uint_t track; |
| 15 | compat_uint_t stretch; |
| 16 | unsigned char gap; |
| 17 | unsigned char rate; |
| 18 | unsigned char spec1; |
| 19 | unsigned char fmt_gap; |
| 20 | const compat_caddr_t name; |
| 21 | }; |
| 22 | |
| 23 | #define FDGETPRM32 _IOR(2, 0x04, struct compat_floppy_struct) |
| 24 | #endif |
Johannes Stezenbach | 719c0c5 | 2011-07-07 08:18:18 +0200 | [diff] [blame] | 25 | #endif |