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:20:22 +0100


Hello!

> It also totally destroys Alan Cox's and other peoples statements in the past
> about Linux being faster than something like UDI because it doesn't have to
> go through a routine just to access the bus.

Please note that these `routines' are actually simple macros or inline
functions on most architectures, hence your argument doesn't apply.

> Documentation/pci.txt does state that the old pcibios functions are
> depreciated. It also includes warning about having to use the values from
> struct pci_dev for ioremap(), although the description could be improved.
>
> In rereading it, I see that the IO-mapping.txt file does mention that you
> need to use the readl/w/b and writel/w/b functions. This statement really
> needs to be added to section 4 of the pci.txt file, since most of the
> documentation is talking about things needed for PCI DMA masters.

I've added a reference to IO-mapping.txt to pci.txt.

> I'm really getting to dislike Linux because of this kind of stuff.

Well, probably a better attitude towards Linux is to contribute some
documentation yourself :)

> It is no surprise to me that many of the drivers don't do things correctly,
> considering how tough it is to determine what correct is.

Please send me names of all such drivers, I'll fix them :)

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
"ADA -- A Dumb Acronym"

- 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/