103b705cfSriastradh#ifndef INTEL_OPTIONS_H
203b705cfSriastradh#define INTEL_OPTIONS_H
303b705cfSriastradh
442542f5fSchristos#include <xorg-server.h>
503b705cfSriastradh#include <xf86.h>
603b705cfSriastradh#include <xf86Opt.h>
703b705cfSriastradh
803b705cfSriastradh/*
903b705cfSriastradh * Note: "ColorKey" is provided for compatibility with the i810 driver.
1003b705cfSriastradh * However, the correct option name is "VideoKey".  "ColorKey" usually
1103b705cfSriastradh * refers to the tranparency key for 8+24 overlays, not for video overlays.
1203b705cfSriastradh */
1303b705cfSriastradh
1403b705cfSriastradhenum intel_options {
15fe8aea9eSmrg	OPTION_ACCEL_ENABLE,
1603b705cfSriastradh	OPTION_ACCEL_METHOD,
1703b705cfSriastradh	OPTION_BACKLIGHT,
18fe8aea9eSmrg	OPTION_EDID,
1903b705cfSriastradh	OPTION_DRI,
2042542f5fSchristos	OPTION_PRESENT,
2103b705cfSriastradh	OPTION_VIDEO_KEY,
2203b705cfSriastradh	OPTION_COLOR_KEY,
2303b705cfSriastradh	OPTION_TILING_2D,
2403b705cfSriastradh	OPTION_TILING_FB,
25fe8aea9eSmrg	OPTION_ROTATION,
2642542f5fSchristos	OPTION_VSYNC,
2742542f5fSchristos	OPTION_PAGEFLIP,
2803b705cfSriastradh	OPTION_SWAPBUFFERS_WAIT,
2903b705cfSriastradh	OPTION_TRIPLE_BUFFER,
3003b705cfSriastradh	OPTION_PREFER_OVERLAY,
3103b705cfSriastradh	OPTION_HOTPLUG,
3203b705cfSriastradh	OPTION_REPROBE,
3303b705cfSriastradh#if defined(XvMCExtension) && defined(ENABLE_XVMC)
3403b705cfSriastradh	OPTION_XVMC,
3503b705cfSriastradh#define INTEL_XVMC 1
3603b705cfSriastradh#endif
3703b705cfSriastradh#ifdef USE_SNA
3803b705cfSriastradh	OPTION_ZAPHOD,
3942542f5fSchristos	OPTION_VIRTUAL,
4003b705cfSriastradh	OPTION_TEAR_FREE,
4103b705cfSriastradh	OPTION_CRTC_PIXMAPS,
4203b705cfSriastradh#endif
4303b705cfSriastradh#ifdef USE_UXA
4403b705cfSriastradh	OPTION_FALLBACKDEBUG,
4503b705cfSriastradh	OPTION_DEBUG_FLUSH_BATCHES,
4603b705cfSriastradh	OPTION_DEBUG_FLUSH_CACHES,
4703b705cfSriastradh	OPTION_DEBUG_WAIT,
4803b705cfSriastradh	OPTION_BUFFER_CACHE,
4903b705cfSriastradh#endif
5003b705cfSriastradh	NUM_OPTIONS,
5103b705cfSriastradh};
5203b705cfSriastradh
5303b705cfSriastradhextern const OptionInfoRec intel_options[];
5403b705cfSriastradhOptionInfoPtr intel_options_get(ScrnInfoPtr scrn);
55fe8aea9eSmrgunsigned intel_option_cast_to_unsigned(OptionInfoPtr, int id, unsigned val);
56fe8aea9eSmrgBool intel_option_cast_to_bool(OptionInfoPtr, int id, Bool val);
5703b705cfSriastradh
5803b705cfSriastradh#endif /* INTEL_OPTIONS_H */
59