int gdth_bios_param(Disk *disk,kdev_t dev,int *ip) 
static int gdth_bios_param(Disk *disk,kdev_t dev,int *ip) 
int gdth_bios_param(struct scsi_device *sdev,struct block_device *bdev,sector_t cap,int *ip)#elseint gdth_bios_param(Disk *disk,kdev_t dev,int *ip)#endif{    unchar b, t;    int hanum;    gdth_ha_str *ha;    struct scsi_device *sd;    unsigned capacity;#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)    sd = sdev;    capacity = cap;#else    sd = disk->device;    capacity = disk->capacity;#endif    hanum = NUMDATA(sd->host)->hanum;    b = virt_ctr ? NUMDATA(sd->host)->busnum : sd->channel;    t = sd->id;    TRACE2(("gdth_bios_param() ha %d bus %d target %d\n", hanum, b, t));     ha = HADATA(gdth_ctr_tab[hanum]);    if (b != ha->virt_bus || ha->hdr[t].heads == 0) {        /* raw device or host drive without mapping information */        TRACE2(("Evaluate mapping\n"));        gdth_eval_mapping(capacity,&ip[2],&ip[0],&ip[1]);    } else {        ip[0] = ha->hdr[t].heads;        ip[1] = ha->hdr[t].secs;        ip[2] = capacity / ip[0] / ip[1];    }    TRACE2(("gdth_bios_param(): %d heads, %d secs, %d cyls\n",            ip[0],ip[1],ip[2]));    return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8e8790415e91964096f862a58cacb55d2bc9a817/gdth.c/buggy/drivers/scsi/gdth.c