Home | History | Annotate | Download | only in bios

Lines Matching refs:heads

629     Bit16u heads;      // # heads
758 Bit32u heads;
2401 write_word(ebda_seg,&EbdaData->ata.devices[device].lchs.heads,0);
2404 write_word(ebda_seg,&EbdaData->ata.devices[device].pchs.heads,0);
2572 Bit16u cylinders, heads, spt, blksize;
2587 heads = read_word(get_SS(),buffer+(3*2)); // word 3
2602 write_word(ebda_seg,&EbdaData->ata.devices[device].pchs.heads, heads);
2607 BX_INFO("ata%d-%d: PCHS=%u/%d/%d translation=", channel, slave,cylinders, heads, spt);
2635 heads = sectors_low / 1024;
2636 if (heads>128) heads = 255;
2637 else if (heads>64) heads = 128;
2638 else if (heads>32) heads = 64;
2639 else if (heads>16) heads = 32;
2640 else heads=16;
2641 cylinders = sectors_low / heads;
2645 if (heads==16) {
2647 heads=15;
2654 heads <<= 1;
2657 if (heads > 127) break;
2663 BX_INFO(" LCHS=%d/%d/%d\n", cylinders, heads, spt);
2665 write_word(ebda_seg,&EbdaData->ata.devices[device].lchs.heads, heads);
3697 write_word(ebda_seg,&EbdaData->cdemu.vdevice.heads,2);
3702 write_word(ebda_seg,&EbdaData->cdemu.vdevice.heads,2);
3707 write_word(ebda_seg,&EbdaData->cdemu.vdevice.heads,2);
3713 write_word(ebda_seg,&EbdaData->cdemu.vdevice.heads,read_byte(boot_segment,446+5) + 1);
5277 nlh = read_word(ebda_seg, &EbdaData->ata.devices[device].lchs.heads);
5280 // sanity check on cyl heads, sec
5289 nph = read_word(ebda_seg, &EbdaData->ata.devices[device].pchs.heads);
5326 nlh = read_word(ebda_seg, &EbdaData->ata.devices[device].lchs.heads);
5360 nlh = read_word(ebda_seg, &EbdaData->ata.devices[device].lchs.heads);
5447 nph = read_word(ebda_seg, &EbdaData->ata.devices[device].pchs.heads);
5464 write_dword(DS, SI+(Bit16u)&Int13DPT->heads, (Bit32u)nph);
5809 Bit16u cylinders, heads, spt, blksize;
5816 write_dword(DS, SI+(Bit16u)&Int13DPT->heads, 0xffffffff);
6006 write_byte(DS,SI+0x12,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.heads));
6108 vheads = read_word(ebda_seg,&EbdaData->cdemu.vdevice.heads);
6169 vheads=read_word(ebda_seg,&EbdaData->cdemu.vdevice.heads) - 1;
6787 mul al, ah ;; ax = heads * sectors
6790 mul ax, bx ;; dx:ax = (cylinders -1) * (heads * sectors)
6863 // heads
8806 ;; 1d heads 2
8809 ;; 20 retries/bad map/heads>8 8
8853 mov cl, al ;; CL = heads
8867 mov (0x003d + 0x02), cl ;; number of physical heads
8874 mov (0x003d + 0x0b), cl ;; number of physical heads
8910 mov (0x003d + 0x02), cl ;; number of physical heads
8952 ;; 0x26 heads 2
8955 ;; 0x29 heads>8 8
8997 mov cl, al ;; CL = heads
9011 mov (0x004d + 0x02), cl ;; number of physical heads
9018 mov (0x004d + 0x0b), cl ;; number of physical heads
9054 mov (0x004d + 0x02), cl ;; number of physical heads