Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to develop a pci device driver on MPC8280 powerpc.I am finding a problem in accessing PCi configuration space.I am trying to make MPC8280 operate in the agent mode,to do this I have followed few steps.I have made few changes in the register settings and tried but my device is not getting detected when I insert the card in to
the pci slot of the main computer.

When I insert the card in to the pci slot, the system must try to access the configuration space of MPC8280 powerpc and should display the device id,vendor id on the main computer.


Now the question is how to send Device ID,vendor id to the main PC through the PCI bus.How to access the configuration space whose offset address is not mapped in the internal memory.


To do this I have made few changes in the register settings.Registers that I have changed are as shown below:

C++
SYPCR=0xffffff80 ; IMMR=0xfff00000 ; CONFIG_ADDR = 0x80000000 ;BCR=0x100c8000 ;PPC_ACR=0X06;PPC_ALRH=0X61207893 ; SIUMCR=0X2260000 ; TESCR1=0X00004000 ;L_TESCR1=0X00004000
PCIMSK1=0XFC000000;PCIMSK0=0XC0000000;PCIBR1=0XF40 00001 ;




In addition to this should I need to make any further changes to the registers.And kindly advice me whether the register settings which are shown above are correct or is there any other methodology for processing the same to get access to configuration space.

Kindly help me in this regard or kindly advice me to proceed further in this regard.I will be very much thankful to you for the same.

xxxx@xxxx.xxx
thank u
Posted
Updated 10-Sep-11 17:36pm
v2
Comments
walterhevedeich 10-Sep-11 23:37pm    
Email address removed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900