Lines Matching refs:sector
2964 Bit16u ata_cmd_data_in(device, command, count, cylinder, head, sector, lba_low, lba_high, segment, …
2965 Bit16u device, command, count, cylinder, head, sector, segment, offset;
2994 if (sector == 0) {
3005 sector = (Bit16u) (lba_low & 0x000000ffL);
3012 outb(iobase1 + ATA_CB_SN, sector);
3043 ;; adjust if there will be an overrun. 2K max sector size
3113 Bit16u ata_cmd_data_out(device, command, count, cylinder, head, sector, lba_low, lba_high, segment,…
3114 Bit16u device, command, count, cylinder, head, sector, segment, offset;
3143 if (sector == 0) {
3154 sector = (Bit16u) (lba_low & 0x000000ffL);
3161 outb(iobase1 + ATA_CB_SN, sector);
3192 ;; adjust if there will be an overrun. 2K max sector size
5430 Bit16u cylinder, head, sector;
5478 sector = (GET_CL() & 0x3f);
5484 if ((count > 128) || (count == 0) || (sector == 0)) {
5494 if( (cylinder >= nlc) || (head >= nlh) || (sector > nlspt )) {
5495 …disk: function %02x, parameters out of range %04x/%04x/%04x!\n", GET_AH(), cylinder, head, sector);
5507 …lba_low = ((((Bit32u)cylinder * (Bit32u)nlh) + (Bit32u)head) * (Bit32u)nlspt) + (Bit32u)sector - 1;
5509 sector = 0; // this forces the command to be lba
5513 …status=ata_cmd_data_in(device, ATA_CMD_READ_SECTORS, count, cylinder, head, sector, lba_low, lba_h…
5515 …status=ata_cmd_data_out(device, ATA_CMD_WRITE_SECTORS, count, cylinder, head, sector, lba_low, lba…
6264 Bit16u head, sector, cylinder, nbsectors;
6325 sector = GET_CL() & 0x003f;
6336 if ((sector > vspt)
6349 vlba=((((Bit32u)cylinder*(Bit32u)vheads)+(Bit32u)head)*(Bit32u)vspt)+((Bit32u)(sector-1));
6462 outLBA(cylinder,hd_heads,head,hd_sectors,sector,dl)
6467 Bit16u sector;
6518 Bit8u drive, num_sectors, sector, head, status, mod;
6588 sector = (GET_CL() & 0x3f);
6613 (sector > hd_sectors) ||
6641 BX_DEBUG_INT13_HD("CHS: %x %x %x\n", cylinder, head, sector);
6642 outLBA(cylinder,hd_heads,head,hd_sectors,sector,drive);
6645 outb(0x01f3, sector);
6735 sector = (GET_CL() & 0x3f);
6759 (sector > hd_sectors) ||
6782 BX_DEBUG_INT13_HD("CHS (write): %x %x %x\n", cylinder, head, sector);
6783 outLBA(cylinder,hd_heads,head,hd_sectors,sector,GET_ELDL());
6786 outb(0x01f3, sector);
7363 Bit8u drive, num_sectors, track, sector, head, status;
7416 sector = GET_CL();
7420 if ((drive > 1) || (head > 1) || (sector == 0) ||
7518 outb(0x03f5, sector);
7520 outb(0x03f5, sector + num_sectors - 1); // last sector to read on track
7652 outb(0x03f5, sector);
7654 outb(0x03f5, sector + num_sectors - 1); // last sector to write on track
8290 mov ah, #0x02 ;; function 2, read diskette sector
8291 mov al, #0x01 ;; read 1 sector
8293 mov cl, #0x01 ;; sector 1
8295 int #0x13 ;; read sector
8932 mov 0x0447, al ;; diskette controller sector number