Ejemplo n.º 1
0
static int
ichsmb_pci_probe(device_t dev)
{
    /* Check PCI identifier */
    switch (pci_get_devid(dev)) {
    case ID_82801AA:
        device_set_desc(dev, "Intel 82801AA (ICH) SMBus controller");
        break;
    case ID_82801AB:
        device_set_desc(dev, "Intel 82801AB (ICH0) SMBus controller");
        break;
    case ID_82801BA:
        device_set_desc(dev, "Intel 82801BA (ICH2) SMBus controller");
        break;
    case ID_82801CA:
        device_set_desc(dev, "Intel 82801CA (ICH3) SMBus controller");
        break;
    case ID_82801DC:
        device_set_desc(dev, "Intel 82801DC (ICH4) SMBus controller");
        break;
    case ID_82801E:
        device_set_desc(dev, "Intel 82801E (C-ICH) SMBus controller");
        break;
    case ID_82801EB:
        device_set_desc(dev, "Intel 82801EB (ICH5) SMBus controller");
        break;
    case ID_82801FB:
        device_set_desc(dev, "Intel 82801FB (ICH6) SMBus controller");
        break;
    case ID_82801GB:
        device_set_desc(dev, "Intel 82801GB (ICH7) SMBus controller");
        break;
    case ID_82801H:
        device_set_desc(dev, "Intel 82801H (ICH8) SMBus controller");
        break;
    case ID_82801I:
        device_set_desc(dev, "Intel 82801I (ICH9) SMBus controller");
        break;
    case ID_82801JI:
        device_set_desc(dev, "Intel 82801JI (ICH10) SMBus controller");
        break;
    case ID_PCH:
        device_set_desc(dev, "Intel PCH SMBus controller");
        break;
    case ID_6300ESB:
        device_set_desc(dev, "Intel 6300ESB (ICH) SMBus controller");
        break;
    case ID_631xESB:
        device_set_desc(dev, "Intel 631xESB/6321ESB (ESB2) SMBus controller");
        break;
    default:
        return (ENXIO);
    }

    /* Done */
    return (ichsmb_probe(dev));
}
Ejemplo n.º 2
0
static int
ichsmb_pci_probe(device_t dev)
{
	const struct ichsmb_device *device;

	if (pci_get_vendor(dev) != PCI_VENDOR_INTEL)
		return (ENXIO);

	for (device = ichsmb_devices; device->name != NULL; device++) {
		if (pci_get_device(dev) == device->id) {
			device_set_desc(dev, device->name);
			return (ichsmb_probe(dev));
		}
	}

	return (ENXIO);
}
Ejemplo n.º 3
0
static int
ichsmb_pci_probe(device_t dev)
{
	/* Check PCI identifier */
	switch (pci_get_devid(dev)) {
	case ID_82801AA:
		device_set_desc(dev, "Intel 82801AA (ICH) SMBus controller");
		break;
	case ID_82801AB:
		device_set_desc(dev, "Intel 82801AB (ICH0) SMBus controller");
		break;
	case ID_82801BA:
		device_set_desc(dev, "Intel 82801BA (ICH2) SMBus controller");
		break;
	case ID_82801CA:
		device_set_desc(dev, "Intel 82801CA (ICH3) SMBus controller");
		break;
	case ID_82801DC:
		device_set_desc(dev, "Intel 82801DC (ICH4) SMBus controller");
		break;
	case ID_82801EB:
		device_set_desc(dev, "Intel 82801EB (ICH5) SMBus controller");
		break;
	default:
		if (pci_get_class(dev) == PCIC_SERIALBUS
		    && pci_get_subclass(dev) == PCIS_SERIALBUS_SMBUS
		    && pci_get_progif(dev) == PCIS_SERIALBUS_SMBUS_PROGIF) {
			device_set_desc(dev, "SMBus controller");
			return (-2);		/* XXX */
		}
		return (ENXIO);
	}

	/* Done */
	return (ichsmb_probe(dev));
}
Ejemplo n.º 4
0
static int
ichsmb_pci_probe(device_t dev)
{
	/* Check PCI identifier */
	switch (pci_get_devid(dev)) {
	case ID_82801AA:
		device_set_desc(dev, "Intel 82801AA (ICH) SMBus controller");
		break;
	case ID_82801AB:
		device_set_desc(dev, "Intel 82801AB (ICH0) SMBus controller");
		break;
	case ID_82801BA:
		device_set_desc(dev, "Intel 82801BA (ICH2) SMBus controller");
		break;
	case ID_82801CA:
		device_set_desc(dev, "Intel 82801CA (ICH3) SMBus controller");
		break;
	case ID_82801DC:
		device_set_desc(dev, "Intel 82801DC (ICH4) SMBus controller");
		break;
	case ID_82801EB:
		device_set_desc(dev, "Intel 82801EB (ICH5) SMBus controller");
		break;
	case ID_82801FB:
		device_set_desc(dev, "Intel 82801FB (ICH6) SMBus controller");
		break;
	case ID_82801GB:
		device_set_desc(dev, "Intel 82801GB (ICH7) SMBus controller");
		break;
	case ID_82801H:
		device_set_desc(dev, "Intel 82801H (ICH8) SMBus controller");
		break;
	case ID_82801I:
		device_set_desc(dev, "Intel 82801I (ICH9) SMBus controller");
		break;
	case ID_82801JI:
		device_set_desc(dev, "Intel 82801JI (ICH10) SMBus controller");
		break;
	case ID_PCH:
		device_set_desc(dev, "Intel PCH SMBus controller");
		break;
	case ID_6300ESB:
		device_set_desc(dev, "Intel 6300ESB (ICH) SMBus controller");
		break;
	case ID_631xESB:
		device_set_desc(dev, "Intel 631xESB/6321ESB (ESB2) SMBus controller");
		break;
	case ID_DH89XXCC:
		device_set_desc(dev, "Intel DH89xxCC SMBus controller");
		break;
	case ID_PATSBURG:
		device_set_desc(dev, "Intel Patsburg SMBus controller");
		break;
	case ID_CPT:
		device_set_desc(dev, "Intel Cougar Point SMBus controller");
		break;
	case ID_PPT:
		device_set_desc(dev, "Intel Panther Point SMBus controller");
		break;
	case ID_AVOTON:
		device_set_desc(dev, "Intel Avoton SMBus controller");
		break;
	case ID_LPT:
		device_set_desc(dev, "Intel Lynx Point SMBus controller");
		break;
	case ID_COLETOCRK:
		device_set_desc(dev, "Intel Coleto Creek SMBus controller");
		break;
	default:
		return (ENXIO);
	}

	/* Done */
	return (ichsmb_probe(dev));
}