Re: CPU Initiated DMA

From: Nikolaus Rath
Date: Mon Jan 10 2011 - 12:08:27 EST


Ming Lei <tom.leiming@xxxxxxxxx> writes:
> 2011/1/8 Nikolaus Rath <Nikolaus@xxxxxxxx>:
> Hi,
>
>> Hello,
>>
>> I want to write a driver for a rather dumb PCI card, which cannot become
>> bus master itself. Is it possible to use a DMA controller on the
>> mainboard to still transfer data to the card without occupying the CPU?
>>
>> (I believe this is the way DMA used to work on ISA cards, but do recent
>> x86 systems still have a DMA controller for the CPU?)
>>
>> Any pointers are greatly appreciated. I looked into "Linux Device
>> Drivers", but the DMA chapter seems to be only about the device becoming
>> busmaster.
>
> Generally speaking, you can do it certainly if there is dma controller on
> your system.

That sounds promising, thanks. How do I find out if my system has a DMA
controller? (I don't need general C code, I just want to check if I'll
be able to test the driver on my system).


Thanks,

-Nikolaus

--
ÂTime flies like an arrow, fruit flies like a Banana.Â

PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C

--
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/