Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
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.


  Search this Thread
Old 11-20-2011, 10:38 PM   #1
Registered: Sep 2007
Posts: 184

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


According to LDD 3:
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 ?

Old 11-23-2011, 03:13 PM   #2
Senior Member
Registered: Apr 2009
Posts: 1,645

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


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 > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

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

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