LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2010, 04:50 PM   #1
marius_c
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Rep: Reputation: 0
memory video driver


I have have to write a video device driver,
but rendering will happening in memory, not on a
physical card. I already wrote a simple
driver stripping out hardware piece code from
an existent vodoo driver. I an install it, uninstall
it but i dont know how to map it to a file
/dev/mydevice_video

Is there a field in fb_info or fb_vscreenifo where the device name has to be passed before calling register_framebuffer.

Thank you,
 
Old 02-10-2010, 09:06 AM   #2
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 110Reputation: 110
If you registered everything properly with the Framebuffer subsystem, my understanding is that you should end up with /dev/fbX where X is the next number in line for your framebuffer device.

Just my, admittedly limited, understanding.
 
Old 02-10-2010, 10:42 AM   #3
marius_c
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by orgcandman View Post
If you registered everything properly with the Framebuffer subsystem, my understanding is that you should end up with /dev/fbX where X is the next number in line for your framebuffer device.

Just my, admittedly limited, understanding.

Thank you.
Yes, register_frambuffer gets next free index in free fb#.
It calls create_device(..."fb", i); so always creates "fb#"
I have a problem testing it on ubuntu 9 with fb0, because there is no fb's on ubuntu, and as soon I register it as /dev/fb0 some process take over it and I cannot rmmod it. I would prefer to have it /dev/my_fb for the time being.

I still have questions

Do I have to provide functions for both
'fb_ops'
and
'file_operations'

Do I have to call register_chrdev along with register_framebuffer,
because mmap on my test program on /dev/fb0 still returns errno as
no such device (i can see my dev in lsmod and the file /dev/fb0)?

Thank you.

Last edited by marius_c; 02-10-2010 at 11:28 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to test Video Driver & Audio Driver ? Mel_3 Linux - Newbie 1 11-08-2007 01:49 PM
Flash memory as Video memory in Ubuntu? caa1980 Ubuntu 6 10-25-2007 11:55 AM
Suse 9.2 Audio Driver and Video Driver Woes CoachZ Linux - Software 2 02-17-2005 08:50 AM
Video Driver Poblems with Red Hat 8.0 (trident video driver) AstroJim Linux - Newbie 1 05-20-2004 03:25 PM
SIS driver : out of video memory Phlange Linux - Software 1 06-25-2003 07:36 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration