lkml.org 
[lkml]   [1999]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Specifying properly the PCI driver model on all linux archite ctur es, (ioremap(), bus_to_virt() ...)
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/

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