mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Deucher <agd5f@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Writing a driver for a pci busmaster ide controller, need tutoring.
Date: Tue, 30 Oct 2001 07:31:23 -0800 (PST)	[thread overview]
Message-ID: <20011030153123.84364.qmail@web11303.mail.yahoo.com> (raw)

The only issue with the Piccolo controller is that I
don't think it is a PCI device (doesn't show up in
lspci anyway).  It's part of toshiba's integrated
chipset, so I'm not sure exactly how it is accessed. 
I haven't looked at the docs in a while.  Good luck
with it.  I'd love to see DMA working on my laptop.


Alex

----------------------------

> As this is my first atempt to write a driver I find
my self not really 
> having the knowhow to do this. And it is extremely
hard to find good 
> tutorials on the subject =) 
> So please if anyone find the time and motivation,
would you write me one? 
> Mabey not but if you were to send me all you know on
this topic I might be 
> able to puzzle the bits and pieces together and
write this driver. 

There are two things that will help you straight away.
The first is the 
Linux Device Drivers book (version 2) - also available
online for 
cheapskates ;) 

The second is Documentation/pci.txt, and
Documentation/DMA-mapping.txt 

> It would be easier for me to just let one of you
guys write this driver, but 
> if noone is in any hurry I would find this a great
learning experience, and 
> fun to ;) 

Another good bit of news is that providing the device
follows standard 
IDE bus mastering design (pretty much all do) then you
only actually have 
to write the tuning code for the chipset. 

ide-pci.c contains a table of PCI capable devices and
any driver needed. 
You provide pci initialisers, dma finctions and ide
functions. 

Take a look at amd74xx.c for example - thats a driver
letting ide-dma.c 
do all the work. 

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

             reply	other threads:[~2001-10-30 15:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-30 15:31 Alex Deucher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-10-29 15:45 John Nilsson
2001-10-29 16:30 ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011030153123.84364.qmail@web11303.mail.yahoo.com \
    --to=agd5f@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®