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-16-2010, 10:39 AM   #1
marius_c
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Rep: Reputation: 0
Driver question. When to use


Device driver development. I am looking to write a new video driver for 'oidando' redirecting fb to socket.
I start filling in the gaps starting with this template
http://pdk.android.com/online-pdk/gu...y_drivers.html
Then later I ran into netfb at:
http://www.google.com/codesearch/p?h...a=N&cd=1&ct=rc


Now the 2 drivers uses different structures to probe/remove the driver.
'roidandro' uses:

Code:
struct platform_driver and
calls

Code:
platform_driver_register(struct platform_driver*)
while netfb uses:

Code:
struct device_driver netfb_driver;
struct platform_device;
and makes 2 calls in _init

Code:
driver_register(struct device_driver *);
platform_device_register(struct platform_device*);
So my question is: when to use

Code:
struct device_driver
struct platform_device
struct platform_driver
 
  


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
Driver IO Busywait Kernel Driver Question skibud2 Programming 2 10-27-2008 07:19 PM
ati driver question and console question kholdstayr Slackware 2 07-18-2005 03:30 PM
Driver Question megadeth Linux - Software 1 04-18-2005 05:15 PM
driver question DrGnome Linux - Software 2 04-12-2004 12:16 PM
Driver Question jhayess Linux - Software 2 11-13-2003 03:22 PM

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

All times are GMT -5. The time now is 05:39 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