grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / graphics / dispinfo.h
blob6777a25a654768fa75ad824b49efe06730ba6c1c
1 #ifndef DISPINFO_H
2 #define DISPINFO_H
4 #ifndef PROTO_GRAPHICS_H
5 #include <proto/graphics.h>
6 #endif
8 /****************************************************************************************/
11 RTG display Mode ID construction:
13 nnnn xx yy
15 nnnn - Number of card in the system, counting starts from 0x0010.
16 xx - sync index
17 yy - pixelformat index
19 xx and yy parts are obtained from the HIDD. Card number is maintained by
20 graphics.library. Resulting mode ID is obtained by logical OR between these
21 two components.
23 As i mentioned, RTG mode counting starts from 0x0010. Lower number means
24 Amiga(tm) chipset mode. Modes from 0x0000 to 0x000A are officially defined
25 in include/graphics/modeid.h, modes 0x000B - 0x000F are reserved, just in case.
27 Note that chipset mode IDs store modifier flags instead of sync/pixelformat object
28 indexes. When chipset driver is implemented, this will need to be handled in a special
29 way (by overloading mode ID processing methods in the driver).
31 Sonic <pavel_fedin@mail.ru>
34 #define AROS_RTG_MONITOR_ID 0x00100000 /* First RTG monitor ID */
35 #define AROS_MONITOR_ID_MASK 0xFFFF0000 /* Internal monitor ID mask */
37 /****************************************************************************************/
39 HIDDT_ModeID get_best_resolution_and_depth(struct monitor_driverdata *mdd, struct GfxBase *GfxBase);
40 struct monitor_driverdata *MonitorFromSpec(struct MonitorSpec *mspc, struct GfxBase *GfxBase);
42 /****************************************************************************************/
44 #endif