Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 3 Oct 2001 10:11:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 3 Oct 2001 10:11:43 -0400 Received: from web14803.mail.yahoo.com ([216.136.224.219]:21260 "HELO web14803.mail.yahoo.com") by vger.kernel.org with SMTP id ; Wed, 3 Oct 2001 10:11:31 -0400 Message-ID: <20011003141156.17014.qmail@web14803.mail.yahoo.com> Date: Wed, 3 Oct 2001 07:11:56 -0700 (PDT) From: Linux Bigot Subject: how to get virtual address from dma address To: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/