On Tue, 1 May 2001, Russell King wrote:
>
> In which case, can we change the following in IO-mapping.txt please?
Oh, sorry. I misread your question. The _return_ value is a cookie.
The first argument should basically be the start of a "struct pci_dev"
resource entry, but obviously architecture-specific code can (and does)
know what the thing means. And the ISA space (ie 0xA0000-0x100000) has
been considered an acceptable special case.
So the only usage that is "portable" is to do something like
cookie = ioremap(pdev->resource[0].start, pdev->resource[0].len);
and I guess we should actually create some helper functions for that too.
You can use ioremap in other ways, but there's nothing to say that they
will work reliably across multiple PCI buses etc.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Re: isa_read/write not available on ppc - solutio... Brian Gerst
- Re: isa_read/write not available on ppc - solutio... Geert Uytterhoeven
- Re: isa_read/write not available on ppc - solutio... Arnaldo Carvalho de Melo
- Re: isa_read/write not available on ppc - solutio... mike_phillips
- Re: isa_read/write not available on ppc - so... Linus Torvalds
- Re: isa_read/write not available on ppc ... Russell King
- Re: isa_read/write not available on ... Linus Torvalds
- Re: isa_read/write not available... Russell King
- Re: isa_read/write not avai... Linus Torvalds
- Re: isa_read/write not ... Jonathan Lundell
- Re: isa_read/write not available on ppc ... Paul Mackerras
- Re: isa_read/write not available on ... Benjamin Herrenschmidt
- Re: isa_read/write not available on ppc ... Geert Uytterhoeven
- Re: isa_read/write not available on ppc - solutio... mike_phillips
- Re: isa_read/write not available on ppc - solutio... mike_phillips
- Re: isa_read/write not available on ppc - so... Anton Blanchard

