blob: 3a0dd78ddb38f88fa7b447a51702f3539c0590d1 [file] [log] [blame]
Joonas Lahtinenc838d712015-12-18 13:08:15 +02001/*
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
30struct i915_params {
31 int modeset;
32 int panel_ignore_lid;
33 int semaphores;
34 int lvds_channel_mode;
35 int panel_use_ssc;
36 int vbt_sdvo_panel_type;
37 int enable_rc6;
38 int enable_dc;
39 int enable_fbc;
40 int enable_ppgtt;
41 int enable_execlists;
42 int enable_psr;
43 unsigned int preliminary_hw_support;
44 int disable_power_well;
45 int enable_ips;
46 int invert_brightness;
47 int enable_cmd_parser;
Dave Gordonfce91f22016-05-20 11:42:42 +010048 int enable_guc_loading;
49 int enable_guc_submission;
Joonas Lahtinen482bfe52015-12-18 13:08:16 +020050 int guc_log_level;
Daniel Vetter5a21b662016-05-24 17:13:53 +020051 int use_mmio_flip;
Joonas Lahtinen482bfe52015-12-18 13:08:16 +020052 int mmio_debug;
53 int edp_vswing;
Imre Deak4fec15d2016-03-16 13:39:08 +020054 unsigned int inject_load_failure;
Joonas Lahtinenc838d712015-12-18 13:08:15 +020055 /* leave bools at the end to not create holes */
56 bool enable_hangcheck;
57 bool fastboot;
58 bool prefault_disable;
59 bool load_detect_test;
Maarten Lankhorst522a63d2016-08-05 23:28:28 +030060 bool force_reset_modeset_test;
Joonas Lahtinenc838d712015-12-18 13:08:15 +020061 bool reset;
62 bool disable_display;
Joonas Lahtinenc838d712015-12-18 13:08:15 +020063 bool verbose_state_checks;
64 bool nuclear_pageflip;
Nathan Schulte7cc96132016-03-15 10:14:05 -050065 bool enable_dp_mst;
Yetunde Adebisie7156c82016-04-05 15:10:52 +010066 bool enable_dpcd_backlight;
Zhi Wang0ad35fe2016-06-16 08:07:00 -040067 bool enable_gvt;
Joonas Lahtinenc838d712015-12-18 13:08:15 +020068};
69
70extern struct i915_params i915 __read_mostly;
71
72#endif
73