Home
last modified time | relevance | path

Searched refs:v86 (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/boot/i386/common/
H A Ddrv.c35 v86.ctl = V86_FLAGS; in drvsize()
36 v86.addr = 0x13; in drvsize()
37 v86.eax = 0x4800; in drvsize()
38 v86.edx = dskp->drive; in drvsize()
39 v86.ds = VTOPSEG(&params); in drvsize()
40 v86.esi = VTOPOFF(&params); in drvsize()
42 if (V86_CY(v86.efl)) { in drvsize()
43 printf("error %u\n", v86.eax >> 8 & 0xff); in drvsize()
63 v86.ctl = V86_FLAGS; in drvread()
64 v86.addr = 0x13; in drvread()
[all …]
H A Dcons.c37 v86.ctl = V86_FLAGS; in putc()
38 v86.addr = 0x10; in putc()
39 v86.eax = 0xe00 | (c & 0xff); in putc()
40 v86.ebx = 0x7; in putc()
57 v86.ctl = V86_FLAGS; in getcursor()
58 v86.addr = 0x10; in getcursor()
59 v86.eax = 0x300; in getcursor()
60 v86.ebx = 0x7; in getcursor()
64 *row = v86.edx >> 8; in getcursor()
66 *col = v86.edx & 0xff; in getcursor()
[all …]
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiospci.c229 v86.ctl = V86_FLAGS; in biospci_detect()
230 v86.addr = PCI_INT; in biospci_detect()
231 v86.eax = PCI_BIOS_PRESENT; in biospci_detect()
232 v86.edi = 0x0; in biospci_detect()
236 if (V86_CY(v86.efl) || ((v86.eax & 0xff00) != 0) || in biospci_detect()
237 (v86.edx != PCI_SIGNATURE)) in biospci_detect()
240 version = v86.ebx & 0xffff; in biospci_detect()
241 hwcap = v86.eax & 0xff; in biospci_detect()
242 maxbus = v86.ecx & 0xff; in biospci_detect()
339 v86.ctl = V86_FLAGS; in biospci_find_devclass()
[all …]
H A Dbiosmem.c99 v86.ebx = 0; in bios_getmem()
101 v86.ctl = V86_FLAGS; in bios_getmem()
102 v86.addr = 0x15; /* int 0x15 function 0xe820 */ in bios_getmem()
103 v86.eax = 0xe820; in bios_getmem()
104 v86.ecx = sizeof (struct bios_smap_xattr); in bios_getmem()
105 v86.edx = SMAP_SIG; in bios_getmem()
106 v86.es = VTOPSEG(&smap); in bios_getmem()
107 v86.edi = VTOPOFF(&smap); in bios_getmem()
109 if ((V86_CY(v86.efl)) || (v86.eax != SMAP_SIG)) in bios_getmem()
151 } while (v86.ebx != 0); in bios_getmem()
[all …]
H A Dvbe.c79 v86.ctl = V86_FLAGS; in bios_set_text_mode()
80 v86.addr = 0x10; in bios_set_text_mode()
81 v86.eax = mode; /* set VGA text mode */ in bios_set_text_mode()
104 v86.ctl = V86_FLAGS; in biosvbe_info()
105 v86.addr = 0x10; in biosvbe_info()
106 v86.eax = 0x4f00; in biosvbe_info()
107 v86.es = VTOPSEG(vbe); in biosvbe_info()
108 v86.edi = VTOPOFF(vbe); in biosvbe_info()
110 return (v86.eax & 0xffff); in biosvbe_info()
117 v86.ctl = V86_FLAGS; in biosvbe_get_mode_info()
[all …]
H A Dbiosdisk.c283 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()
384 v86.ctl = V86_FLAGS; in bd_get_diskinfo_cd()
385 v86.addr = DISK_BIOS; in bd_get_diskinfo_cd()
386 v86.eax = CMD_CD_GET_STATUS; in bd_get_diskinfo_cd()
387 v86.edx = bd->bd_unit; in bd_get_diskinfo_cd()
[all …]
H A Dtime.c47 v86.ctl = 0; in bios_seconds()
48 v86.addr = 0x1a; /* int 0x1a, function 2 */ in bios_seconds()
49 v86.eax = 0x0200; in bios_seconds()
52 hr = bcd2bin((v86.ecx & 0xff00) >> 8); /* hour in %ch */ in bios_seconds()
53 minute = bcd2bin(v86.ecx & 0xff); /* minute in %cl */ in bios_seconds()
54 sec = bcd2bin((v86.edx & 0xff00) >> 8); /* second in %dh */ in bios_seconds()
111 v86.ctl = 0; in delay()
112 v86.addr = 0x15; /* int 0x15, function 0x86 */ in delay()
113 v86.eax = 0x8600; in delay()
114 v86.ecx = period >> 16; in delay()
[all …]
H A Dbiossmap.c67 v86.ebx = 0; in bios_getsmap()
69 v86.ctl = V86_FLAGS; in bios_getsmap()
70 v86.addr = 0x15; in bios_getsmap()
71 v86.eax = 0xe820; /* int 0x15 function 0xe820 */ in bios_getsmap()
72 v86.ecx = SMAP_BUFSIZE; in bios_getsmap()
73 v86.edx = SMAP_SIG; in bios_getsmap()
74 v86.es = VTOPSEG(&buf); in bios_getsmap()
75 v86.edi = VTOPOFF(&buf); in bios_getsmap()
77 if (V86_CY(v86.efl) || v86.eax != SMAP_SIG || in bios_getsmap()
78 v86.ecx < sizeof(buf.smap) || v86.ecx > SMAP_BUFSIZE) in bios_getsmap()
[all …]
H A Dpxe.c319 bzero(&v86, sizeof (v86)); in pxenv_call()
324 v86.ctl = V86_ADDR | V86_CALLF | V86_FLAGS; in pxenv_call()
325 v86.es = VTOPSEG(ptr); in pxenv_call()
326 v86.edi = VTOPOFF(ptr); in pxenv_call()
327 v86.addr = (VTOPSEG(__pxenventry) << 16) | VTOPOFF(__pxenventry); in pxenv_call()
328 v86.ebx = func; in pxenv_call()
330 v86.ctl = V86_FLAGS; in pxenv_call()
341 bzero(&v86, sizeof (v86)); in bangpxe_call()
346 v86.ctl = V86_ADDR | V86_CALLF | V86_FLAGS; in bangpxe_call()
347 v86.edx = VTOPSEG(ptr); in bangpxe_call()
[all …]
H A Dvidconsole.c898 v86.ctl = 0; in vidc_biosputchar()
899 v86.addr = 0x10; in vidc_biosputchar()
900 v86.eax = 0xe00 | (c & 0xff); in vidc_biosputchar()
901 v86.ebx = 0x7; in vidc_biosputchar()
931 v86.ctl = 0; in vidc_getchar()
932 v86.addr = 0x16; in vidc_getchar()
933 v86.eax = 0x0; in vidc_getchar()
935 if ((v86.eax & 0xff) != 0) { in vidc_getchar()
936 return (v86.eax & 0xff); in vidc_getchar()
940 switch (v86.eax & 0xff00) { in vidc_getchar()
[all …]
H A Dbiospnp.c288 v86.ctl = V86_ADDR | V86_CALLF; in biospnp_call()
289 v86.addr = ((uint32_t)pnp_Icheck->pnp_rmcs << 16) + pnp_Icheck->pnp_rmip; in biospnp_call()
293 return (v86.eax & 0xffff); in biospnp_call()
/illumos-gate/usr/src/boot/i386/isoboot/
H A Disoboot.c136 v86.ebx = 0; in bios_getmem()
138 v86.ctl = V86_FLAGS; in bios_getmem()
139 v86.addr = MEM_EXT; /* int 0x15 function 0xe820 */ in bios_getmem()
140 v86.eax = 0xe820; in bios_getmem()
141 v86.ecx = sizeof (struct bios_smap); in bios_getmem()
142 v86.edx = SMAP_SIG; in bios_getmem()
143 v86.es = VTOPSEG(&smap); in bios_getmem()
144 v86.edi = VTOPOFF(&smap); in bios_getmem()
146 if ((v86.efl & 1) || (v86.eax != SMAP_SIG)) in bios_getmem()
178 } while (v86.ebx != 0); in bios_getmem()
[all …]
/illumos-gate/usr/src/boot/i386/loader/
H A Dmain.c98 bzero(&v86, sizeof (v86)); in main()
99 v86.efl = PSL_RESERVED_DEFAULT | PSL_I; in main()
/illumos-gate/usr/src/boot/i386/btx/lib/
H A Dbtxv86.h54 #define v86 __v86 macro