/* All four ethernets are brought out to connectors; six serial ports (a pair from each of the first three IOC3s) are brought out to MiniDINs; all other subdevices are left swinging in the wind, leave them disabled.  */
static int ioc3_adjacent_is_ioc3(struct pci_dev *pdev, int slot)
/* All four ethernets are brought out to connectors; six serial ports (a pair from each of the first three IOC3s) are brought out to MiniDINs; all other subdevices are left swinging in the wind, leave them disabled.  */
static int ioc3_adjacent_is_ioc3(struct pci_dev *pdev, int slot)
{
	struct pci_dev *dev = pci_get_slot(pdev->bus, PCI_DEVFN(slot, 0));
	int ret = 0;
	if (dev) {
		if (dev->vendor == PCI_VENDOR_ID_SGI &&
			dev->device == PCI_DEVICE_ID_SGI_IOC3)
			ret = 1;
		pci_dev_put(dev);
	}
	return ret;
}