Hey Folks,
I am just getting into some driver programming for my work. I read a
bit of the PCI System Architecture book, and it talked about one of the
main ways x86 vs the PPC did PCI configuration was through IO vs memory
space. Is there an on-line reference somewhere that talks about these
ideas or concept in more detail? This is my first foray, and I'm more
than a little fuzzy about the concepts ... My work is for an x86 card,
but I am hoping to "play" with the PPC on my own.
Thanks much.
vinai
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
On 27 Jan, this message from vinai echoed through cyberspace:
I am just getting into some driver programming for my work. I read a
bit of the PCI System Architecture book, and it talked about one of the
main ways x86 vs the PPC did PCI configuration was through IO vs memory
space.
Configration? That's inherently platform-dependant. The host bridge
arranges for _some_ way of configuration space access to be available.
_You_ need to know _how_ you access it from the bridge docs.
It happens that PowerPC lacks the seperate address space that is called
'IO' on i386. So yes, everything is memory-mapped on PowerPC, be it
PCI's memory space (big fat mapping often mapped 1:1), IO space (smaller
mapping) or configuration space (mapped in the host bridge's memory
space).
Is there an on-line reference somewhere that talks about these
ideas or concept in more detail?
Not much that I know of... Try Intel or PCI SIG.
Cheers
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art.
23, Rue Paul Henkes | Ask Questions. Make Mistakes.
L-1710 Luxembourg |
email mlan@cpu.lu |
http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
On Mon, 27 Jan 2003, Michel Lanners wrote:
On 27 Jan, this message from vinai echoed through cyberspace:
quoted
I am just getting into some driver programming for my work. I read a
bit of the PCI System Architecture book, and it talked about one of the
main ways x86 vs the PPC did PCI configuration was through IO vs memory
space.
Configration? That's inherently platform-dependant. The host bridge
arranges for _some_ way of configuration space access to be available.
_You_ need to know _how_ you access it from the bridge docs.
It's explained in the PCI System Architecture book for PReP-style PPC host
bridges only. Other host bridges behave different, check out their technical
docs (if you can find them), or look at the arch/ppc/kernel/*pci.c files.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/