All of lore.kernel.org
 help / color / mirror / Atom feed
* Sample PCI Linux Device Driver
       [not found]   ` <20091008162203.GA13403@kroah.com>
@ 2009-10-08 18:58     ` mankan srinivas
  2009-10-08 21:38       ` Bryan Donlan
                         ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mankan srinivas @ 2009-10-08 18:58 UTC (permalink / raw)
  To: linux-pci; +Cc: linux-kernel


  <BAY138-W201EAB14A34CDEFC5AFFCBE5CC0@phx.gbl>
 

 <20091008162203.GA13403@kroah.com>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0


Hello=2C
=20
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 informati=
on about low-level driver code talks to the hardware. Any real example code=
 is greatly appreciated.
=20
Thanks for your time.
-Srini 		 	   		  =0A=
_________________________________________________________________=0A=
Take a peek at other people's pay and perks Check out The Great Australian =
Pay Check=0A=
http://clk.atdmt.com/NMN/go/157639755/direct/01/=

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sample PCI Linux Device Driver
  2009-10-08 18:58     ` Sample PCI Linux Device Driver mankan srinivas
@ 2009-10-08 21:38       ` Bryan Donlan
  2009-10-09 17:48       ` Grant Grundler
  2009-10-12 21:42       ` Heiko J Schick
  2 siblings, 0 replies; 4+ messages in thread
From: Bryan Donlan @ 2009-10-08 21:38 UTC (permalink / raw)
  To: mankan srinivas; +Cc: linux-pci, linux-kernel

On Thu, Oct 8, 2009 at 2:58 PM, mankan srinivas <s_mankan@hotmail.com> wrote:
>
>  <BAY138-W201EAB14A34CDEFC5AFFCBE5CC0@phx.gbl>
>
>
>  <20091008162203.GA13403@kroah.com>
> Content-Type: text/plain; charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> MIME-Version: 1.0

First, please fix your mail client - it's munging your mails rather
badly, as you can see.

> Hello=2C
> =20
> 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 informati=
> on about low-level driver code talks to the hardware. Any real example code=
>  is greatly appreciated.

The entire linux kernel is open source - just look under drivers/ for
plenty of example code. If you're stuck, a 'grep linux/pci.h -R
drivers' should find you PCI drivers. (Note that drivers/pci contains
pci core code, which is probably not what you want)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sample PCI Linux Device Driver
  2009-10-08 18:58     ` Sample PCI Linux Device Driver mankan srinivas
  2009-10-08 21:38       ` Bryan Donlan
@ 2009-10-09 17:48       ` Grant Grundler
  2009-10-12 21:42       ` Heiko J Schick
  2 siblings, 0 replies; 4+ messages in thread
From: Grant Grundler @ 2009-10-09 17:48 UTC (permalink / raw)
  To: mankan srinivas; +Cc: linux-pci, linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sample PCI Linux Device Driver
  2009-10-08 18:58     ` Sample PCI Linux Device Driver mankan srinivas
  2009-10-08 21:38       ` Bryan Donlan
  2009-10-09 17:48       ` Grant Grundler
@ 2009-10-12 21:42       ` Heiko J Schick
  2 siblings, 0 replies; 4+ messages in thread
From: Heiko J Schick @ 2009-10-12 21:42 UTC (permalink / raw)
  To: mankan srinivas; +Cc: linux-pci, linux-kernel

On Oct 8, 2009, at 8:58 PM, 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  
> informati=
> on about low-level driver code talks to the hardware. Any real  
> example code=
> is greatly appreciated.

Chapter 12 from the Linux Device Driver book might be useful, too.

http://lwn.net/images/pdf/LDD3/ch12.pdf

Regards, Heiko

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-12 21:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <BAY108-F18507D362F5105C57CCC2FE59E0@phx.gbl>
     [not found] ` <20070214064427.GA15497@kroah.com>
     [not found]   ` <20091008162203.GA13403@kroah.com>
2009-10-08 18:58     ` Sample PCI Linux Device Driver mankan srinivas
2009-10-08 21:38       ` Bryan Donlan
2009-10-09 17:48       ` Grant Grundler
2009-10-12 21:42       ` Heiko J Schick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.