/freebsd/stand/i386/libi386/ |
H A D | textvidc.c | 122 v86.ctl = 0; in vidc_biosputchar() 123 v86.addr = 0x10; in vidc_biosputchar() 124 v86.eax = 0xe00 | (c & 0xff); in vidc_biosputchar() 125 v86.ebx = 0x7; in vidc_biosputchar() 200 v86.ctl = 0; in get_pos() 201 v86.addr = 0x10; in get_pos() 202 v86.eax = 0x0300; in get_pos() 203 v86.ebx = 0x0; in get_pos() 205 *x = v86.edx & 0x00ff; in get_pos() 206 *y = (v86.edx & 0xff00) >> 8; in get_pos() [all …]
|
H A D | biospci.c | 224 v86.ctl = V86_FLAGS; in biospci_detect() 225 v86.addr = PCI_INT; in biospci_detect() 226 v86.eax = PCI_BIOS_PRESENT; in biospci_detect() 227 v86.edi = 0x0; in biospci_detect() 231 if (V86_CY(v86.efl) || ((v86.eax & 0xff00) != 0) || in biospci_detect() 232 (v86.edx != PCI_SIGNATURE)) in biospci_detect() 235 version = v86.ebx & 0xffff; in biospci_detect() 236 hwcap = v86.eax & 0xff; in biospci_detect() 237 maxbus = v86.ecx & 0xff; in biospci_detect() 325 v86.ctl = V86_FLAGS; in biospci_find_devclass() [all …]
|
H A D | biosmem.c | 98 v86.ebx = 0; in bios_getmem() 100 v86.ctl = V86_FLAGS; in bios_getmem() 101 v86.addr = 0x15; /* int 0x15 function 0xe820 */ in bios_getmem() 102 v86.eax = 0xe820; in bios_getmem() 103 v86.ecx = sizeof(struct bios_smap_xattr); in bios_getmem() 104 v86.edx = SMAP_SIG; in bios_getmem() 105 v86.es = VTOPSEG(&smap); in bios_getmem() 106 v86.edi = VTOPOFF(&smap); in bios_getmem() 108 if ((V86_CY(v86.efl)) || (v86.eax != SMAP_SIG)) in bios_getmem() 150 } while (v86.ebx != 0); in bios_getmem() [all …]
|
H A D | biosdisk.c | 283 v86.ctl = V86_FLAGS; in fd_count() 284 v86.addr = DISK_BIOS; in fd_count() 285 v86.eax = CMD_DRIVE_TYPE; in fd_count() 286 v86.edx = drive; in fd_count() 289 if (V86_CY(v86.efl)) in fd_count() 292 if ((v86.eax & 0x300) == 0) in fd_count() 391 v86.ctl = V86_FLAGS; in bd_get_diskinfo_cd() 392 v86.addr = DISK_BIOS; in bd_get_diskinfo_cd() 393 v86.eax = CMD_CD_GET_STATUS; in bd_get_diskinfo_cd() 394 v86.edx = bd->bd_unit; in bd_get_diskinfo_cd() [all …]
|
H A D | vbe.c | 264 v86.ctl = V86_FLAGS; in bios_set_text_mode() 265 v86.addr = 0x10; in bios_set_text_mode() 266 v86.eax = mode; /* set VGA text mode */ in bios_set_text_mode() 303 v86.ctl = V86_FLAGS; in biosvbe_info() 304 v86.addr = 0x10; in biosvbe_info() 305 v86.eax = 0x4f00; in biosvbe_info() 306 v86.es = VTOPSEG(rvbe); in biosvbe_info() 307 v86.edi = VTOPOFF(rvbe); in biosvbe_info() 309 ret = v86.eax & 0xffff; in biosvbe_info() 335 v86.ctl = V86_FLAGS; in biosvbe_get_mode_info() [all …]
|
H A D | time.c | 45 v86.ctl = 0; in bios_seconds() 46 v86.addr = 0x1a; /* int 0x1a, function 2 */ in bios_seconds() 47 v86.eax = 0x0200; in bios_seconds() 50 hr = bcd2bin((v86.ecx & 0xff00) >> 8); /* hour in %ch */ in bios_seconds() 51 minute = bcd2bin(v86.ecx & 0xff); /* minute in %cl */ in bios_seconds() 52 sec = bcd2bin((v86.edx & 0xff00) >> 8); /* second in %dh */ in bios_seconds() 109 v86.ctl = 0; in delay() 110 v86.addr = 0x15; /* int 0x15, function 0x86 */ in delay() 111 v86.eax = 0x8600; in delay() 112 v86.ecx = period >> 16; in delay() [all …]
|
H A D | biossmap.c | 65 v86.ebx = 0; in bios_getsmap() 67 v86.ctl = V86_FLAGS; in bios_getsmap() 68 v86.addr = 0x15; in bios_getsmap() 69 v86.eax = 0xe820; /* int 0x15 function 0xe820 */ in bios_getsmap() 70 v86.ecx = SMAP_BUFSIZE; in bios_getsmap() 71 v86.edx = SMAP_SIG; in bios_getsmap() 72 v86.es = VTOPSEG(&buf); in bios_getsmap() 73 v86.edi = VTOPOFF(&buf); in bios_getsmap() 75 if (V86_CY(v86.efl) || v86.eax != SMAP_SIG || in bios_getsmap() 76 v86.ecx < sizeof(buf.smap) || v86.ecx > SMAP_BUFSIZE) in bios_getsmap() [all …]
|
H A D | pxe.c | 309 bzero(&v86, sizeof(v86)); in pxenv_call() 314 v86.ctl = V86_ADDR | V86_CALLF | V86_FLAGS; in pxenv_call() 315 v86.es = VTOPSEG(ptr); in pxenv_call() 316 v86.edi = VTOPOFF(ptr); in pxenv_call() 317 v86.addr = (VTOPSEG(__pxenventry) << 16) | VTOPOFF(__pxenventry); in pxenv_call() 318 v86.ebx = func; in pxenv_call() 320 v86.ctl = V86_FLAGS; in pxenv_call() 331 bzero(&v86, sizeof(v86)); in bangpxe_call() 336 v86.ctl = V86_ADDR | V86_CALLF | V86_FLAGS; in bangpxe_call() 337 v86.edx = VTOPSEG(ptr); in bangpxe_call() [all …]
|
H A D | vidconsole.c | 1052 v86.ctl = 0; in vidc_biosputchar() 1053 v86.addr = 0x10; in vidc_biosputchar() 1054 v86.eax = 0xe00 | (c & 0xff); in vidc_biosputchar() 1055 v86.ebx = 0x7; in vidc_biosputchar() 1084 v86.ctl = 0; in vidc_getchar() 1085 v86.addr = 0x16; in vidc_getchar() 1086 v86.eax = 0x0; in vidc_getchar() 1088 if ((v86.eax & 0xff) != 0) { in vidc_getchar() 1089 return (v86.eax & 0xff); in vidc_getchar() 1093 switch (v86.eax & 0xff00) { in vidc_getchar() [all …]
|
H A D | biospnp.c | 284 v86.ctl = V86_ADDR | V86_CALLF; in biospnp_call() 285 v86.addr = ((uint32_t)pnp_Icheck->pnp_rmcs << 16) + pnp_Icheck->pnp_rmip; in biospnp_call() 289 return(v86.eax & 0xffff); in biospnp_call()
|
/freebsd/stand/i386/common/ |
H A D | drv.c | 33 v86.ctl = V86_FLAGS; in drvsize() 34 v86.addr = 0x13; in drvsize() 35 v86.eax = 0x4800; in drvsize() 36 v86.edx = dskp->drive; in drvsize() 37 v86.ds = VTOPSEG(¶ms); in drvsize() 38 v86.esi = VTOPOFF(¶ms); in drvsize() 40 if (V86_CY(v86.efl)) { in drvsize() 41 printf("error %u\n", v86.eax >> 8 & 0xff); in drvsize() 61 v86.ctl = V86_FLAGS; in drvread() 62 v86.addr = 0x13; in drvread() [all …]
|
H A D | cons.c | 36 v86.ctl = V86_FLAGS; in putc() 37 v86.addr = 0x10; in putc() 38 v86.eax = 0xe00 | (c & 0xff); in putc() 39 v86.ebx = 0x7; in putc() 56 v86.ctl = V86_FLAGS; in getcursor() 57 v86.addr = 0x10; in getcursor() 58 v86.eax = 0x300; in getcursor() 59 v86.ebx = 0x7; in getcursor() 63 *row = v86.edx >> 8; in getcursor() 65 *col = v86.edx & 0xff; in getcursor() [all …]
|
/freebsd/stand/i386/isoboot/ |
H A D | isoboot.c | 125 v86.ebx = 0; in bios_getmem() 127 v86.ctl = V86_FLAGS; in bios_getmem() 128 v86.addr = MEM_EXT; /* int 0x15 function 0xe820*/ in bios_getmem() 129 v86.eax = 0xe820; in bios_getmem() 130 v86.ecx = sizeof(struct bios_smap); in bios_getmem() 131 v86.edx = SMAP_SIG; in bios_getmem() 132 v86.es = VTOPSEG(&smap); in bios_getmem() 133 v86.edi = VTOPOFF(&smap); in bios_getmem() 135 if ((v86.efl & 1) || (v86.eax != SMAP_SIG)) in bios_getmem() 167 } while (v86.ebx != 0); in bios_getmem() [all …]
|
/freebsd/stand/i386/gptboot/ |
H A D | gptboot.c | 142 v86.ebx = 0; in bios_getmem() 144 v86.ctl = V86_FLAGS; in bios_getmem() 145 v86.addr = MEM_EXT; /* int 0x15 function 0xe820*/ in bios_getmem() 146 v86.eax = 0xe820; in bios_getmem() 147 v86.ecx = sizeof(struct bios_smap); in bios_getmem() 148 v86.edx = SMAP_SIG; in bios_getmem() 149 v86.es = VTOPSEG(&smap); in bios_getmem() 150 v86.edi = VTOPOFF(&smap); in bios_getmem() 152 if ((v86.efl & 1) || (v86.eax != SMAP_SIG)) in bios_getmem() 184 } while (v86.ebx != 0); in bios_getmem() [all …]
|
/freebsd/stand/i386/boot2/ |
H A D | boot2.c | 192 v86.addr = 0x10; in putc() 193 v86.eax = 0xe00 | (c & 0xff); in putc() 194 v86.ebx = 0x7; in putc() 206 v86.ctl = V86_FLAGS; in main() 207 v86.efl = PSL_RESERVED_DEFAULT | PSL_I; in main() 589 v86.ctl = V86_ADDR | V86_CALLF | V86_FLAGS; in drvread() 590 v86.addr = XREADORG; /* call to xread in boot1 */ in drvread() 591 v86.es = VTOPSEG(buf); in drvread() 592 v86.eax = lba; in drvread() 593 v86.ebx = VTOPOFF(buf); in drvread() [all …]
|
/freebsd/stand/i386/loader/ |
H A D | main.c | 103 bzero(&v86, sizeof(v86)); in main() 104 v86.efl = PSL_RESERVED_DEFAULT | PSL_I; in main()
|
/freebsd/stand/i386/btx/lib/ |
H A D | btxv86.h | 57 #define v86 __v86 macro
|