7 #include <linux/connector.h>
22 #include <video/uvesafb.h>
24 //#define ulog(args...) do {} while (0)
25 //#define ulog(args...) fprintf(stdout, ##args)
28 #define MAX_LOG_LEVEL LOG_DEBUG
30 #define MAX_LOG_LEVEL LOG_WARNING
33 /* klibc doesn't provide setlogmask(), so simulate it here */
34 #define ulog(level, args...) if (level <= MAX_LOG_LEVEL) { syslog(level, ##args); }
37 int v86_int(int num
, struct v86_regs
*regs
);
38 int v86_task(struct uvesafb_task
*tsk
, u8
*buf
);
41 #define IVTBDA_BASE 0x00000
42 #define IVTBDA_SIZE 0x01000
43 #define DEFAULT_STACK_SIZE 0x02000
44 #define REAL_MEM_BASE 0x10000
45 #define REAL_MEM_SIZE (0x30000 - REAL_MEM_BASE)
46 #define EBDA_BASE 0x9fc00
47 #define VRAM_BASE 0xa0000
48 #define VRAM_SIZE 0x20000
49 #define SBIOS_SIZE 0x20000
50 #define SBIOS_BASE 0xe0000
51 #define VBIOS_BASE 0xc0000
53 u32
v86_mem_alloc(int size
);
54 void v86_mem_free(u32 m
);
55 int v86_mem_init(void);
56 void v86_mem_cleanup(void);
61 void v_wrb(u32 addr
, u8 val
);
62 void v_wrw(u32 addr
, u16 val
);
63 void v_wrl(u32 addr
, u32 val
);
66 extern int iopl (int __level
);
67 extern int ioperm (unsigned long int __from
, unsigned long int __num
,