Messages in this thread |  | | Date | Wed, 3 Oct 2001 07:11:56 -0700 (PDT) | From | Linux Bigot <> | Subject | how to get virtual address from dma address |
| |
All programmers
I am relatively new to linux kernel. Please advise what is the safe way to get the original virtaul address from dma address e.g.,
dma_addr = pci_map_single(dev, vaddr, sizeof(struct some), PCI_DMA_BIDIRECTIONAL);
issue_command_to_the_controller();
my_isr() { struct some *some;
dma_addr = this_address_completed();
--->some = how_to_get_from_dma_addr(dma_addr); }
Would ioremap work.
TIA
__________________________________________________ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |