Lines Matching defs:head
2248 #define ATA_CB_DH 6 // device head in/out pio_base_addr1+6
2277 // bits 7-4 of the device/head (CB_DH) reg
2656 // If we max out the head count
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;
2896 head = ((Bit16u) ((lba_low>>24) & 0x0000000fL)) | ATA_CB_DH_LBA;
2904 outb(iobase1 + ATA_CB_DH, (slave ? ATA_CB_DH_DEV1 : ATA_CB_DH_DEV0) | (Bit8u) head );
3004 head, sector, lba_low, lba_high, segment, offset)
3005 Bit16u device, command, count, cylinder, head, sector, segment, offset;
3047 head = ((Bit16u) ((lba_low>>24) & 0x0000000fL)) | ATA_CB_DH_LBA;
3055 outb(iobase1 + ATA_CB_DH, (slave ? ATA_CB_DH_DEV1 : ATA_CB_DH_DEV0) | (Bit8u) head );
5217 Bit16u cylinder, head, sector;
5266 head = GET_DH();
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;
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);
6051 Bit16u head, sector, cylinder, nbsectors;
6114 head = GET_DH();
6125 || (head >= vheads)) {
6136 vlba=((((Bit32u)cylinder*(Bit32u)vheads)+(Bit32u)head)*(Bit32u)vspt)+((Bit32u)(sector-1));
6249 outLBA(cylinder,hd_heads,head,hd_sectors,sector,dl)
6252 Bit16u head;
6269 mov bl,8[bp] // head
6305 Bit8u drive, num_sectors, sector, head, status, mod;
6376 head = GET_DH();
6393 ax = head / hd_heads;
6395 head = ax >> 8;
6401 (head >= hd_heads) ) {
6411 if (head > 15)
6412 BX_PANIC("hard drive BIOS:(read/verify) head > 15\n");
6428 BX_DEBUG_INT13_HD("CHS: %x %x %x\n", cylinder, head, sector);
6429 outLBA(cylinder,hd_heads,head,hd_sectors,sector,drive);
6435 outb(0x01f6, 0xa0 | ((drive & 0x01)<<4) | (head & 0x0f));
6523 head = GET_DH();
6539 ax = head / hd_heads;
6541 head = ax >> 8;
6547 (head >= hd_heads) ) {
6557 if (head > 15)
6558 BX_PANIC("hard drive BIOS:(read) head > 15\n");
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());
6576 outb(0x01f6, 0xa0 | ((GET_ELDL() & 0x01)<<4) | (head & 0x0f));
7150 Bit8u drive, num_sectors, track, sector, head, status;
7204 head = GET_DH();
7207 if ((drive > 1) || (head > 1) || (sector == 0) ||
7302 outb(0x03f5, (head << 2) | drive); // HD DR1 DR2
7304 outb(0x03f5, head);
7436 outb(0x03f5, (head << 2) | drive); // HD DR1 DR2
7438 outb(0x03f5, head);
7534 head = GET_DH();
7537 if ((drive > 1) || (head > 1) || (track > 79) ||
7603 outb(0x03f5, (head << 2) | drive); // HD DR1 DR2
7715 SET_DH(0); // max head #
7720 SET_DH(1); // max head #
7725 SET_DH(1); // max head #
7730 SET_DH(1); // max head #
7735 SET_DH(1); // max head #
7740 SET_DH(1); // max head #
7745 SET_DH(0); // max head #
7750 SET_DH(0); // max head #
7755 SET_DH(1); // max head #
8070 mov dh, #0x00 ;; head 0
8702 mov 0x0446, al ;; diskette controller head number
10532 /* keyboard head of buffer pointer */
10985 db 0x02 ;; head load time 0000001, DMA used
11017 db 0x02 ;; head load time 0000001, DMA used