FreeBSD/sys/dev/qlxge/qls_os.c
/*
 * Name:	qls_pci_probe
 * Function:	Validate the PCI device to be a QLA80XX device
 */
qls_pci_probe
Function:    Validate the PCI device to be a QLA80XX device
qls_pci_probe Function : Validate the PCI device to be a QLA80XX device
static int
qls_pci_probe(device_t dev)
{
        switch ((pci_get_device(dev) << 16) | (pci_get_vendor(dev))) {
        case PCI_QLOGIC_DEV8000:
		snprintf(dev_str, sizeof(dev_str), "%s v%d.%d.%d",
			"Qlogic ISP 8000 PCI CNA Adapter-Ethernet Function",
			QLA_VERSION_MAJOR, QLA_VERSION_MINOR,
			QLA_VERSION_BUILD);
		snprintf(ver_str, sizeof(ver_str), "v%d.%d.%d",
			QLA_VERSION_MAJOR, QLA_VERSION_MINOR,
			QLA_VERSION_BUILD);
                device_set_desc(dev, dev_str);
                break;
        default:
                return (ENXIO);
        }
        if (bootverbose)
                printf("%s: %s\n ", __func__, dev_str);
        return (BUS_PROBE_DEFAULT);
}
static int qls_pci_probe ( device_t dev ) { switch ( ( pci_get_device ( dev ) << 16 ) | ( pci_get_vendor ( dev ) ) ) { case PCI_QLOGIC_DEV8000 : snprintf ( dev_str , sizeof ( dev_str ) , " " , " " , QLA_VERSION_MAJOR , QLA_VERSION_MINOR , QLA_VERSION_BUILD ) ; snprintf ( ver_str , sizeof ( ver_str ) , " " , QLA_VERSION_MAJOR , QLA_VERSION_MINOR , QLA_VERSION_BUILD ) ; device_set_desc ( dev , dev_str ) ; break ; default : return ( ENXIO ) ; } if ( bootverbose ) printf ( " \n " , __func__ , dev_str ) ; return ( BUS_PROBE_DEFAULT ) ; }
Name:        qls_pci_probe
 Function:    Validate the PCI device to be a QLA80XX device
Name : qls_pci_probe Function : Validate the PCI device to be a QLA80XX device