2 Copyright © 2007-2011, The AROS Development Team. All rights reserved.
5 Desc: VBE-related definitions.
12 #include <aros/multiboot.h>
13 #include <exec/types.h>
15 /* Our trampoline code is linked at this address */
16 #define VESA_START (void *)0x1000
18 #ifndef _IMPLEMENTATION_
20 asm (".set getControllerInfo,0x1000");
21 asm (".set getModeInfo,0x1004");
22 asm (".set findMode,0x1008");
23 asm (".set setVbeMode,0x100c");
24 asm (".set paletteWidth,0x1010");
25 asm (".set controllerinfo,0x1014");
26 asm (".set modeinfo,0x1018");
28 extern short (*getControllerInfo
)(void);
29 extern short (*getModeInfo
)(long mode
);
30 extern short (*setVbeMode
)(long mode
, BOOL set_refresh
);
31 extern short (*paletteWidth
)(long req
, unsigned char *width
);
32 extern short (*findMode
)(int x
, int y
, int d
, int vfreq
, BOOL prioritise_depth
);
33 extern struct vbe_controller
*controllerinfo
;
34 extern struct vbe_mode
*modeinfo
;
36 extern void *_binary_vesa_size
, *_binary_vesa_start
;
42 unsigned short x_resolution
;
43 unsigned short y_resolution
;
44 unsigned char bits_per_pixel
;
45 unsigned char memory_model
;
60 } __attribute__((packed
));
62 extern short getControllerInfo(void);
63 extern short getModeInfo(long mode
);
64 extern short setVbeMode(long mode
, BOOL set_refresh
);
65 extern short paletteWidth(long req
, unsigned char *width
);
66 extern short findMode(int x
, int y
, int d
, int vfreq
, BOOL prioritise_depth
);
67 extern struct vbe_controller controllerinfo
;
68 extern struct vbe_mode modeinfo
;
69 extern struct CRTCInfoBlock timings
;
71 #endif /*_IMPLEMENTATION_ */