1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 21da177e4SLinus Torvalds #ifndef _LINUX_FD_H 31da177e4SLinus Torvalds #define _LINUX_FD_H 41da177e4SLinus Torvalds 5607ca46eSDavid Howells #include <uapi/linux/fd.h> 6719c0c59SJohannes Stezenbach 7390192b3SJohannes Stezenbach #ifdef CONFIG_COMPAT 8719c0c59SJohannes Stezenbach #include <linux/compat.h> 9719c0c59SJohannes Stezenbach 10390192b3SJohannes Stezenbach struct compat_floppy_struct { 11390192b3SJohannes Stezenbach compat_uint_t size; 12390192b3SJohannes Stezenbach compat_uint_t sect; 13390192b3SJohannes Stezenbach compat_uint_t head; 14390192b3SJohannes Stezenbach compat_uint_t track; 15390192b3SJohannes Stezenbach compat_uint_t stretch; 16390192b3SJohannes Stezenbach unsigned char gap; 17390192b3SJohannes Stezenbach unsigned char rate; 18390192b3SJohannes Stezenbach unsigned char spec1; 19390192b3SJohannes Stezenbach unsigned char fmt_gap; 20390192b3SJohannes Stezenbach const compat_caddr_t name; 21390192b3SJohannes Stezenbach }; 22390192b3SJohannes Stezenbach 23390192b3SJohannes Stezenbach #define FDGETPRM32 _IOR(2, 0x04, struct compat_floppy_struct) 24390192b3SJohannes Stezenbach #endif 25719c0c59SJohannes Stezenbach #endif 26