Re: [PATCH] fsl-diu-fb: remove the ioctl interface
flat view
From: Tabi Timur-B04825 <hidden>
Date: 2011-09-21 02:10:48
Also in:
linuxppc-dev
Anatolij, I'm sorry to resurrect an old thread, but ... On Wed, Jun 22, 2011 at 3:11 PM, Anatolij Gustschin [off-list ref] wrote:
On Tue, 21 Jun 2011 23:13:11 +0000 Tabi Timur-B04825 [off-list ref] wrote:quoted
Anatolij Gustschin wrote:quoted
No! We are using ioctl interface of this driver in many video rendering applications on overlay planes on huge number of boards. So, please don't remove it.Ok, I had no idea anyone was using it. Can you email me details about how you use the ioctl interface? If I can't remove it, maybe I can clean it up.Following DIU specific ioctls are used: MFB_SET_CHROMA_KEY MFB_SET_PIXFMT MFB_GET_PIXFMT MFB_SET_AOID MFB_GET_AOID MFB_GET_ALPHA MFB_SET_ALPHA
The definitions of MFB_SET_PIXFMT and MFB_GET_PIXFMT are wrong:
#define MFB_SET_PIXFMT 0x80014d08
#define MFB_GET_PIXFMT 0x40014d08
The "01" is the size. However, these ioctls take a __u32 as a parameter.
This means that I have to fix the definitions to this:
#define MFB_SET_PIXFMT _IOW('M', 8, __u32)
#define MFB_GET_PIXFMT _IOR('M', 8, __u32)
This will change the values and break binary compatibility with your
applications. Are you okay with that?
Other ioctls can be removed. I'm not sure if someone uses FBIOGET_GWINFO. If there are no objections from other people, it can also be dropped.
I'm going to remove FBIOGET_GWINFO because no one is using it, and the ioctl value is malformed (it doesn't define a direction or size). -- Timur Tabi Linux kernel developer at Freescale