Re: PCI DMA - Where to specify destination address (IO address)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-02-22 at 08:42 -0800, munees waran wrote:
> DPRAM is memory mapped with PCI card. If i want to do data transfer
> from dpram to local memory, what is the procedure?.
>  
> I will get the base address of DPRAM using pci_resource_start() and
> pci_resource_end() API calls. I will enable the bus master capability
> using pci_set_master()  API call. Then how do initiate the transfer.
> you mean PCI card will have specific registers for configuration like
> source address, enable/disable dma operations. Is my understanding
> correct ?
>  

yes.

the card needs to be told to do the transfer, IF it can do it.
If not, memcpy_from_io() is all you have left ;)



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux