channel = sdev->channel; 
channel = sdev_channel(sdev); 
ahc_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev,		    sector_t capacity, int geom[]){	uint8_t *bh;	int	 heads;	int	 sectors;	int	 cylinders;	int	 ret;	int	 extended;	struct	 ahc_softc *ahc;	u_int	 channel;	ahc = *((struct ahc_softc **)sdev->host->hostdata);	channel = sdev->channel;	bh = scsi_bios_ptable(bdev);	if (bh) {		ret = scsi_partsize(bh, capacity,				    &geom[2], &geom[0], &geom[1]);		kfree(bh);		if (ret != -1)			return (ret);	}	heads = 64;	sectors = 32;	cylinders = aic_sector_div(capacity, heads, sectors);	if (aic7xxx_extended != 0)		extended = 1;	else if (channel == 0)		extended = (ahc->flags & AHC_EXTENDED_TRANS_A) != 0;	else		extended = (ahc->flags & AHC_EXTENDED_TRANS_B) != 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);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/422c0d61d591cbfb70f029e13505fb437e169d68/aic7xxx_osm.c/buggy/drivers/scsi/aic7xxx/aic7xxx_osm.c