drm/i915: Enable scanline read based on frame timestamps
[linux-block.git] / drivers / gpu / drm / i915 / i915_params.h
CommitLineData
c838d719
JL
1/*
2 * Copyright © 2015 Intel Corporation
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
13 * Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 * IN THE SOFTWARE.
22 *
23 */
24
25#ifndef _I915_PARAMS_H_
26#define _I915_PARAMS_H_
27
28#include <linux/cache.h> /* for __read_mostly */
29
b8cf691e 30#define I915_PARAMS_FOR_EACH(func) \
ab3595bc 31 func(char *, vbt_firmware); \
b8cf691e
CW
32 func(int, modeset); \
33 func(int, panel_ignore_lid); \
34 func(int, semaphores); \
35 func(int, lvds_channel_mode); \
36 func(int, panel_use_ssc); \
37 func(int, vbt_sdvo_panel_type); \
38 func(int, enable_rc6); \
39 func(int, enable_dc); \
40 func(int, enable_fbc); \
41 func(int, enable_ppgtt); \
42 func(int, enable_execlists); \
43 func(int, enable_psr); \
b8cf691e
CW
44 func(int, disable_power_well); \
45 func(int, enable_ips); \
46 func(int, invert_brightness); \
47 func(int, enable_guc_loading); \
48 func(int, enable_guc_submission); \
49 func(int, guc_log_level); \
b3420dde
AH
50 func(char *, guc_firmware_path); \
51 func(char *, huc_firmware_path); \
b8cf691e
CW
52 func(int, use_mmio_flip); \
53 func(int, mmio_debug); \
54 func(int, edp_vswing); \
ed35dd7b 55 func(int, reset); \
b8cf691e
CW
56 func(unsigned int, inject_load_failure); \
57 /* leave bools at the end to not create holes */ \
1a2010ca 58 func(bool, alpha_support); \
b8cf691e
CW
59 func(bool, enable_cmd_parser); \
60 func(bool, enable_hangcheck); \
61 func(bool, fastboot); \
62 func(bool, prefault_disable); \
63 func(bool, load_detect_test); \
64 func(bool, force_reset_modeset_test); \
b8cf691e
CW
65 func(bool, error_capture); \
66 func(bool, disable_display); \
67 func(bool, verbose_state_checks); \
68 func(bool, nuclear_pageflip); \
69 func(bool, enable_dp_mst); \
d2939424 70 func(bool, enable_dpcd_backlight); \
7d9a1e41 71 func(bool, enable_gvt)
b8cf691e
CW
72
73#define MEMBER(T, member) T member
c838d719 74struct i915_params {
b8cf691e 75 I915_PARAMS_FOR_EACH(MEMBER);
c838d719 76};
b8cf691e 77#undef MEMBER
c838d719 78
4f044a88 79extern struct i915_params i915_modparams __read_mostly;
c838d719
JL
80
81#endif
82