Read Documentation/DMA-mapping.txt, especially "Types of DMA mappings",
then figure how it's used in drivers/net/{3c59x,epic100,eepro100}.c for
example.
Side note: pci_{map/alloc}_xxx must be balanced to avoid leak -> a straight
search/replace virt_to_xxx/pci_map won't necessarily be enough.
-- Ueimor - 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/