Skip to contentSkip to conversation

What is being setup in chrp_setup_pci_ptrs()?

DISCUSSION [email protected] 3 participants 3 messages Aug 10, 1999

lore
Share & tools
lore
#0 lore raw

Dear PCI Gurus,

In the function chrp_setup_pci_ptrs() at the end of the file
/arch/ppc/kernel/chrp_pci.c there are three different variables that are initialized depending on the system being used:
pci_dram_offset,
isa_mem_base and
isa_io_base.

Could someone please explain to me what the addresses these variables refer
to mean, please?

Many thanks,

--Andy

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]

#1 lore raw
Quoted 9 lines · On Mon, 9 Aug 1999 [email protected] wrote:

In the function chrp_setup_pci_ptrs() at the end of the file
/arch/ppc/kernel/chrp_pci.c there are three different variables that are initialized depending on the system being used:
pci_dram_offset,
isa_mem_base and
isa_io_base.

Could someone please explain to me what the addresses these variables refer
to mean, please?

- pci_dram_offset: address at which system memory starts when viewed from a PCI device. CPU and PCI may have a different view to RAM.
- isa_mem_base: address where the ISA memory space is located (first 1 MB on a PC)
- isa_io_base: address where the ISA I/O space is located (65536 I/O ports on a PC)

Greetings,

Geert

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

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]

#2 lore raw
In reply to [email protected]
Quoted 5 lines · [email protected] wrote:

In the function chrp_setup_pci_ptrs() at the end of the file
/arch/ppc/kernel/chrp_pci.c there are three different variables that are initialized depending on the system being used:

pci_dram_offset,

The PCI address of physical memory address 0 (which should also be kernel virtual address 0xc0000000). If physical memory does not start at 0, then things are a bit more complicated.

Quoted 1 line

isa_mem_base and

The kernel virtual address to which you have mapped ISA memory space. You may need this for the ROMs on ISA cards.

Quoted 1 line

isa_io_base.

The kernel virtual address to which you have mapped IO space. This is used by insb and similar instructions.

For more details of these, read include/asm-ppc/io.h

- Adrian Cox, AG Electronics

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]