/* Fill in the data and return the structure to the calling
* program
*/
- if ((int)ioc->chip_type <= (int) FC929)
+ if (ioc->bus_type == FC)
karg->adapterType = MPT_IOCTL_INTERFACE_FC;
else
karg->adapterType = MPT_IOCTL_INTERFACE_SCSI;
#ifdef MFCNT
karg.chip_type = ioc->mfcnt;
#else
- karg.chip_type = ioc->chip_type;
+ karg.chip_type = ioc->pcidev->device;
#endif
strncpy (karg.name, ioc->name, MPT_MAX_NAME);
karg.name[MPT_MAX_NAME-1]='\0';
karg.base_io_addr = pci_resource_start(pdev, 0);
- if ((int)ioc->chip_type <= (int) FC929)
+ if (ioc->bus_type == FC)
karg.bus_phys_width = HP_BUS_WIDTH_UNK;
else
karg.bus_phys_width = HP_BUS_WIDTH_16;
/* There is nothing to do for FCP parts.
*/
- if ((int) ioc->chip_type <= (int) FC929)
+ if (ioc->bus_type == FC)
return 0;
if ((ioc->spi_data.sdp0length == 0) || (ioc->sh == NULL))