lkml.org 
[lkml]   [2002]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2.5.5] Conversion of hp100 to new PCI interface
> 
> + /* Conversion to new PCI API :
> + * The memory block we use, lp->page_vaddr, was DMA allocated via
> + * pci_alloc_consistent(), so we just need to "retreive" the
> + * original mapping to bus/phys address - Jean II */
> ringptr->pdl = pdlptr + 1;
> - ringptr->pdl_paddr = virt_to_bus(pdlptr + 1);
> + ringptr->pdl_paddr = virt_to_phys(pdlptr + 1);

Nope.. You need to use the mapping value obtained from
pci_alloc_consistent...

Note for ISA (and EISA and VLB) devices, you also call
pci_alloc_consistent. You pass NULL for the pci device.

Jeff



--
Jeff Garzik | "UNIX enhancements aren't."
Building 1024 | -- says /usr/games/fortune
MandrakeSoft |
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.074 / U:1.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site