Hello,
I am using VMWare to boot up VxWorks OS and enable AM79C97X network adapter. However, the driver reports "lnPci0: failed to enter suspend mode". After entering OS, the network actually doesn’t work so it prevents us to connect from host machine. I guess VMWare could not full emulate the functionality for lnPciCsrRead (pDev, LNPCI_CSR5) so it's time out. The error was reported from attached am79c97xVxbEnd.c line 2035.
LOCAL void lnPciEndRxConfig
(
LNPCI_DRV_CTRL * pDrvCtrl
)
{
UINT16 *pAddr;
VXB_DEVICE_ID pDev;
int i;
pDev = pDrvCtrl->lnPciDev;
/* Suspend the controller, if needed */
if ((lnPciCsrRead (pDev, LNPCI_CSR0) & LNPCI_CSR0_STOP) == 0)
{
LNPCI_CSR_SETBIT (pDev, LNPCI_CSR5, LNPCI_CSR5_SPND);
for (i = 0; i < LNPCI_TIMEOUT; i++)
if (lnPciCsrRead (pDev, LNPCI_CSR5) & LNPCI_CSR5_SPND)
break;
if (i == LNPCI_TIMEOUT)
{
logMsg("%s%d: failed to enter suspend mode\n",
(int)LNPCI_NAME, pDev->unitNumber, 0, 0, 0, 0);
return;
}
}
/*
*/
}