Skip to contentSkip to conversation

Writing a driver for a pci busmaster ide controller, need tutoring.

DISCUSSION Alex Deucher 1 participant 1 message Oct 30, 2001

lore
Share & tools
lore
#0 lore 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

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

Quoted 1 line

As this is my first atempt to write a driver I find

my self not really

Quoted 1 line

having the knowhow to do this. And it is extremely

hard to find good

Quoted 2 lines

tutorials on the subject =)
So please if anyone find the time and motivation,

would you write me one?

Quoted 1 line

Mabey not but if you were to send me all you know on

this topic I might be

Quoted 1 line

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

Quoted 1 line

It would be easier for me to just let one of you

guys write this driver, but

Quoted 1 line

if noone is in any hurry I would find this a great

learning experience, and

Quoted 1 line

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