linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PCI architecture enlightenment
@ 2002-08-06 14:43 Allen Curtis
  2002-08-06 15:17 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 4+ messages in thread
From: Allen Curtis @ 2002-08-06 14:43 UTC (permalink / raw)
  To: Ppc Developers


I was wondering if anyone could provide enlightenment on the PCI address
translation architecture. I have been looking at the code and it is not
obvious how all the different pieces fit together. I read
Documentation/pci.txt and it refers to device drivers not host controller
configuration and resource allocation.0

Our board:
Host phys: 0x40000000 - 0x47ffffff	=>
PCI I/O space 0x00000000 - 0x07ffffff

Host phys: 0x48000000 - 0x4fffffff =>
PCI Memory space 0x00000000 - 0x07ffffff

PCI phys: 0x40000000 -  0x47ffffff =>
Host Memory 0x00000000 - 0x07ffffff

Host Memory:
phys: 0x00000000
virt: 0xc0000000
size: 0x08000000

PCI BAR: (only 1 bus)
Memory: 0x00000000
I/O:    0x00000000

======================

When initializing a host controller how do the following interact?

hose->io_start/io_end
host->mem_start/mem_end
host->virt_io_addr

pci_init_resource(IO)
pci_init_resource(MEM)

PCI_ISA_IO...
PCI_ISA_MEM...
PCI_DRAM_OFFSET
_IO_BASE

Somehow the above information is used to create a host->PCI memory map,
PCI->host memory map and PCI->PCI memory map.

TIA


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: PCI architecture enlightenment
@ 2002-08-06 17:41 Allen Curtis
  0 siblings, 0 replies; 4+ messages in thread
From: Allen Curtis @ 2002-08-06 17:41 UTC (permalink / raw)
  To: acurtis; +Cc: benh, linuxppc-dev


> There are 2 BAR's for the host controller that appear but they do not get
> assigned resources since they fall outside of the defined resources ranges.
> So, this should matter right? (see PCI/SCSI help message for output)

Should read "So, this should NOT matter...."

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-06 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-06 14:43 PCI architecture enlightenment Allen Curtis
2002-08-06 15:17 ` Benjamin Herrenschmidt
2002-08-06 15:55   ` acurtis
  -- strict thread matches above, loose matches on Subject: below --
2002-08-06 17:41 Allen Curtis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).