/* A small number of vendors implemented early PCI ATA interfaces on bridge logic without the ATA interface being PCI visible. Where we have a matching PCI driver we must skip the relevant device here. If we don't know about it then the legacy driver is the right driver anyway.  */
static void __init legacy_check_special_cases(struct pci_dev *p, int *primary, int *secondary)
/* A small number of vendors implemented early PCI ATA interfaces on bridge logic without the ATA interface being PCI visible. Where we have a matching PCI driver we must skip the relevant device here. If we don't know about it then the legacy driver is the right driver anyway.  */
static void __init legacy_check_special_cases(struct pci_dev *p, int *primary, int *secondary)
{
	if (p->vendor == 0x1078 && p->device == 0x0000) {
		*primary = *secondary = 1;
		return;
	}
	if (p->vendor == 0x1078 && p->device == 0x0002) {
		*primary = *secondary = 1;
		return;
	}
	if (p->vendor == 0x8086 && p->device == 0x1234) {
		u16 r;
		pci_read_config_word(p, 0x6C, &r);
		if (r & 0x8000) {
			if (r & 0x4000)
				*secondary = 1;
			else
				*primary = 1;
		}
		return;
	}
}