[Haskell-cafe] Linux device drivers
k.schupke at imperial.ac.uk
Tue Mar 22 05:46:57 EST 2005
I thought the BusMaster interface was pretty uniform, unlike the earlier
DMA interfaces which varied from chipset to chipset.
Lennart Augustsson wrote:
> But there are plenty of minor variations on how to program
> and initiate DMA for different devices.
> -- Lennart
> Keean Schupke wrote:
>> Actually with PCI chipsets, implementing a generic BusMaster DMA driver
>> is not too hard, assuming you already have interrupts handled (and
>> you don't want 64bit DMA support)... You just load the parameters for
>> the disk read into the PCI registers, and wait for the completed
>> interrupt. I wrote a diver in assembly language for my own OS project
>> a few years ago.
More information about the Haskell-Cafe