public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Winischhofer <thomas@winischhofer.net>
To: Arjan van de Ven <arjanv@redhat.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: ioctl number 0xF3
Date: Sat, 22 May 2004 15:29:19 +0200	[thread overview]
Message-ID: <40AF55AF.2020506@winischhofer.net> (raw)
In-Reply-To: <20040522125108.GB4589@devserv.devel.redhat.com>

Arjan van de Ven wrote:
> On Sat, May 22, 2004 at 02:39:47PM +0200, Thomas Winischhofer wrote:
> 
>>I intend using them for controlling SiS hardware specific settings like 
>>switching output devices, checking modes against output devices, 
>>repositioning TV output, scaling TV output, changing gamma correction, 
>>tuning video parameters, and the like.
> 
> 
> That doesn't in principle sound SiS specific. Sure the implementation will
> be but the interface?

Don't get me wrong.. did you ever write a driver for graphics hardware? 
Different graphics cards have widely different features and 
restrictions, for example what output devices are supported and which 
output devices can be "mapped" to what CRT controller, what modes are 
supported on what output device if it's mapped to what CRT controller, 
whether the CRTCs really are independant or of they need "cooperation" 
in specific modes (because one of the CRTCs is crippled like in my case) 
etc etc etc.

Not that this would be much of an excuse, but not even the Windows folks 
have a unique interface for vendor specific things, like setting up dual 
head, video mirroring, etc. IMHO a generic interface will 1) force 
restrictions to supported features, 2) be bloated with stuff that will 
require a ton of checks and thereby lead to a requirement of smart 
userland applications that from the beginning will need to know about 
the specific hardware and its features - again.

What we are talking here are no essential things. What I want is simply 
a few ioctls for mostly (but, granted, not exclusively) very hardware 
specific things (at least as regards the possible arguments to the 
various ioctls).

>>And rest assured, they will be 32/64 bit safe. Not sure what you mean by 
>>"ioctl interface" here but have a look at the Matrox framebuffer driver 
>>which uses some 'n' ioctls for similar stuff (which in that way do not 
>>apply to the SiS hardware which is why I can't reuse them).
> 
> 
> Ok this is exactly the point I was trying to make. Would it be possible to
> have the "new" ioctl interface be such that they CAN be used by both matrox
> and Sis ?

The framebuffer drivers are - I am trying to say this nicely - a chaos 
as regards custom implementations for ioctls and extensions to the 
standard fb ioctls. I do not intend to wait until all the 
maintainers/authors agree on a unique interface which they haven't been 
able to in years.

These ioctls I intend to implement (and partly already have implemented) 
are nothing userland will need to know much about. They are going to be 
used by stuff like DirectFB (which needs a driver for specific hardware 
anyway), my config tool and the X driver (in order to restore the 
hardware state properly, including changes done during the X server 
session while switching back to another VT).

Is 64 out of, what's that, 65536 too much to ask? Well, I could live 
with 32 as well...

Thomas

-- 
Thomas Winischhofer
Vienna/Austria
thomas AT winischhofer DOT net          http://www.winischhofer.net/
twini AT xfree86 DOT org

  reply	other threads:[~2004-05-22 13:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-22 12:08 ioctl number 0xF3 Thomas Winischhofer
2004-05-22 12:20 ` Arjan van de Ven
2004-05-22 12:39   ` Thomas Winischhofer
2004-05-22 12:51     ` Arjan van de Ven
2004-05-22 13:29       ` Thomas Winischhofer [this message]
2004-05-22 14:32         ` Francois Romieu
2004-05-22 15:37           ` Thomas Winischhofer
2004-05-23  1:35             ` Petr Vandrovec
2004-05-23 23:39             ` Francois Romieu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40AF55AF.2020506@winischhofer.net \
    --to=thomas@winischhofer.net \
    --cc=arjanv@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox