bus_to_virt equivalent

From: Anil kumar (anils_r_at_yahoo.com)
Date: 11/08/05

  • Next message: Paul Jackson: "Re: SIGALRM ignored"
    Date:	Mon, 7 Nov 2005 15:52:47 -0800 (PST)
    To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
    
    

    Hi,

    I am trying to port bus_to_virt and virt_to_bus to the
    DMA-mapping scheme.
    I found a way to move virt_to_bus() as follows:
    page = virt_to_page(cmd->request_buffer);
    offset = (unsigned long)address & ~PAGE_MASK;
    dma_addr_t addr = pci_map_page(dev, page, offset,
    size,direction);

    But now I want to get virtual address for dma_addr_t.

    Any help is greatly appreciated.

    with regards,
      Anil

                    
    __________________________________
    Yahoo! FareChase: Search multiple travel sites in one click.
    http://farechase.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/


  • Next message: Paul Jackson: "Re: SIGALRM ignored"

    Relevant Pages

    • [PATCH] Fix 2.6.7 Alpha compilation
      ... +find_next_bit(const void * addr, unsigned long size, unsigned long offset) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] cpumask 4/10 uninline find_next_bit on ia64
      ... * Find next zero bit in a bitmap reasonably efficiently.. ... -find_next_zero_bit (void *addr, unsigned long size, unsigned long offset) ... 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/ ...
      (Linux-Kernel)
    • [patch 11/44] generic find_{next,first}{,_zero}_bit()
      ... This patch introduces the C-language equivalents of the functions below: ... unsigned long offset); ... unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [Patch 6 of 17] cpumask v4 - Uninline find_next_bit on ia64
      ... * Find next zero bit in a bitmap reasonably efficiently.. ... -find_next_zero_bit (void *addr, unsigned long size, unsigned long offset) ... 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/ ...
      (Linux-Kernel)
    • Patch 6a/23 - Bitmaps, Cpumasks and Nodemasks
      ... * Find next zero bit in a bitmap reasonably efficiently.. ... -find_next_zero_bit (void *addr, unsigned long size, unsigned long offset) ... 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/ ...
      (Linux-Kernel)