Lines Matching refs:cylinders
630 Bit16u cylinders; // # cylinders
757 Bit32u cylinders;
2402 write_word(ebda_seg,&EbdaData->ata.devices[device].lchs.cylinders,0);
2405 write_word(ebda_seg,&EbdaData->ata.devices[device].pchs.cylinders,0);
2572 Bit16u cylinders, heads, spt, blksize;
2586 cylinders = read_word(get_SS(),buffer+(1*2)); // word 1
2603 write_word(ebda_seg,&EbdaData->ata.devices[device].pchs.cylinders, cylinders);
2607 BX_INFO("ata%d-%d: PCHS=%u/%d/%d translation=", channel, slave,cylinders, heads, spt);
2641 cylinders = sectors_low / heads;
2646 if(cylinders>61439) cylinders=61439;
2648 cylinders = (Bit16u)((Bit32u)(cylinders)*16/15);
2652 while(cylinders > 1024) {
2653 cylinders >>= 1;
2661 // clip to 1024 cylinders in lchs
2662 if (cylinders > 1024) cylinders=1024;
2663 BX_INFO(" LCHS=%d/%d/%d\n", cylinders, heads, spt);
2666 write_word(ebda_seg,&EbdaData->ata.devices[device].lchs.cylinders, cylinders);
3696 write_word(ebda_seg,&EbdaData->cdemu.vdevice.cylinders,80);
3701 write_word(ebda_seg,&EbdaData->cdemu.vdevice.cylinders,80);
3706 write_word(ebda_seg,&EbdaData->cdemu.vdevice.cylinders,80);
3711 write_word(ebda_seg,&EbdaData->cdemu.vdevice.cylinders,
5276 nlc = read_word(ebda_seg, &EbdaData->ata.devices[device].lchs.cylinders);
5325 nlc = read_word(ebda_seg, &EbdaData->ata.devices[device].lchs.cylinders);
5359 nlc = read_word(ebda_seg, &EbdaData->ata.devices[device].lchs.cylinders);
5446 npc = read_word(ebda_seg, &EbdaData->ata.devices[device].pchs.cylinders);
5457 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, 0x3fff);
5462 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, (Bit32u)npc);
5809 Bit16u cylinders, heads, spt, blksize;
5815 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, 0xffffffff);
6004 write_byte(DS,SI+0x10,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.cylinders));
6107 vcylinders = read_word(ebda_seg,&EbdaData->cdemu.vdevice.cylinders);
6168 vcylinders=read_word(ebda_seg,&EbdaData->cdemu.vdevice.cylinders) - 1;
6789 dec bx ;; use (cylinders - 1) ???
6790 mul ax, bx ;; dx:ax = (cylinders -1) * (heads * sectors)
6837 Bit16u cylinders;
6859 // cylinders
6860 cylinders = inb_cmos(iobase) | (inb_cmos(iobase+1) << 8);
6861 write_word(ss, hd_cylinders, cylinders);
8804 ;; 1b cylinders low 0
8805 ;; 1c cylinders high 1
8841 mov al, #0x1c ;; get cylinders word in AX
8848 mov bx, ax ;; BX = cylinders
8861 jnbe hd0_post_logical_chs ;; if cylinders > 1024, use translated style CHS
8866 mov (0x003d + 0x00), bx ;; number of physical cylinders
8873 mov (0x003d + 0x09), bx ;; number of physical cylinders
8882 ;; 1024 < c <= 2048 cylinders
8890 ;; 2048 < c <= 4096 cylinders
8898 ;; 4096 < c <= 8192 cylinders
8904 ;; 8192 < c <= 16384 cylinders
8909 mov (0x003d + 0x00), bx ;; number of physical cylinders
8950 ;; 0x24 cylinders low 0
8951 ;; 0x25 cylinders high 1
8985 mov al, #0x25 ;; get cylinders word in AX
8992 mov bx, ax ;; BX = cylinders
9005 jnbe hd1_post_logical_chs ;; if cylinders > 1024, use translated style CHS
9010 mov (0x004d + 0x00), bx ;; number of physical cylinders
9017 mov (0x004d + 0x09), bx ;; number of physical cylinders
9026 ;; 1024 < c <= 2048 cylinders
9034 ;; 2048 < c <= 4096 cylinders
9042 ;; 4096 < c <= 8192 cylinders
9048 ;; 8192 < c <= 16384 cylinders
9053 mov (0x004d + 0x00), bx ;; number of physical cylinders