Commit 7c069681 authored by Andrew Morton's avatar Andrew Morton Committed by Anton Blanchard

[PATCH] common 32-bit ioctl code

From: Pavel Machek <pavel@suse.cz>

Various 64-bit architectures are duplicating a ton of 32-bit compat code.

Pavel's patch creates a generic 32-bit ioctl file in fs/compat_ioctl.c which
architectures will #include from within their arch/ layer.

Has been reviewed by everyone and tested on sparc64, x86_64, ppc64 and ia32.
parent 9739e633
This diff is collapsed.
/* List here explicitly which ioctl's are known to have /* List here explicitly which ioctl's are known to have
* compatible types passed or none at all... * compatible types passed or none at all... Please include
* only stuff that is compatible on *all architectures*.
*/ */
/* Big T */ /* Big T */
COMPATIBLE_IOCTL(TCGETA) COMPATIBLE_IOCTL(TCGETA)
...@@ -354,6 +355,15 @@ COMPATIBLE_IOCTL(CDROM_CHANGER_NSLOTS) ...@@ -354,6 +355,15 @@ COMPATIBLE_IOCTL(CDROM_CHANGER_NSLOTS)
COMPATIBLE_IOCTL(CDROM_LOCKDOOR) COMPATIBLE_IOCTL(CDROM_LOCKDOOR)
COMPATIBLE_IOCTL(CDROM_DEBUG) COMPATIBLE_IOCTL(CDROM_DEBUG)
COMPATIBLE_IOCTL(CDROM_GET_CAPABILITY) COMPATIBLE_IOCTL(CDROM_GET_CAPABILITY)
/* Ignore cdrom.h about these next 5 ioctls, they absolutely do
* not take a struct cdrom_read, instead they take a struct cdrom_msf
* which is compatible.
*/
COMPATIBLE_IOCTL(CDROMREADMODE2)
COMPATIBLE_IOCTL(CDROMREADMODE1)
COMPATIBLE_IOCTL(CDROMREADRAW)
COMPATIBLE_IOCTL(CDROMREADCOOKED)
COMPATIBLE_IOCTL(CDROMREADALL)
/* DVD ioctls */ /* DVD ioctls */
COMPATIBLE_IOCTL(DVD_READ_STRUCT) COMPATIBLE_IOCTL(DVD_READ_STRUCT)
COMPATIBLE_IOCTL(DVD_WRITE_STRUCT) COMPATIBLE_IOCTL(DVD_WRITE_STRUCT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment