1#ifndef INTEL_OPTIONS_H
2#define INTEL_OPTIONS_H
3
4#include <xorg-server.h>
5#include <xf86.h>
6#include <xf86Opt.h>
7
8/*
9 * Note: "ColorKey" is provided for compatibility with the i810 driver.
10 * However, the correct option name is "VideoKey".  "ColorKey" usually
11 * refers to the tranparency key for 8+24 overlays, not for video overlays.
12 */
13
14enum intel_options {
15	OPTION_ACCEL_ENABLE,
16	OPTION_ACCEL_METHOD,
17	OPTION_BACKLIGHT,
18	OPTION_EDID,
19	OPTION_DRI,
20	OPTION_PRESENT,
21	OPTION_VIDEO_KEY,
22	OPTION_COLOR_KEY,
23	OPTION_TILING_2D,
24	OPTION_TILING_FB,
25	OPTION_ROTATION,
26	OPTION_VSYNC,
27	OPTION_PAGEFLIP,
28	OPTION_SWAPBUFFERS_WAIT,
29	OPTION_TRIPLE_BUFFER,
30	OPTION_PREFER_OVERLAY,
31	OPTION_HOTPLUG,
32	OPTION_REPROBE,
33#if defined(XvMCExtension) && defined(ENABLE_XVMC)
34	OPTION_XVMC,
35#define INTEL_XVMC 1
36#endif
37#ifdef USE_SNA
38	OPTION_ZAPHOD,
39	OPTION_VIRTUAL,
40	OPTION_TEAR_FREE,
41	OPTION_CRTC_PIXMAPS,
42#endif
43#ifdef USE_UXA
44	OPTION_FALLBACKDEBUG,
45	OPTION_DEBUG_FLUSH_BATCHES,
46	OPTION_DEBUG_FLUSH_CACHES,
47	OPTION_DEBUG_WAIT,
48	OPTION_BUFFER_CACHE,
49#endif
50	NUM_OPTIONS,
51};
52
53extern const OptionInfoRec intel_options[];
54OptionInfoPtr intel_options_get(ScrnInfoPtr scrn);
55unsigned intel_option_cast_to_unsigned(OptionInfoPtr, int id, unsigned val);
56Bool intel_option_cast_to_bool(OptionInfoPtr, int id, Bool val);
57
58#endif /* INTEL_OPTIONS_H */
59