* Implementing new fb driver
@ 2008-07-31 0:57 Alessio Sangalli
0 siblings, 0 replies; 8+ messages in thread
From: Alessio Sangalli @ 2008-07-31 0:57 UTC (permalink / raw)
To: linux-fbdev-devel
Hi there, I will be implementing a framebuffer driver for an internally
developed video adapter.
This adapter is able to change resolution and bit depth, has hardware
mouse support and bitblt acceleration. It will be for the ARM9
architecture (AHB bus).
The question is: is there an API to implement to give access to these
features? Which driver you think can be considered similar to take
inspiration from?
Sorry for the stupid questions but I'd like to design a good interface
before beginning to hack... :)
bye
Alessio
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Implementing new fb driver
@ 2008-07-31 8:11 krzysztof.h1
2008-09-16 22:58 ` Alessio Sangalli
0 siblings, 1 reply; 8+ messages in thread
From: krzysztof.h1 @ 2008-07-31 8:11 UTC (permalink / raw)
To: Alessio Sangalli, linux-fbdev-devel
> Hi there, I will be implementing a framebuffer driver for an internally
> developed video adapter.
>
> This adapter is able to change resolution and bit depth, has hardware
> mouse support and bitblt acceleration. It will be for the ARM9
> architecture (AHB bus).
>
> The question is: is there an API to implement to give access to these
> features? Which driver you think can be considered similar to take
> inspiration from?
>
> Sorry for the stupid questions but I\'d like to design a good interface
> before beginning to hack... :)
>
There is a driver template called skeletonfb.c. It has extensive comments. Please use it as your template and report any problem (it should be up to date with API but something maybe missing).
A good example of working ARM fb driver is s3c2410fb driver.
Regards,
Krzysztof
----------------------------------------------------------------------
Najciekawsze miejsca w Polsce i na swiecie!
Zobacz >>> http://link.interia.pl/f1e60
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Implementing new fb driver
2008-07-31 8:11 krzysztof.h1
@ 2008-09-16 22:58 ` Alessio Sangalli
0 siblings, 0 replies; 8+ messages in thread
From: Alessio Sangalli @ 2008-09-16 22:58 UTC (permalink / raw)
To: krzysztof.h1; +Cc: linux-fbdev-devel
krzysztof.h1@poczta.fm wrote:
>> Hi there, I will be implementing a framebuffer driver for an
>> internally developed video adapter.
> There is a driver template called skeletonfb.c. It has extensive
> comments. Please use it as your template and report any problem (it
> should be up to date with API but something maybe missing).
>
> A good example of working ARM fb driver is s3c2410fb driver.
I have a question; this hardware supports (only) true color cursors. Is
the fb API unable to deal with this? I have read only 1-bit cursor
images are supported.
This said, I ma confused by the hw cursors calls, and I am not sure how
to proceed. Basically my hardware can store a number of cursor images,
enable or disable the cursor, and move the cursor at a specified
position. How do I implement that?
Thank you!
Alessio
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Implementing new fb driver
@ 2008-09-17 13:34 krzysztof.h1
2008-09-17 17:14 ` Alessio Sangalli
0 siblings, 1 reply; 8+ messages in thread
From: krzysztof.h1 @ 2008-09-17 13:34 UTC (permalink / raw)
To: Alessio Sangalli, krzysztof.h1@poczta.fm
Cc: linux-fbdev-devel@lists.sourceforge.net
> krzysztof.h1@poczta.fm wrote:
>
>
> I have a question; this hardware supports (only) true color cursors. Is
> the fb API unable to deal with this? I have read only 1-bit cursor
> images are supported.
>
No. Look at the include/linux/fb.h
#define FB_CUR_SETIMAGE 0x01
#define FB_CUR_SETPOS 0x02
#define FB_CUR_SETHOT 0x04
#define FB_CUR_SETCMAP 0x08
#define FB_CUR_SETSHAPE 0x10
#define FB_CUR_SETSIZE 0x20
#define FB_CUR_SETALL 0xFF
struct fbcurpos {
__u16 x, y;
};
struct fb_cursor {
__u16 set; /* what to set */
__u16 enable; /* cursor on/off */
__u16 rop; /* bitop operation */
const char *mask; /* cursor mask bits */
struct fbcurpos hot; /* cursor hot spot */
struct fb_image image; /* Cursor image */
};
You can set colormap for the cursor.
> This said, I ma confused by the hw cursors calls, and I am not sure how
> to proceed. Basically my hardware can store a number of cursor images,
> enable or disable the cursor, and move the cursor at a specified
> position. How do I implement that?
>
There is only one function to handle cursor (fb_cursor) which set appropriate properties based on set flags (the constants above).
One file I fixed cursor handling is the tdfxfb driver (look there).
Best regards,
Krzysztof
----------------------------------------------------------------------
Jak zrobic swoja wlasna tapete na telefon?
Sprawdz >> http://link.interia.pl/f1f14
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Implementing new fb driver
2008-09-17 13:34 krzysztof.h1
@ 2008-09-17 17:14 ` Alessio Sangalli
2008-09-19 0:15 ` Alessio Sangalli
0 siblings, 1 reply; 8+ messages in thread
From: Alessio Sangalli @ 2008-09-17 17:14 UTC (permalink / raw)
To: krzysztof.h1; +Cc: linux-fbdev-devel@lists.sourceforge.net
krzysztof.h1@poczta.fm wrote:
>> the fb API unable to deal with this? I have read only 1-bit cursor
>> images are supported.
>>
>
> No. Look at the include/linux/fb.h
[...]
> You can set colormap for the cursor.
Umh... I really have to go and get more details, this part of the driver
is the one I do not really understand well. You mean colormap as in
'palette'? or as in 'bitmap'; this hardware will only support truecolor.
> There is only one function to handle cursor (fb_cursor) which set appropriate properties based on set flags (the constants above).
> One file I fixed cursor handling is the tdfxfb driver (look there).
I will thank you.
Bye
as
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Implementing new fb driver
2008-09-17 17:14 ` Alessio Sangalli
@ 2008-09-19 0:15 ` Alessio Sangalli
2008-09-20 17:30 ` Krzysztof Helt
0 siblings, 1 reply; 8+ messages in thread
From: Alessio Sangalli @ 2008-09-19 0:15 UTC (permalink / raw)
To: krzysztof.h1; +Cc: linux-fbdev-devel@lists.sourceforge.net
Alessio Sangalli wrote:
>>> the fb API unable to deal with this? I have read only 1-bit cursor
>>> images are supported.
>>>
>> No. Look at the include/linux/fb.h
I have another question: in fbmem.h line 1070 function fb_ioctl
case FBIO_CURSOR:
return -EINVAL;
is the ioctl 'manager' in this file? Why does it return like this? How
is the userspace supposed to deal with the cursor?
Thank you
Alessio
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Implementing new fb driver
2008-09-19 0:15 ` Alessio Sangalli
@ 2008-09-20 17:30 ` Krzysztof Helt
2008-09-20 18:29 ` Alessio Sangalli
0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Helt @ 2008-09-20 17:30 UTC (permalink / raw)
To: Alessio Sangalli; +Cc: linux-fbdev-devel@lists.sourceforge.net
On Thu, 18 Sep 2008 17:15:11 -0700
Alessio Sangalli <alesan@manoweb.com> wrote:
> Alessio Sangalli wrote:
>
> >>> the fb API unable to deal with this? I have read only 1-bit cursor
> >>> images are supported.
> >>>
> >> No. Look at the include/linux/fb.h
>
>
> I have another question: in fbmem.h line 1070 function fb_ioctl
>
> case FBIO_CURSOR:
> return -EINVAL;
>
> is the ioctl 'manager' in this file? Why does it return like this? How
> is the userspace supposed to deal with the cursor?
>
I see. It seems that this ioctl is not implemented. The cursor control works through the console layer but I am not sure if you can set shape through this.
I have no time implement this at the moment.
Regards,
Krzysztof
----------------------------------------------------------------------
Doladuj telefon szybko i bezpiecznie.
Sprawdz >> http://link.interia.pl/f1f02
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Implementing new fb driver
2008-09-20 17:30 ` Krzysztof Helt
@ 2008-09-20 18:29 ` Alessio Sangalli
0 siblings, 0 replies; 8+ messages in thread
From: Alessio Sangalli @ 2008-09-20 18:29 UTC (permalink / raw)
To: Krzysztof Helt,
linux-fbdev-devel@lists.sourceforge.net >> "linux-fbdev-devel@lists.sourceforge.net"
Krzysztof Helt wrote:
> I see. It seems that this ioctl is not implemented. The cursor
> control works through the console layer but I am not sure if you can
> set shape through this.
>
> I have no time implement this at the moment.
Well, we did implement it, on Monday I will send you a patch to consider.
bye!
as
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-09-20 18:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-31 0:57 Implementing new fb driver Alessio Sangalli
-- strict thread matches above, loose matches on Subject: below --
2008-07-31 8:11 krzysztof.h1
2008-09-16 22:58 ` Alessio Sangalli
2008-09-17 13:34 krzysztof.h1
2008-09-17 17:14 ` Alessio Sangalli
2008-09-19 0:15 ` Alessio Sangalli
2008-09-20 17:30 ` Krzysztof Helt
2008-09-20 18:29 ` Alessio Sangalli
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).