Skip to contentSkip to conversation

mpc8250 pci registers

DISCUSSION Wojciech Kromer 2 participants 2 messages Mar 27, 2003

lore
Share & tools
lore
#0 lore raw

anyone has expirience with 8250 PCI interface
i'm trying to read something from pci i/o space, but mpc8250 always generates 'memory_read' operation on pci bus (i expect io_read to read registers on my piix device)

here are my pci registers settings:

GPCR=00000000
PCIGCR=01000000 PCIMSK0=c0000000 PCIBR0=80000001
PCIMSK1=c0000000 PCIBR1=80000001 ACR=03
ALRH=30126745
PICMR0=00800fa0 PITAR0=00000000 PIBAR0=00000b00
PICMR1=f0ff0fc0 PITAR1=00000000 PIBAR1=00000800
POCMR0=f0ff0fc0 POTAR0=00000000 POBAR0=00000b00
POCMR1=f0ff0fa0 POTAR1=00000000 POBAR1=00000800

anyone knows what's wrong?

--
* * * * * * * * * * * *
* per pedes ad astra! *
* * * * * * * * * * * * mailto:[email protected]

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

#1 lore raw
Quoted 16 lines · Wojciech Kromer

anyone has expirience with 8250 PCI interface
i'm trying to read something from pci i/o space, but mpc8250 always generates 'memory_read' operation on pci bus (i expect io_read to read registers on my piix device)

here are my pci registers settings:

GPCR=00000000
PCIGCR=01000000 PCIMSK0=c0000000 PCIBR0=80000001
PCIMSK1=c0000000 PCIBR1=80000001 ACR=03
ALRH=30126745
PICMR0=00800fa0 PITAR0=00000000 PIBAR0=00000b00
PICMR1=f0ff0fc0 PITAR1=00000000 PIBAR1=00000800
POCMR0=f0ff0fc0 POTAR0=00000000 POBAR0=00000b00
POCMR1=f0ff0fa0 POTAR1=00000000 POBAR1=00000800

Quoted 1 line

anyone knows what's wrong?

Check include/asm-ppc/io.h. Normally the macro _IO_BASE points to the mapped PCI I/O space. It can then be accessed with inb/outb call for compatiility with the x86.

Hope it helps,

Wolfgang.

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