From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761118AbZJIRsk (ORCPT ); Fri, 9 Oct 2009 13:48:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758720AbZJIRsj (ORCPT ); Fri, 9 Oct 2009 13:48:39 -0400 Received: from complete.lackof.org ([198.49.126.79]:53961 "EHLO complete.lackof.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752880AbZJIRsj (ORCPT ); Fri, 9 Oct 2009 13:48:39 -0400 Date: Fri, 9 Oct 2009 11:48:02 -0600 From: Grant Grundler To: mankan srinivas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Sample PCI Linux Device Driver Message-ID: <20091009174802.GA10309@lackof.org> References: <20070214064427.GA15497@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Home-Page: http://www.parisc-linux.org/ User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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