/* */
/****************************************************************************/
static int
+#if LINUX_VERSION_CODE < LinuxVersionCode(2,5,0)
+ips_biosparam(Disk *disk, kdev_t dev, int geom[]) {
+ ips_ha_t *ha = (ips_ha_t *) disk->device->host->hostdata;
+ unsigned long capacity = disk->capacity;
+#else
ips_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sector_t capacity, int geom[]) {
- ips_ha_t *ha;
+ ips_ha_t *ha = (ips_ha_t *) sdev->host->hostdata;
+#endif
int heads;
int sectors;
int cylinders;
METHOD_TRACE("ips_biosparam", 1);
- ha = (ips_ha_t *) sdev->host->hostdata;
-
if (!ha)
/* ?!?! host adater info invalid */
return (0);
return (0);
}
-
+#if LINUX_VERSION_CODE < LinuxVersionCode(2,5,0)
/****************************************************************************/
/* */
/* Routine Name: ips_select_queue_depth */
/* Select queue depths for the devices on the contoller */
/* */
/****************************************************************************/
-/*static void
+static void
ips_select_queue_depth(struct Scsi_Host *host, Scsi_Device *scsi_devs) {
Scsi_Device *device;
ips_ha_t *ha;
}
}
}
-*/
+#else
/****************************************************************************/
/* */
/* Routine Name: ips_slave_configure */
}
return 0;
}
+#endif
/****************************************************************************/
/* */