Home | History | Annotate | Download | only in bios

Lines Matching refs:sector

112 //   - could send the multiple-sector read/write commands
2244 #define ATA_CB_SC 2 // sector count in/out pio_base_addr1+2
2245 #define ATA_CB_SN 3 // sector number in/out pio_base_addr1+3
2271 // ATAPI Interrupt Reason bits in the Sector Count reg (CB_SC)
2853 Bit16u ata_cmd_data_in(device, command, count, cylinder, head, sector, lba_low, lba_high, segment, offset)
2854 Bit16u device, command, count, cylinder, head, sector, segment, offset;
2882 // sector will be 0 only on lba access. Convert to lba-chs
2883 if (sector == 0) {
2894 sector = (Bit16u) (lba_low & 0x000000ffL);
2901 outb(iobase1 + ATA_CB_SN, sector);
2933 ;; adjust if there will be an overrun. 2K max sector size
3004 sector, lba_low, lba_high, segment, offset)
3005 Bit16u device, command, count, cylinder, head, sector, segment, offset;
3033 // sector will be 0 only on lba access. Convert to lba-chs
3034 if (sector == 0) {
3045 sector = (Bit16u) (lba_low & 0x000000ffL);
3052 outb(iobase1 + ATA_CB_SN, sector);
3084 ;; adjust if there will be an overrun. 2K max sector size
3511 printf("Unsupported sector size %u\n", block_len);
3523 sectors <<= 2; /* # of sectors in 512-byte "soft" sector */
5217 Bit16u cylinder, head, sector;
5265 sector = (GET_CL() & 0x3f);
5271 if ((count > 128) || (count == 0) || (sector == 0)) {
5281 if( (cylinder >= nlc) || (head >= nlh) || (sector > nlspt )) {
5282 BX_INFO("int13_harddisk: function %02x, parameters out of range %04x/%04x/%04x!\n", GET_AH(), cylinder, head, sector);
5294 lba_low = ((((Bit32u)cylinder * (Bit32u)nlh) + (Bit32u)head) * (Bit32u)nlspt) + (Bit32u)sector - 1;
5296 sector = 0; // this forces the command to be lba
5300 status=ata_cmd_data_in(device, ATA_CMD_READ_SECTORS, count, cylinder, head, sector, lba_low, lba_high, segment, offset);
5302 status=ata_cmd_data_out(device, ATA_CMD_WRITE_SECTORS, count, cylinder, head, sector, lba_low, lba_high, segment, offset);
5304 // Set nb of sector transferred
5330 nlc = nlc - 2; /* 0 based , last sector not used */
5363 // Compute sector count seen by int13
6051 Bit16u head, sector, cylinder, nbsectors;
6112 sector = GET_CL() & 0x003f;
6119 // no sector to read ?
6123 if ((sector > vspt)
6136 vlba=((((Bit32u)cylinder*(Bit32u)vheads)+(Bit32u)head)*(Bit32u)vspt)+((Bit32u)(sector-1));
6249 outLBA(cylinder,hd_heads,head,hd_sectors,sector,dl)
6254 Bit16u sector;
6273 mov bl,12[bp] // sector
6305 Bit8u drive, num_sectors, sector, head, status, mod;
6375 sector = (GET_CL() & 0x3f);
6400 (sector > hd_sectors) ||
6428 BX_DEBUG_INT13_HD("CHS: %x %x %x\n", cylinder, head, sector);
6429 outLBA(cylinder,hd_heads,head,hd_sectors,sector,drive);
6432 outb(0x01f3, sector);
6522 sector = (GET_CL() & 0x3f);
6546 (sector > hd_sectors) ||
6569 BX_DEBUG_INT13_HD("CHS (write): %x %x %x\n", cylinder, head, sector);
6570 outLBA(cylinder,hd_heads,head,hd_sectors,sector,GET_ELDL());
6573 outb(0x01f3, sector);
7150 Bit8u drive, num_sectors, track, sector, head, status;
7203 sector = GET_CL();
7207 if ((drive > 1) || (head > 1) || (sector == 0) ||
7305 outb(0x03f5, sector);
7306 outb(0x03f5, 2); // 512 byte sector size
7307 outb(0x03f5, sector + num_sectors - 1); // last sector
7439 outb(0x03f5, sector);
7440 outb(0x03f5, 2); // 512 byte sector size
7441 outb(0x03f5, sector + num_sectors - 1); // last sector to write on track
7604 outb(0x03f5, 2); // 512 byte sector size
8066 mov ah, #0x02 ;; function 2, read diskette sector
8067 mov al, #0x01 ;; read 1 sector
8069 mov cl, #0x01 ;; sector 1
8071 int #0x13 ;; read sector
8089 /* Always check the signature on a HDD boot sector; on FDD, only do
8703 mov 0x0447, al ;; diskette controller sector number