Esempio n. 1
0
void
ia64ScanPCIWrapper(scanpciWrapperOpt flags)
{
    static IA64Chipset chipset = NONE_CHIPSET;
    
    if (flags == SCANPCI_INIT) {

	/* PCI configuration space probes should be done first */
	if (xorgProbe460GX(flags)) {
	    chipset = I460GX_CHIPSET;
	    xf86PreScan460GX();	
	    return;
	} else if (xorgProbeE8870(flags)) {
	    chipset = E8870_CHIPSET;
	    xf86PreScanE8870();
	    return;
	}
#ifdef OS_PROBE_PCI_CHIPSET
	chipset = OS_PROBE_PCI_CHIPSET(flags);
	switch (chipset) {
	    case ZX1_CHIPSET:
		xf86PreScanZX1();
		return;
	    case ALTIX_CHIPSET:
		xf86PreScanAltix();
		return;
	    default:
		return;
	}
#endif
    } else /* if (flags == SCANPCI_TERM) */ {

	switch (chipset) {
	    case I460GX_CHIPSET:
		xf86PostScan460GX();
		return;
	    case E8870_CHIPSET:
		xf86PostScanE8870();
		return;
	    case ZX1_CHIPSET:
		xf86PostScanZX1();
		return;
	    case ALTIX_CHIPSET:
		xf86PostScanAltix();
		return;
	    default:
		return;
	}
    }
}
Esempio n. 2
0
void
ia64ScanPCIWrapper(scanpciWrapperOpt flags)
{

    if (flags == SCANPCI_INIT) {

	/* PCI configuration space probes should be done first */
	if (xf86PreScan460GX())
	    return;
	if (xf86PreScanE8870())
	    return;
	if (xf86PreScanZX1())
	    return;

    } else /* if (flags == SCANPCI_TERM) */ {

	xf86PostScan460GX();
	xf86PostScanE8870();
	xf86PostScanZX1();

    }

}