switch (dev->hca_type) { case TAVOR:        return sprintf(buf, "MT23108\n"); case ARBEL_COMPAT: return sprintf(buf, "MT25208 (MT23108 compat mode)\n"); case ARBEL_NATIVE: return sprintf(buf, "MT25208\n"); default:           return sprintf(buf, "unknown\n"); 
switch (dev->pdev->device) { case PCI_DEVICE_ID_MELLANOX_TAVOR: return sprintf(buf, "MT23108\n"); case PCI_DEVICE_ID_MELLANOX_ARBEL_COMPAT: return sprintf(buf, "MT25208 (MT23108 compat mode)\n"); case PCI_DEVICE_ID_MELLANOX_ARBEL: return sprintf(buf, "MT25208\n"); case PCI_DEVICE_ID_MELLANOX_SINAI: case PCI_DEVICE_ID_MELLANOX_SINAI_OLD: return sprintf(buf, "MT25204\n"); default: return sprintf(buf, "unknown\n"); 
static ssize_t show_hca(struct class_device *cdev, char *buf){	struct mthca_dev *dev = container_of(cdev, struct mthca_dev, ib_dev.class_dev);	switch (dev->hca_type) {	case TAVOR:        return sprintf(buf, "MT23108\n");	case ARBEL_COMPAT: return sprintf(buf, "MT25208 (MT23108 compat mode)\n");	case ARBEL_NATIVE: return sprintf(buf, "MT25208\n");	default:           return sprintf(buf, "unknown\n");	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/68a3c21203b73696769dfdceb68d2d7f5d3c20a0/mthca_provider.c/buggy/drivers/infiniband/hw/mthca/mthca_provider.c