linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [BK FBDEV] A few more updates.
@ 2003-03-26 10:42 Petr Vandrovec
  2003-03-26 11:20 ` Antonino Daplas
  0 siblings, 1 reply; 15+ messages in thread
From: Petr Vandrovec @ 2003-03-26 10:42 UTC (permalink / raw)
  To: Antonino Daplas
  Cc: jsimmons, Linux Fbdev development list, Linux Kernel Mailing List

On 26 Mar 03 at 17:53, Antonino Daplas wrote:
> On Wed, 2003-03-26 at 13:34, James Simmons wrote:
> > 
> > > 5.  softcursor should not concern itself with memory bookkeeping, and
> > > must be able to function with just the parameter passed to it in order
> > > to keep it as simple as possible.  These tasks are moved to
> > > accel_cursor.
> > 
> > We do if we make a ioctl for cursors. I'm trying to avoid reprogramming 
> > the hardware over and over again if the properties of the cursor don't 
> > change. The idea is similar to passing in var and comparing it to the var 
> > in struct fb_info. 
> 
> Of course, that's what the fb_cursor.set field is for, and drivers have
> the option of ignoring or not ignoring bits in this field. Whoever calls
> fb_cursor has the responsibility of setting any cursor state changes. 
> 
> Unlike fb_set_var(), cursor states change very frequently (ie, each
> blink or movement of the cursor are considered state changes), so just
> forego the memcmp() and call fb_cursor unconditionally.  Let the
> low-level method sort it out by checking bits in fb_cursor.set.

accel_cursor unconditionally sets FB_CUR_SETPOS. Can you write it
down to the TODO list to eliminate this? Cursor position lives 
in different registers than cursor enable/disable on my hardware...

And if we could rename FB_CUR_SETCUR to FB_CUR_SETVISIBILITY and
leave cursor->enable setting on accel_cursor's caller, it would
be even better.

And if we could change enable value to 0: disable; 1: enable;
2: disable due to blink (called from vbl), it would be even better,
as then fbdev which does hardware blinking could just completely
ignore changes which set only FB_CUR_SETVISIBILITY with enable == 2.
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz
                                                



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [BK FBDEV] A few more updates.
@ 2003-03-26 10:53 Petr Vandrovec
  0 siblings, 0 replies; 15+ messages in thread
From: Petr Vandrovec @ 2003-03-26 10:53 UTC (permalink / raw)
  To: adaplas; +Cc: jsimmons, Linux Fbdev development list, Linux Kernel Mailing List

On 26 Mar 03 at 11:42, Petr Vandrovec wrote:
> 
> accel_cursor unconditionally sets FB_CUR_SETPOS. Can you write it
> down to the TODO list to eliminate this? Cursor position lives 
> in different registers than cursor enable/disable on my hardware...
 
> And if we could rename FB_CUR_SETCUR to FB_CUR_SETVISIBILITY and
> leave cursor->enable setting on accel_cursor's caller, it would
> be even better.

I just noticed that softcursor.c contains copy of FB_CUR_SETCUR ->
cursor->enable code from accel_cursor(). Either 'enable' field has 
no bussiness in the fb_cursor structure (as it can be always infered from 
set flags, and if softcursor needs some internal bookkeeping, it should 
use some other variable and not fb_cursor's field), or this conversion 
should disappear from softcursor.c, and FB_CUR_SETCUR semantic should
change.
                                                Petr
                                                



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [BK FBDEV] A few more updates.
@ 2003-03-25 18:32 James Simmons
  2003-03-25 18:01 ` Russell King
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: James Simmons @ 2003-03-25 18:32 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Fbdev development list, Linux Kernel Mailing List


Linus, please do a

	bk pull http://fbdev.bkbits.net/fbdev-2.5

This will update the following files:

 drivers/video/aty/aty128fb.c  |   16 +++++++---------
 drivers/video/console/fbcon.c |    4 ++--
 drivers/video/controlfb.c     |   18 +++---------------
 drivers/video/platinumfb.c    |   28 ++++++++--------------------
 drivers/video/radeonfb.c      |   10 ++++++++++
 drivers/video/softcursor.c    |    2 +-
 6 files changed, 31 insertions(+), 47 deletions(-)

through these ChangeSets:

<jsimmons@maxwell.earthlink.net> (03/03/25 1.981)
   [FBCON] Could be called outside of a process context. This fixes that.

<jsimmons@maxwell.earthlink.net> (03/03/25 1.979)
   [RAGE 128/CONTROL/PLATNIUM FBDEV] PPC updates.

   [RADEON FBDEV] PLL fix for specific type of card.




-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-03-26 11:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-26 10:42 [BK FBDEV] A few more updates Petr Vandrovec
2003-03-26 11:20 ` Antonino Daplas
  -- strict thread matches above, loose matches on Subject: below --
2003-03-26 10:53 Petr Vandrovec
2003-03-25 18:32 James Simmons
2003-03-25 18:01 ` Russell King
2003-03-25 18:28 ` Benjamin Herrenschmidt
2003-03-25 18:35   ` Benjamin Herrenschmidt
2003-03-25 19:48     ` James Simmons
2003-03-25 20:10       ` Benjamin Herrenschmidt
2003-03-25 20:14         ` James Simmons
2003-03-25 18:44   ` James Simmons
2003-03-26  3:37 ` Antonino Daplas
2003-03-26  5:34   ` James Simmons
2003-03-26  9:53     ` Antonino Daplas
2003-03-26 10:20     ` Antonino Daplas

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).