added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / arch / x86_64-pc / bootstrap / vesa.h
blobf4d503e137b239bf07c128eaa3b34aace51759bb
1 #ifndef VESA_H_
2 #define VESA_H_
4 #include "multiboot.h"
6 #ifndef _IMPLEMENTATION_
8 asm (".set getControllerInfo,0x1000");
9 asm (".set getModeInfo,0x1004");
10 asm (".set findMode,0x1008");
11 asm (".set setVbeMode,0x100c");
12 asm (".set paletteWidth,0x1010");
13 asm (".set controllerinfo,0x1014");
14 asm (".set modeinfo,0x1018");
16 extern short (*getControllerInfo)(void);
17 extern short (*getModeInfo)(long mode);
18 extern short (*setVbeMode)(long mode);
19 extern short (*paletteWidth)(long req, unsigned char *width);
20 extern short (*findMode)(int x, int y, int d);
21 extern struct vbe_controller *controllerinfo;
22 extern struct vbe_mode *modeinfo;
24 #else
26 struct vesa11Info
28 unsigned short x_resolution;
29 unsigned short y_resolution;
30 unsigned char bits_per_pixel;
31 unsigned char memory_model;
34 extern short getControllerInfo(void);
35 extern short getModeInfo(long mode);
36 extern short setVbeMode(long mode);
37 extern short paletteWidth(long req, unsigned char *width);
38 extern short findMode(int x, int y, int d);
39 extern struct vbe_controller controllerinfo;
40 extern struct vbe_mode modeinfo;
42 #endif /*_IMPLEMENTATION_ */
45 #endif /*VESA_H_*/