lkml.org 
[lkml]   [2009]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Sample PCI Linux Device Driver
On Thu, Oct 08, 2009 at 06:58:01PM +0000, mankan srinivas wrote:
> I am working on developing PCI based Linux Device Driver. Could you
> please send me few sample code. I am looking for the code which has more
> information about low-level driver code talks to the hardware. Any real
> example code is greatly appreciated.

Please start by reading Documentation/PCI/pci.txt and MSI-HOWTO.txt
Lots more useful info in Documentation/ that should help you out
(e.g. suspend/resume, hotplug, DMA API, etc)

Here are some specific driver examples:
drivers/net/forcedeth.c
drivers/net/e1000e/
drivers/scsi/mpt2sas/
drivers/ata/sata_sil24.c
drivers/ata/sata_mv.c

hth,
grant


\
 
 \ /
  Last update: 2009-10-09 19:57    [W:0.072 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site