Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / rom / graphics / dispinfo.h
blob758b293b780bcfb4fa212b96c12001e0f4dbf6dc
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 void BestModeIDForMonitor(struct monitor_driverdata *mdd, ULONG dipf_musthave, ULONG dipf_mustnothave,
41 UBYTE redbits, UBYTE greenbits, UBYTE bluebits, UBYTE depth, STRPTR boardname,
42 UWORD nominal_width, UWORD nominal_height, UWORD desired_width, UWORD desired_height,
43 ULONG *found_id, UWORD *found_depth, UWORD *found_width, UWORD *found_height, struct GfxBase *GfxBase);
44 struct monitor_driverdata *MonitorFromSpec(struct MonitorSpec *mspc, struct GfxBase *GfxBase);
46 /****************************************************************************************/
48 #endif