FreeBSD/sys/dev/tws/tws.c
/*
 * Compare the device ID of this device against the IDs that this driver
 * supports.  If there is a match, set the description and return success.
 */
Compare the device ID of this device against the IDs that this driver
supports.  If there is a match, set the description and return success.
Compare the device ID of this device against the IDs that this driver supports . If there is a match set the description and return success .
static int
tws_probe(device_t dev)
{
    static u_int8_t first_ctlr = 1;
    if ((pci_get_vendor(dev) == TWS_VENDOR_ID) &&
        (pci_get_device(dev) == TWS_DEVICE_ID)) {
        device_set_desc(dev, "LSI 3ware SAS/SATA Storage Controller");
        if (first_ctlr) {
            printf("LSI 3ware device driver for SAS/SATA storage "
                    "controllers, version: %s\n", TWS_DRIVER_VERSION_STRING);
            first_ctlr = 0;
        }
        return(BUS_PROBE_DEFAULT);
    }
    return (ENXIO);
}
static int tws_probe ( device_t dev ) { static u_int8_t first_ctlr = 1 ; if ( ( pci_get_vendor ( dev ) == TWS_VENDOR_ID ) && ( pci_get_device ( dev ) == TWS_DEVICE_ID ) ) { device_set_desc ( dev , " " ) ; if ( first_ctlr ) { printf ( " " " \n " , TWS_DRIVER_VERSION_STRING ) ; first_ctlr = 0 ; } return ( BUS_PROBE_DEFAULT ) ; } return ( ENXIO ) ; }
Compare the device ID of this device against the IDs that this driver
 supports.
Compare the device ID of this device against the IDs that this driver supports .