#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) 
ahd_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev,		    sector_t capacity, int geom[]){	uint8_t *bh;#elseahd_linux_biosparam(Disk *disk, kdev_t dev, int geom[]){	struct	scsi_device *sdev = disk->device;	u_long	capacity = disk->capacity;	struct	buffer_head *bh;#endif	int	 heads;	int	 sectors;	int	 cylinders;	int	 ret;	int	 extended;	struct	 ahd_softc *ahd;	ahd = *((struct ahd_softc **)sdev->host->hostdata);#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)	bh = scsi_bios_ptable(bdev);#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,17)	bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, block_size(dev));#else	bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, 1024);#endif	if (bh) {		ret = scsi_partsize(bh, capacity,				    &geom[2], &geom[0], &geom[1]);#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)		kfree(bh);#else		brelse(bh);#endif		if (ret != -1)			return (ret);	}	heads = 64;	sectors = 32;	cylinders = aic_sector_div(capacity, heads, sectors);	if (aic79xx_extended != 0)		extended = 1;	else		extended = (ahd->flags & AHD_EXTENDED_TRANS_A) != 0;	if (extended && cylinders >= 1024) {		heads = 255;		sectors = 63;		cylinders = aic_sector_div(capacity, heads, sectors);	}	geom[0] = heads;	geom[1] = sectors;	geom[2] = cylinders;	return (0);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/60a13213840296b1e32d6781653a0eaa83d04382/aic79xx_osm.c/clean/drivers/scsi/aic7xxx/aic79xx_osm.c