Re: New resources - pls, explain :-(

Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
Wed, 11 Aug 1999 14:54:46 +0200 (CEST)


On Mon, 9 Aug 1999, Linus Torvalds wrote:
> I'm talking to the ISA PnP guy, and we'll try to get rid of "struct
> pci_dev" completely - because most of the issues with PCI have similar
> equivalents in ISA PnP. So there would be a "struct device" (except the
> name has already been stolen by the networking layer, so..), which can ge
> used in generic PC drivers, and then the only difference between PCI and
> ISA PnP is going to be which function you use to find the device, and
> which function you use to initialize it.
>
> In short, this is not about just PCI. There are certainly many cases where
> the same driver has PCI, ISA PnP, and old ISA interfaces - and the
> _driver_ is often exactly the same with just small differences in how
> cards are found and initialized.

And differences in how they are accessed. This may depend on the bus type the
`device' is tied to.

Remember, readl() and friends are to be used for PCI mapped memory only! If you
want to generalize, accesses have to be done through e.g. device->readl().

Greetings,

Geert

--
Geert Uytterhoeven                     Geert.Uytterhoeven@cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP}  http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium

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