linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: linux-fbdev-devel@lists.sourceforge.net,
	Alexander Kern <alex.kern@gmx.de>
Cc: adaplas@pol.net, "Arnaud FONTAINE" <arnaud.fontaine@free.fr>,
	"Daniël Mantione" <daniel@deadlock.et.tudelft.nl>,
	"Geert Uytterhoeven" <geert@linux-m68k.org>,
	"James Simmons" <jsimmons@infradead.org>,
	"Nicolas Souchu" <nsouch@free.fr>,
	"Ville Syrjälä" <syrjala@sci.fi>
Subject: Re: latest patch for atyfb, even more patches
Date: Sun, 17 Oct 2004 06:20:56 +0800	[thread overview]
Message-ID: <200410170620.58883.adaplas@hotpop.com> (raw)
In-Reply-To: <200410162347.59630.alex.kern@gmx.de>

On Sunday 17 October 2004 05:47, Alexander Kern wrote:
> Am Freitag, 15. Oktober 2004 21:25 schrieb Alexander Kern:
> > Am Dienstag, 12. Oktober 2004 14:42 schrieb Antonino A. Daplas:
>
> Hi,  here is more patches to go
>
> Our cursor API is a bit understandable, 80 % of drivers given up, and using
> soft_cursor (see a comment in ffb.c#61).
>
> Three drivers made an error and use cursor->enable insted of
> info->cursor.enable.
>
> [PATCH atyfb] fix hw cursor breakage
>
> [PATCH g364fb] fix hw cursor breakage
>
> [PATCH imsttfb] fix hw cursor breakage
>
> And tdfxfb is in my mind, broken as a hell.
> cut from tdfxfb_cursor function
>
> #ifdef TDFX_HARDWARE_CURSOR <-- not defined at all

Yep, tdfxfb_cursor() doesn't get compiled as it's seriously broken.

> static int tdfxfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
> {
> ......
> 	if (info->cursor.enable) {    < Hey it's right
> ......
> 	/* Turn the cursor on */
> 	cursor->enable = 1;
> 	info->cursor = *cursor;    < Outch!
> }
> #endif
>

Yep, the cursor API, IMHO is very confusing, some fields are taken from
info->cursor (ie, mask, enable, rop), the rest from the passed fb_cursor
structure. There are also a lot of short-circuits in the cursor code path.

I've cleaned all this up in my tree so all drivers will use fields in the
passed fb_cursor structure _only_. Also, drivers need not store the changed
fields in info->cursor, fbcon will do that for you.  The end result is that
drivers don't have to look at info->cursor at all.  

Driver changes should be minimal, all references to info->cursor will just
be changed to cursor.  And things like this can be removed:

if (cursor->set & FB_CUR_BLAH)
	info->cursor.blah = cursor->blah; <-- this line can be removed

I'll document all of this in skeletenfb.c.

Other changes: cleaned up the cursor code path.

I'll submit the cursor API patches (including my attempt to modify
drivers) when 2.6.9 comes out.

Tony




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

  reply	other threads:[~2004-10-16 22:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-11 22:24 latest patch for atyfb Alexander Kern
     [not found] ` <200410122042.53878.adaplas@hotpop.com>
2004-10-15 19:25   ` Alexander Kern
2004-10-16 21:47     ` latest patch for atyfb, even more patches Alexander Kern
2004-10-16 22:20       ` Antonino A. Daplas [this message]
2004-10-16  0:15 ` latest patch for atyfb Ville Syrjälä
2004-10-16 17:53   ` Alexander Kern

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=200410170620.58883.adaplas@hotpop.com \
    --to=adaplas@hotpop.com \
    --cc=adaplas@pol.net \
    --cc=alex.kern@gmx.de \
    --cc=arnaud.fontaine@free.fr \
    --cc=daniel@deadlock.et.tudelft.nl \
    --cc=geert@linux-m68k.org \
    --cc=jsimmons@infradead.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=nsouch@free.fr \
    --cc=syrjala@sci.fi \
    /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;
as well as URLs for NNTP newsgroup(s).