scsicam_bios_param — Determine geometry of a disk in cylinders/heads/sectors.
int scsicam_bios_param ( | struct block_device * bdev, |
sector_t capacity, | |
int * ip) ; |
bdev
which device
capacity
size of the disk in sectors
ip
return value: ip[0]=heads, ip[1]=sectors, ip[2]=cylinders