Lines Matching +full:- +full:e
9 * Copyright (C) 1996-1999 SciTech Software, Inc.
41 * Jason ported this file to u-boot to run the ATI video card BIOS
42 * in u-boot. Made all the video memory be emulated during the
76 debugFlags - Flags to enable debugging options (debug builds only)
77 memSize - Amount of memory to allocate for real mode machine
78 info - Pointer to default VGA device information
111 _BE_bios_init((u32*)info->LowMem); in BE_init()
120 info - Pointer to VGA device information to make current
132 _BE_env.vgaInfo.function = info->function; in BE_setVGA()
133 _BE_env.vgaInfo.device = info->device; in BE_setVGA()
134 _BE_env.vgaInfo.bus = info->bus; in BE_setVGA()
135 _BE_env.vgaInfo.pcidev = info->pcidev; in BE_setVGA()
137 _BE_env.vgaInfo.pciInfo = info->pciInfo; in BE_setVGA()
139 _BE_env.vgaInfo.BIOSImage = info->BIOSImage; in BE_setVGA()
140 if (info->BIOSImage) { in BE_setVGA()
141 _BE_env.biosmem_base = (ulong) info->BIOSImage; in BE_setVGA()
142 _BE_env.biosmem_limit = 0xC0000 + info->BIOSImageLen - 1; in BE_setVGA()
147 if ((info->LowMem[0] == 0) && (info->LowMem[1] == 0) && in BE_setVGA()
148 (info->LowMem[2] == 0) && (info->LowMem[3] == 0)) in BE_setVGA()
149 _BE_bios_init((u32 *) info->LowMem); in BE_setVGA()
150 memcpy((u8 *) M.mem_base, info->LowMem, sizeof(info->LowMem)); in BE_setVGA()
155 info - Pointer to VGA device information to retrieve current
164 info->function = _BE_env.vgaInfo.function; in BE_getVGA()
165 info->device = _BE_env.vgaInfo.device; in BE_getVGA()
166 info->bus = _BE_env.vgaInfo.bus; in BE_getVGA()
167 info->pcidev = _BE_env.vgaInfo.pcidev; in BE_getVGA()
169 info->pciInfo = _BE_env.vgaInfo.pciInfo; in BE_getVGA()
171 info->BIOSImage = _BE_env.vgaInfo.BIOSImage; in BE_getVGA()
172 memcpy(info->LowMem, (u8 *) M.mem_base, sizeof(info->LowMem)); in BE_getVGA()
177 r_seg - Segment for pointer to convert
178 r_off - Offset for pointer to convert
184 NOTE: The memory is *always* in little endian format, son on non-x86
193 return (void *)(_BE_env.biosmem_base + addr - 0xC0000); in BE_mapRealPointer()
195 return (void *)(_BE_env.busmem_base + addr - 0xA0000); in BE_mapRealPointer()
202 len - Return the length of the VESA buffer
203 rseg - Place to store VESA buffer segment
204 roff - Place to store VESA buffer offset
212 NOTE: The memory is *always* in little endian format, son on non-x86
236 seg - Segment of code to call
237 off - Offset of code to call
238 regs - Real mode registers to load
239 sregs - Real mode segment registers to load
249 M.x86.R_EAX = regs->e.eax; in BE_callRealMode()
250 M.x86.R_EBX = regs->e.ebx; in BE_callRealMode()
251 M.x86.R_ECX = regs->e.ecx; in BE_callRealMode()
252 M.x86.R_EDX = regs->e.edx; in BE_callRealMode()
253 M.x86.R_ESI = regs->e.esi; in BE_callRealMode()
254 M.x86.R_EDI = regs->e.edi; in BE_callRealMode()
255 M.x86.R_DS = sregs->ds; in BE_callRealMode()
256 M.x86.R_ES = sregs->es; in BE_callRealMode()
257 M.x86.R_FS = sregs->fs; in BE_callRealMode()
258 M.x86.R_GS = sregs->gs; in BE_callRealMode()
265 ((u8 *) M.mem_base)[0x4005] = 0xF1; /* Illegal op-code */ in BE_callRealMode()
269 M.x86.R_SS = SEG(M.mem_size - 2); in BE_callRealMode()
270 M.x86.R_SP = OFF(M.mem_size - 2) + 2; in BE_callRealMode()
274 regs->e.cflag = M.x86.R_EFLG & F_CF; in BE_callRealMode()
275 regs->e.eax = M.x86.R_EAX; in BE_callRealMode()
276 regs->e.ebx = M.x86.R_EBX; in BE_callRealMode()
277 regs->e.ecx = M.x86.R_ECX; in BE_callRealMode()
278 regs->e.edx = M.x86.R_EDX; in BE_callRealMode()
279 regs->e.esi = M.x86.R_ESI; in BE_callRealMode()
280 regs->e.edi = M.x86.R_EDI; in BE_callRealMode()
281 sregs->ds = M.x86.R_DS; in BE_callRealMode()
282 sregs->es = M.x86.R_ES; in BE_callRealMode()
283 sregs->fs = M.x86.R_FS; in BE_callRealMode()
284 sregs->gs = M.x86.R_GS; in BE_callRealMode()
289 intno - Interrupt number to execute
290 in - Real mode registers to load
291 out - Place to store resulting real mode registers
300 M.x86.R_EAX = in->e.eax; in BE_int86()
301 M.x86.R_EBX = in->e.ebx; in BE_int86()
302 M.x86.R_ECX = in->e.ecx; in BE_int86()
303 M.x86.R_EDX = in->e.edx; in BE_int86()
304 M.x86.R_ESI = in->e.esi; in BE_int86()
305 M.x86.R_EDI = in->e.edi; in BE_int86()
312 M.x86.R_SS = SEG(M.mem_size - 1); in BE_int86()
313 M.x86.R_SP = OFF(M.mem_size - 1) - 1; in BE_int86()
316 out->e.cflag = M.x86.R_EFLG & F_CF; in BE_int86()
317 out->e.eax = M.x86.R_EAX; in BE_int86()
318 out->e.ebx = M.x86.R_EBX; in BE_int86()
319 out->e.ecx = M.x86.R_ECX; in BE_int86()
320 out->e.edx = M.x86.R_EDX; in BE_int86()
321 out->e.esi = M.x86.R_ESI; in BE_int86()
322 out->e.edi = M.x86.R_EDI; in BE_int86()
323 return out->x.ax; in BE_int86()
328 intno - Interrupt number to execute
329 in - Real mode registers to load
330 out - Place to store resulting real mode registers
331 sregs - Real mode segment registers to load
340 M.x86.R_EAX = in->e.eax; in BE_int86x()
341 M.x86.R_EBX = in->e.ebx; in BE_int86x()
342 M.x86.R_ECX = in->e.ecx; in BE_int86x()
343 M.x86.R_EDX = in->e.edx; in BE_int86x()
344 M.x86.R_ESI = in->e.esi; in BE_int86x()
345 M.x86.R_EDI = in->e.edi; in BE_int86x()
346 M.x86.R_DS = sregs->ds; in BE_int86x()
347 M.x86.R_ES = sregs->es; in BE_int86x()
348 M.x86.R_FS = sregs->fs; in BE_int86x()
349 M.x86.R_GS = sregs->gs; in BE_int86x()
356 M.x86.R_SS = SEG(M.mem_size - 1); in BE_int86x()
357 M.x86.R_SP = OFF(M.mem_size - 1) - 1; in BE_int86x()
360 out->e.cflag = M.x86.R_EFLG & F_CF; in BE_int86x()
361 out->e.eax = M.x86.R_EAX; in BE_int86x()
362 out->e.ebx = M.x86.R_EBX; in BE_int86x()
363 out->e.ecx = M.x86.R_ECX; in BE_int86x()
364 out->e.edx = M.x86.R_EDX; in BE_int86x()
365 out->e.esi = M.x86.R_ESI; in BE_int86x()
366 out->e.edi = M.x86.R_EDI; in BE_int86x()
367 sregs->ds = M.x86.R_DS; in BE_int86x()
368 sregs->es = M.x86.R_ES; in BE_int86x()
369 sregs->fs = M.x86.R_FS; in BE_int86x()
370 sregs->gs = M.x86.R_GS; in BE_int86x()
371 return out->x.ax; in BE_int86x()