Lines Matching refs:read_byte
884 static Bit8u read_byte();
1295 read_byte(seg, offset)
1580 while (c = read_byte(segment, offset)) {
1696 while (c = read_byte(get_CS(), s)) {
1725 c = read_byte(get_CS(), s); /* is it ld,lx,lu? */
2310 s3_resume_flag = read_byte(0x40, 0xb0);
2668 type=read_byte(ebda_seg,&EbdaData->ata.devices[device].type);
2686 removable = (read_byte(get_SS(),buffer+0) & 0x80) ? 1 : 0;
2688 mode = read_byte(get_SS(),buffer+96) ? ATA_MODE_PIO32 : ATA_MODE_PIO16;
2796 type = read_byte(get_SS(),buffer+1) & 0x1f;
2797 removable = (read_byte(get_SS(),buffer+0) & 0x80) ? 1 : 0;
2799 mode = read_byte(get_SS(),buffer+96) ? ATA_MODE_PIO32 : ATA_MODE_PIO16;
2824 ataversion=((Bit16u)(read_byte(get_SS(),buffer+161))<<8)|read_byte(get_SS(),buffer+160);
2832 write_byte(get_SS(),model+(i*2),read_byte(get_SS(),buffer+(i*2)+54+1));
2833 write_byte(get_SS(),model+(i*2)+1,read_byte(get_SS(),buffer+(i*2)+54));
2839 if(read_byte(get_SS(),model+i)==0x20)
2855 i=0; while(c=read_byte(get_SS(),model+i++)) printf("%c",c);
2863 i=0; while(c=read_byte(get_SS(),model+i++)) printf("%c",c);
2864 if(read_byte(ebda_seg,&EbdaData->ata.devices[device].device)==ATA_DEVICE_CDROM)
2921 type=read_byte(ebda_seg,&EbdaData->ata.devices[device].type);
2978 mode = read_byte(ebda_seg, &EbdaData->ata.devices[device].mode);
3127 mode = read_byte(ebda_seg, &EbdaData->ata.devices[device].mode);
3291 mode = read_byte(ebda_seg, &EbdaData->ata.devices[device].mode);
3569 if (read_byte(ebda_seg,&EbdaData->ata.devices[device].type) != ATA_TYPE_ATAPI) {
3644 if (read_byte(ebda_seg,&EbdaData->ata.devices[device].type) != ATA_TYPE_ATAPI)
3647 if (read_byte(ebda_seg,&EbdaData->ata.devices[device].device) != ATA_DEVICE_CDROM)
3679 return(read_byte(ebda_seg,&EbdaData->cdemu.active));
3687 return(read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive));
3730 if(read_byte(get_SS(),&buffer[1+i])!=read_byte(0xf000,&isotag[i]))return 5;
3733 if(read_byte(get_SS(),&buffer[7+i])!=read_byte(0xf000,&eltorito[i]))return 6;
3811 switch(read_byte(ebda_seg,&EbdaData->cdemu.media)) {
3828 write_word(ebda_seg,&EbdaData->cdemu.vdevice.spt,read_byte(boot_segment,446+6)&0x3f);
3830 (read_byte(boot_segment,446+6)<<2) + read_byte(boot_segment,446+7) + 1);
3831 write_word(ebda_seg,&EbdaData->cdemu.vdevice.heads,read_byte(boot_segment,446+5) + 1);
3835 if(read_byte(ebda_seg,&EbdaData->cdemu.media)!=0) {
3837 if(read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive)==0x00)
3838 write_byte(0x40,0x10,read_byte(0x40,0x10)|0x41);
3840 write_byte(ebda_seg, &EbdaData->ata.hdcount, read_byte(ebda_seg, &EbdaData->ata.hdcount) + 1);
3845 if(read_byte(ebda_seg,&EbdaData->cdemu.media)!=0)
3849 return (read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive)*0x100)+0;
3871 timeout = read_byte(0x0040, 0x007C + regs.u.r16.dx);
4003 if( ( read_byte( 0x40, 0xA0 ) & 1 ) == 0 ) {
4297 mouse_flags_2 = read_byte(ebda_seg, 0x0027);
4336 mouse_flags_2 = read_byte(ebda_seg, 0x0027);
4528 mouse_flags_2 = read_byte(ebda_seg, 0x0027);
4886 shift_flags = read_byte(0x0040, 0x17);
4887 led_flags = read_byte(0x0040, 0x97);
4930 shift_flags = read_byte(0x0040, 0x17);
4999 shift_flags = read_byte(0x0040, 0x17);
5001 shift_flags = read_byte(0x0040, 0x18) & 0x73;
5002 shift_flags |= read_byte(0x0040, 0x96) & 0x0c;
5047 acode = read_byte(0x0040, buffer_head);
5048 scode = read_byte(0x0040, buffer_head+1);
5173 shift_flags = read_byte(0x0040, 0x17);
5174 mf2_flags = read_byte(0x0040, 0x18);
5175 mf2_state = read_byte(0x0040, 0x96);
5392 mouse_flags_1 = read_byte(ebda_seg, 0x0026);
5393 mouse_flags_2 = read_byte(ebda_seg, 0x0027);
5405 status = read_byte(ebda_seg, 0x0028 + 0);
5406 X = read_byte(ebda_seg, 0x0028 + 1);
5407 Y = read_byte(ebda_seg, 0x0028 + 2);
5447 device=read_byte(ebda_seg,&EbdaData->ata.hdidmap[GET_ELDL()-0x80]);
5463 status = read_byte(0x0040, 0x0074);
5541 count = read_byte(ebda_seg, &EbdaData->ata.hdcount);
5698 irq = read_byte(ebda_seg, &EbdaData->ata.channels[channel].irq);
5699 mode = read_byte(ebda_seg, &EbdaData->ata.devices[device].mode);
5700 translation = read_byte(ebda_seg, &EbdaData->ata.devices[device].translation);
5724 for (i=0; i<15; i++) checksum+=read_byte(ebda_seg, ((Bit8u*)(&EbdaData->ata.dpte)) + i);
5735 iface = read_byte(ebda_seg, &EbdaData->ata.channels[channel].iface);
5772 for (i=30; i<64; i++) checksum+=read_byte(DS, SI + i);
5854 device=read_byte(ebda_seg,&EbdaData->ata.cdidmap[GET_ELDL()-0xE0]);
5885 status = read_byte(0x0040, 0x0074);
5953 locks = read_byte(ebda_seg, &EbdaData->ata.devices[device].lock);
5982 locks = read_byte(ebda_seg, &EbdaData->ata.devices[device].lock);
6050 irq = read_byte(ebda_seg, &EbdaData->ata.channels[channel].irq);
6051 mode = read_byte(ebda_seg, &EbdaData->ata.devices[device].mode);
6072 for (i=0; i<15; i++) checksum+=read_byte(ebda_seg, ((Bit8u*)(&EbdaData->ata.dpte)) + i);
6083 iface = read_byte(ebda_seg, &EbdaData->ata.channels[channel].iface);
6120 for (i=30; i<64; i++) checksum+=read_byte(DS, SI + i);
6209 write_byte(DS,SI+0x01,read_byte(ebda_seg,&EbdaData->cdemu.media));
6210 write_byte(DS,SI+0x02,read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive));
6211 write_byte(DS,SI+0x03,read_byte(ebda_seg,&EbdaData->cdemu.controller_index));
6217 write_byte(DS,SI+0x10,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.cylinders));
6218 write_byte(DS,SI+0x11,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.spt));
6219 write_byte(DS,SI+0x12,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.heads));
6274 device = read_byte(ebda_seg,&EbdaData->cdemu.controller_index) * 2;
6275 device += read_byte(ebda_seg,&EbdaData->cdemu.device_spec);
6280 if( (read_byte(ebda_seg,&EbdaData->cdemu.active) ==0 )
6281 || (read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive ) != GET_DL())) {
6308 status=read_byte(0x0040, 0x0074);
6392 switch(read_byte(ebda_seg,&EbdaData->cdemu.media)) {
6572 status = read_byte(0x0040, 0x0074);
7112 val8 = read_byte(0x0040, 0x003e);
7141 val8 = read_byte(0x0040, 0x003e);
7158 val8 = read_byte(0x0040, 0x003e); // diskette recal status
7169 val8 = read_byte(0x0040, media_state_offset);
7314 val8 = (read_byte(0x0040, 0x003e) & 0x80);
7324 val8 = read_byte(0x0040, 0x003e);
7404 val8 = read_byte(0x0000, 0x0441);
7531 val8 = read_byte(0x0040, 0x0040);
7540 val8 = (read_byte(0x0040, 0x003e) & 0x80);
7550 val8 = read_byte(0x0040, 0x003e);
7665 val8 = read_byte(0x0040, 0x0040);
7674 val8 = (read_byte(0x0040, 0x003e) & 0x80);
7684 val8 = read_byte(0x0040, 0x003e);
7828 val8 = read_byte(0x0040, 0x0040);
7836 val8 = (read_byte(0x0040, 0x003e) & 0x80);
7845 val8 = read_byte(0x0040, 0x003e);
8066 val8 = read_byte(0x0000, 0x0441);
8105 ctrl_info = read_byte(0x0040, 0x008F);
8158 timeout = read_byte(0x0040, 0x0078 + regs.u.r16.dx) << 8;
8617 if( read_byte( 0x40, 0xA0 ) != 0 ) {
8630 … write_byte(segment, offset, read_byte(segment, offset) | 0x80 ); // Write to specified flag byte.