Questions about MPC8303 PCIE driver @ Vxworks-6.9.4.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Questions about MPC8303 PCIE driver @ Vxworks-6.9.4.

651 Views
heqinlong2010
Contributor I

Questions about MPC8303 PCIE driver @ Vxworks-6.9.4.

The MPC8308 has only one PCIE controller.

In the function m83xxPciExMethodDevCfgRead,When the busNo=0,deviceNo =0 the code return the "retValLong = CSR_READ_4(pInst, deviceOffset);"

but when the deviceNo is 0x1, the driver can't return the config space.(retValLong = CFG_READ_4(pInst, deviceOffset);)

So. the bus scan is fail.

how to fix it? 

thanks~

if ((deviceNo != 0) ||
(busNo >= ((struct m83xxPciExDrvCtrl *)(pInst->pDrvCtrl))->pciMaxBus))
{
switch(width)
{
case 1:
*(UINT8*)pData = 0xff;
break;
case 2:
*(UINT16*)pData = 0xffff;
break;
case 4:
*(UINT32*)pData = 0xffffffff;
break;
default:
break;
}
return(ERROR);
}

deviceOffset = (busNo << PCIE_BUS_SHIFT) |
(deviceNo << PCIE_DEV_SHIFT)|
(funcNo << PCIE_FUNC_SHIFT);
deviceOffset += (offset & 0xffc);

key = intCpuLock();

if ((busNo == 0 ) && (deviceNo == 0) && (funcNo == 0))
retValLong = CSR_READ_4(pInst, deviceOffset);
else
retValLong = CFG_READ_4(pInst, deviceOffset);

0 Kudos
1 Reply

568 Views
alexander_yakov
NXP Employee
NXP Employee

Sorry, this question is more specific to Vxworks than to MPC8308 processor hardware.

Vxworks is proprietary OS and supported solely by its vendor - Wind River Systems https://www.windriver.com/

Please contact this company for VxWorks -related support.


Have a great day,
Alexander,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos