Home | History | Annotate | Download | only in block

Lines Matching refs:chs

356  * if the position is outside the specified geometry, fill maximum value for CHS
359 static int sector2CHS(BlockDriverState* bs, mbr_chs_t * chs, int spos){
365 it happens if 32bit sector positions are used, while CHS is only 24bit.
366 Windows/Dos is said to take 1023/255/63 as nonrepresentable CHS */
367 chs->head = 0xFF;
368 chs->sector = 0xFF;
369 chs->cylinder = 0xFF;
372 chs->head = (uint8_t)head;
373 chs->sector = (uint8_t)( (sector+1) | ((spos>>8)<<6) );
374 chs->cylinder = (uint8_t)spos;
392 /* LBA is used when partition is outside the CHS geometry */
396 /*LBA partitions are identified only by start/length_sector_long not by CHS*/
402 probably to prevent older versions from using CHS on them */
1076 /* for some reason or other, MS-DOS does not like to know about CHS... */