Lines Matching refs:track
451 uint8_t drive, num_sectors, track, sector, head;
508 track = GET_CH();
609 outb(0x03f5, track);
613 outb(0x03f5, sector + num_sectors - 1); // last sector to read on track
678 // ??? should track be new val from return_status[3] ?
679 set_diskette_current_cyl(drive, track);
746 outb(0x03f5, track);
750 outb(0x03f5, sector + num_sectors - 1); // last sector to write on track
817 // ??? should track be new val from return_status[3] ?
818 set_diskette_current_cyl(drive, track);
826 // ??? should track be new val from return_status[3] ?
827 set_diskette_current_cyl(drive, track);
835 case 0x05: // format diskette track
839 track = GET_CH();
843 if ((drive > 1) || (head > 1) || (track > 79) ||
911 outb(0x03f5, track);
913 // send format-track command (6 bytes) to controller
914 outb(0x03f5, 0x4d); // 4d: format track
917 outb(0x03f5, num_sectors); // number of sectors per track
1193 track = ((val8 >> 6) << 8) + GET_CH(); // max cylinder number (max cylinders - 1)
1195 BX_DEBUG_INT13_FL("floppy f18 - drive: %d, max cylinder/track number: %d, sectors-per-tracks: %d\n",
1196 drive, track, num_sectors);
1239 if (track == 39 && num_sectors == 9)
1244 if (track == 39 && num_sectors == 9) { // 360K disk in 1.2M drive
1246 } else if (track == 79 && num_sectors == 15) { // 1.2M disk in 1.2M drive
1251 if (track == 79 && num_sectors == 9)
1256 if (track == 79) {
1265 if (track == 79) {
1281 // Error - assume requested tracks/sectors-per-track not supported