/* This routine checks the status of the last configuration cycle. If an error was detected it returns a 1, else it returns a 0. The errors being checked are parity, master abort, target abort (master and target). These types of errors occur during a config cycle where there is no device, like during the discovery stage.  */
static int iop3xx_pci_status(void)
/* This routine checks the status of the last configuration cycle. If an error was detected it returns a 1, else it returns a 0. The errors being checked are parity, master abort, target abort (master and target). These types of errors occur during a config cycle where there is no device, like during the discovery stage.  */
static int iop3xx_pci_status(void)
{
	unsigned int status;
	int ret = 0;
	status = *IOP3XX_ATUSR;
	if (status & 0xf900) {
		DBG("\t\t\tPCI: P0 - status = 0x%08x\n", status);
		*IOP3XX_ATUSR = status & 0xf900;
		ret = 1;
	}
	status = *IOP3XX_ATUISR;
	if (status & 0x679f) {
		DBG("\t\t\tPCI: P1 - status = 0x%08x\n", status);
		*IOP3XX_ATUISR = status & 0x679f;
		ret = 1;
	}
	return ret;
}