Re: Sample PCI Linux Device Driver

From: Bryan Donlan
Date: Thu Oct 08 2009 - 17:41:08 EST


On Thu, Oct 8, 2009 at 2:58 PM, mankan srinivas <s_mankan@xxxxxxxxxxx> wrote:
>
>  <BAY138-W201EAB14A34CDEFC5AFFCBE5CC0@xxxxxxx>
>
>
>  <20091008162203.GA13403@xxxxxxxxx>
> 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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/