1/** 2 * \file 3 * \brief Video BIOS int 10h interface. 4 */ 5 6/* 7 * Copyright (c) 2007, 2008, 2009, ETH Zurich. 8 * All rights reserved. 9 * 10 * This file is distributed under the terms in the attached LICENSE file. 11 * If you do not find this file, copies can be found by writing to: 12 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 13 */ 14 15#ifndef INT10_H 16#define INT10_H 17 18#define REALMODE_MEM_SIZE (1024 * 1024) 19 20struct int10_regs { 21 uint32_t eax; 22 uint32_t ebx; 23 uint32_t ecx; 24 uint32_t edx; 25 uint32_t esi; 26 uint32_t edi; 27 uint32_t ebp; 28 uint16_t es; 29 uint32_t eflags; 30}; 31 32void int10(struct int10_regs *regs); 33void int10_init(void *mem); 34 35#endif 36