Home | History | Annotate | Download | only in bios

Lines Matching refs:read_byte

861 static Bit8u          read_byte();
1272 read_byte(seg, offset)
1530 while (c = read_byte(segment, offset)) {
1646 while (c = read_byte(get_CS(), s)) {
1675 c = read_byte(get_CS(), s); /* is it ld,lx,lu? */
2212 s3_resume_flag = read_byte(0x40, 0xb0);
2567 type=read_byte(ebda_seg,&EbdaData->ata.devices[device].type);
2582 removable = (read_byte(get_SS(),buffer+0) & 0x80) ? 1 : 0;
2583 mode = read_byte(get_SS(),buffer+96) ? ATA_MODE_PIO32 : ATA_MODE_PIO16;
2687 type = read_byte(get_SS(),buffer+1) & 0x1f;
2688 removable = (read_byte(get_SS(),buffer+0) & 0x80) ? 1 : 0;
2689 mode = read_byte(get_SS(),buffer+96) ? ATA_MODE_PIO32 : ATA_MODE_PIO16;
2713 ataversion=((Bit16u)(read_byte(get_SS(),buffer+161))<<8)|read_byte(get_SS(),buffer+160);
2721 write_byte(get_SS(),model+(i*2),read_byte(get_SS(),buffer+(i*2)+54+1));
2722 write_byte(get_SS(),model+(i*2)+1,read_byte(get_SS(),buffer+(i*2)+54));
2728 if(read_byte(get_SS(),model+i)==0x20)
2744 i=0; while(c=read_byte(get_SS(),model+i++)) printf("%c",c);
2752 i=0; while(c=read_byte(get_SS(),model+i++)) printf("%c",c);
2753 if(read_byte(ebda_seg,&EbdaData->ata.devices[device].device)==ATA_DEVICE_CDROM)
2810 type=read_byte(ebda_seg,&EbdaData->ata.devices[device].type);
2867 mode = read_byte(ebda_seg, &EbdaData->ata.devices[device].mode);
3018 mode = read_byte(ebda_seg, &EbdaData->ata.devices[device].mode);
3183 mode = read_byte(ebda_seg, &EbdaData->ata.devices[device].mode);
3464 if (read_byte(ebda_seg,&EbdaData->ata.devices[device].type) != ATA_TYPE_ATAPI) {
3539 if (read_byte(ebda_seg,&EbdaData->ata.devices[device].type) != ATA_TYPE_ATAPI)
3542 if (read_byte(ebda_seg,&EbdaData->ata.devices[device].device) != ATA_DEVICE_CDROM)
3574 return(read_byte(ebda_seg,&EbdaData->cdemu.active));
3582 return(read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive));
3625 if(buffer[1+i]!=read_byte(0xf000,&isotag[i]))return 5;
3628 if(buffer[7+i]!=read_byte(0xf000,&eltorito[i]))return 6;
3693 switch(read_byte(ebda_seg,&EbdaData->cdemu.media)) {
3710 write_word(ebda_seg,&EbdaData->cdemu.vdevice.spt,read_byte(boot_segment,446+6)&0x3f);
3712 (read_byte(boot_segment,446+6)<<2) + read_byte(boot_segment,446+7) + 1);
3713 write_word(ebda_seg,&EbdaData->cdemu.vdevice.heads,read_byte(boot_segment,446+5) + 1);
3717 if(read_byte(ebda_seg,&EbdaData->cdemu.media)!=0) {
3719 if(read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive)==0x00)
3720 write_byte(0x40,0x10,read_byte(0x40,0x10)|0x41);
3722 write_byte(ebda_seg, &EbdaData->ata.hdcount, read_byte(ebda_seg, &EbdaData->ata.hdcount) + 1);
3727 if(read_byte(ebda_seg,&EbdaData->cdemu.media)!=0)
3731 return (read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive)*0x100)+0;
3753 timeout = read_byte(0x0040, 0x007C + regs.u.r16.dx);
3885 if( ( read_byte( 0x40, 0xA0 ) & 1 ) == 0 ) {
4179 mouse_flags_2 = read_byte(ebda_seg, 0x0027);
4218 mouse_flags_2 = read_byte(ebda_seg, 0x0027);
4410 mouse_flags_2 = read_byte(ebda_seg, 0x0027);
4677 shift_flags = read_byte(0x0040, 0x17);
4678 led_flags = read_byte(0x0040, 0x97);
4721 shift_flags = read_byte(0x0040, 0x17);
4790 shift_flags = read_byte(0x0040, 0x17);
4792 shift_flags = read_byte(0x0040, 0x18) & 0x73;
4793 shift_flags |= read_byte(0x0040, 0x96) & 0x0c;
4838 acode = read_byte(0x0040, buffer_head);
4839 scode = read_byte(0x0040, buffer_head+1);
4964 shift_flags = read_byte(0x0040, 0x17);
4965 mf2_flags = read_byte(0x0040, 0x18);
4966 mf2_state = read_byte(0x0040, 0x96);
5179 mouse_flags_1 = read_byte(ebda_seg, 0x0026);
5180 mouse_flags_2 = read_byte(ebda_seg, 0x0027);
5192 status = read_byte(ebda_seg, 0x0028 + 0);
5193 X = read_byte(ebda_seg, 0x0028 + 1);
5194 Y = read_byte(ebda_seg, 0x0028 + 2);
5234 device=read_byte(ebda_seg,&EbdaData->ata.hdidmap[GET_ELDL()-0x80]);
5250 status = read_byte(0x0040, 0x0074);
5328 count = read_byte(ebda_seg, &EbdaData->ata.hdcount);
5485 irq = read_byte(ebda_seg, &EbdaData->ata.channels[channel].irq);
5486 mode = read_byte(ebda_seg, &EbdaData->ata.devices[device].mode);
5487 translation = read_byte(ebda_seg, &EbdaData->ata.devices[device].translation);
5511 for (i=0; i<15; i++) checksum+=read_byte(ebda_seg, ((Bit8u*)(&EbdaData->ata.dpte)) + i);
5522 iface = read_byte(ebda_seg, &EbdaData->ata.channels[channel].iface);
5559 for (i=30; i<64; i++) checksum+=read_byte(DS, SI + i);
5641 device=read_byte(ebda_seg,&EbdaData->ata.cdidmap[GET_ELDL()-0xE0]);
5672 status = read_byte(0x0040, 0x0074);
5740 locks = read_byte(ebda_seg, &EbdaData->ata.devices[device].lock);
5769 locks = read_byte(ebda_seg, &EbdaData->ata.devices[device].lock);
5837 irq = read_byte(ebda_seg, &EbdaData->ata.channels[channel].irq);
5838 mode = read_byte(ebda_seg, &EbdaData->ata.devices[device].mode);
5859 for (i=0; i<15; i++) checksum+=read_byte(ebda_seg, ((Bit8u*)(&EbdaData->ata.dpte)) + i);
5870 iface = read_byte(ebda_seg, &EbdaData->ata.channels[channel].iface);
5907 for (i=30; i<64; i++) checksum+=read_byte(DS, SI + i);
5996 write_byte(DS,SI+0x01,read_byte(ebda_seg,&EbdaData->cdemu.media));
5997 write_byte(DS,SI+0x02,read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive));
5998 write_byte(DS,SI+0x03,read_byte(ebda_seg,&EbdaData->cdemu.controller_index));
6004 write_byte(DS,SI+0x10,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.cylinders));
6005 write_byte(DS,SI+0x11,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.spt));
6006 write_byte(DS,SI+0x12,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.heads));
6061 device = read_byte(ebda_seg,&EbdaData->cdemu.controller_index) * 2;
6062 device += read_byte(ebda_seg,&EbdaData->cdemu.device_spec);
6067 if( (read_byte(ebda_seg,&EbdaData->cdemu.active) ==0 )
6068 || (read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive ) != GET_DL())) {
6095 status=read_byte(0x0040, 0x0074);
6179 switch(read_byte(ebda_seg,&EbdaData->cdemu.media)) {
6359 status = read_byte(0x0040, 0x0074);
6899 val8 = read_byte(0x0040, 0x003e);
6928 val8 = read_byte(0x0040, 0x003e);
6945 val8 = read_byte(0x0040, 0x003e); // diskette recal status
6956 val8 = read_byte(0x0040, media_state_offset);
7101 val8 = (read_byte(0x0040, 0x003e) & 0x80);
7111 val8 = read_byte(0x0040, 0x003e);
7191 val8 = read_byte(0x0000, 0x0441);
7318 val8 = read_byte(0x0040, 0x0040);
7327 val8 = (read_byte(0x0040, 0x003e) & 0x80);
7337 val8 = read_byte(0x0040, 0x003e);
7452 val8 = read_byte(0x0040, 0x0040);
7461 val8 = (read_byte(0x0040, 0x003e) & 0x80);
7471 val8 = read_byte(0x0040, 0x003e);
7615 val8 = read_byte(0x0040, 0x0040);
7623 val8 = (read_byte(0x0040, 0x003e) & 0x80);
7632 val8 = read_byte(0x0040, 0x003e);
7853 val8 = read_byte(0x0000, 0x0441);
7892 ctrl_info = read_byte(0x0040, 0x008F);
7945 timeout = read_byte(0x0040, 0x0078 + regs.u.r16.dx) << 8;
8385 if( read_byte( 0x40, 0xA0 ) != 0 ) {
8398 write_byte(segment, offset, read_byte(segment, offset) | 0x80 ); // Write to specified flag byte.