Re: Specifying properly the PCI driver model on all linux archite ctur es, (ioremap(), bus_to_virt()

Martin Mares (mj@ucw.cz)
Wed, 3 Nov 1999 00:21:34 +0100


Hello!

> The specification of base_address[] is missing too, and need to be defined.
> I think using the physical address for base_address is the best way.

Please read Documentation/pci.txt, it's clearly said there.

> Functions like readl() or writel() can't in my opinion be compatible with
> ioremap(). ioremap() returns a virtual memory pointer, and if an indirect
> access must be used to access PCI memory, an other programming model must be
> used... The file IO-mapping.txt is obsolete...

No, IO-mapping.txt is right and you are wrong.

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"It's a lemon tree, my dear Watson." -- Sherlock Holmes (?)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/