case L1_BRICKTYPE_IX: case L1_BRICKTYPE_PX: case L1_BRICKTYPE_IA: case L1_BRICKTYPE_PA: return 1; break; default: return -EPERM; break; 
case L1_BRICKTYPE_IX: case L1_BRICKTYPE_PX: case L1_BRICKTYPE_IA: case L1_BRICKTYPE_PA: return 1; break; default: return -EPERM; break; 
static int sn_pci_bus_valid(struct pci_bus *pci_bus){	struct pcibus_info *pcibus_info;	int asic_type;	int bricktype;	pcibus_info = SN_PCIBUS_BUSSOFT_INFO(pci_bus);	/* Don't register slots hanging off the TIOCA bus */	asic_type = pcibus_info->pbi_buscommon.bs_asic_type;	if (asic_type == PCIIO_ASIC_TYPE_TIOCA)		return -EPERM;	/* Only register slots in I/O Bricks that support hotplug */	bricktype = MODULE_GET_BTYPE(pcibus_info->pbi_moduleid);	switch (bricktype) {	case L1_BRICKTYPE_IX:	case L1_BRICKTYPE_PX:	case L1_BRICKTYPE_IA:	case L1_BRICKTYPE_PA:		return 1;		break;	default:		return -EPERM;		break;	}	return -EIO;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1d2450a4a6eb656798c6282b5ffc8e5f9f52ac14/sgi_hotplug.c/clean/drivers/pci/hotplug/sgi_hotplug.c