how to get virtual address from dma address

From: Linux Bigot (linuxopinion@yahoo.com)
Date: Wed Oct 03 2001 - 09:11:56 EST


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/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:27 EST