LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 11-20-2011, 10:38 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 183

Rep: Reputation: 23
Writing a device driver for PCI card


Hello,

According to LDD 3:
Quote:
In summary, to create a proper struct pci_driver structure, only four fields need to
be initialized:
static struct pci_driver pci_driver = {
.name = "pci_skel",
.id_table = ids,
.probe = probe,
.remove = remove,
};
But in this case how can I write/read/IOCTL to this driver ?

Thanks,
Zvika.
 
Old 11-23-2011, 03:13 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,627

Rep: Reputation: 140Reputation: 140
You need create another char driver and the char driver is linked with the PCI driver.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PCI (for writing device driver) related information... Devika99 Linux - Hardware 8 09-23-2009 03:32 AM
reading and writing to configuration register of PCI device giri_blr Linux - Kernel 0 08-14-2008 01:43 AM
Help in writing device driver ankit_chaudhri Programming 3 11-13-2007 12:50 PM
Need help in writing device driver eshwar_ind Programming 1 02-07-2004 04:46 PM
iPAQ 10/100 fast Ethernet PCI card device driver philipsyyy Linux - Hardware 4 10-07-2002 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration