> Date: Fri, 09 Mar 2001 10:29:22 -0800 > From: David Brownell <[EMAIL PROTECTED]> > > > extern void * > > > pci_pool_dma_to_cpu (struct pci_pool *pool, dma_addr_t handle); > > > > Do lots of drivers need the reverse mapping? It wasn't on my todo list > > yet. > > Some hardware (like OHCI) talks to drivers using those dma handles. I wonder if it may be feasible to allocate a bunch of contiguous pages. Then, whenever the hardware returns a bus address, subtract the remembered bus address of the zone start, add the offset to the virtual and voila. -- Pete - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: SLAB vs. pci_alloc_xxx in usb-uhci patch David S. Miller
- Re: SLAB vs. pci_alloc_xxx in usb-uhci p... David Brownell
- Re: SLAB vs. pci_alloc_xxx in usb-u... David S. Miller
- Re: [linux-usb-devel] Re: SLAB ... Johannes Erdfelt
- Re: [linux-usb-devel] Re: SLAB ... David Brownell
- Re: [linux-usb-devel] Re: SLAB ... David S. Miller
- Re: [linux-usb-devel] Re: SLAB ... David Brownell
- Re: [linux-usb-devel] Re: SLAB ... Pete Zaitcev
- Re: [linux-usb-devel] Re: SLAB ... Alan Cox
- Re: SLAB vs. pci_alloc_xxx in usb-u... David Brownell
- Re: SLAB vs. pci_alloc_xxx in u... Pete Zaitcev
- Re: SLAB vs. pci_alloc_xxx in u... David Brownell
- Re: SLAB vs. pci_alloc_xxx in u... Gérard Roudier
- Re: SLAB vs. pci_alloc_xxx in u... David Brownell
- Re: SLAB vs. pci_alloc_xxx in u... Gérard Roudier
- Re: SLAB vs. pci_alloc_xxx in u... David Brownell
- Re: SLAB vs. pci_alloc_xxx in u... David S. Miller
- Re: [linux-usb-devel] Re: SLAB ... Alan Cox
- Re: SLAB vs. pci_alloc_xxx in u... David S. Miller
- Re: SLAB vs. pci_alloc_xxx in usb-uhci patch Peter Zaitcev
- Re: SLAB vs. pci_alloc_xxx in usb-uhci patch David Brownell