scsi_partsize — Parse cylinders/heads/sectors from PC partition table
int scsi_partsize ( | unsigned char * | buf, |
| unsigned long | capacity, | |
| unsigned int * | cyls, | |
| unsigned int * | hds, | |
| unsigned int * | secs); |
buf
partition table, see scsi_bios_ptable
capacitysize of the disk in sectors
cylsput cylinders here
hdsput heads here
secsput sectors here