sg_dma_address

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

 



Hi,

1. I have allocated memory of size 50 Kbytes using "get_user_pages()".

2. I created "struct scatterlist " list for DMA operation. 

3. I have used dma_map_sg() call to map all scatterlist pages for DMA
operation.

4. "sg_dma_address()"  returns the bus (DMA) address from this scatterlist
entry for single page/buffer only.

Hardware bus master register is having only one address register for PCI-bus
master operation. I want to transmit all the pages/buffer at at time. 

If i pass initial dma address to bus master register, whether OS will take
care of upcoming dma addresses of scatterlist ?

Regards,
Munees.
DISCLAIMER 
The contents of this e-mail and any attachment(s) are confidential and intended for the 

named recipient(s) only. It shall not attach any liability on the originator or HCL or its 

affiliates. Any views or opinions presented in this email are solely those of the author and 

may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, 

dissemination, copying, disclosure, modification, distribution and / or publication of this 

message without the prior written consent of the author of this e-mail is strictly 

prohibited. If you have received this email in error please delete it and notify the sender 

immediately. Before opening any mail and attachments please check them for viruses and 

defect.

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