xref: /dragonfly/sys/dev/drm/i915/i915_params.h (revision 9348a738)
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 #include <stdbool.h>
30 
31 struct i915_params {
32 	int modeset;
33 	int panel_ignore_lid;
34 	int semaphores;
35 	int lvds_channel_mode;
36 	int panel_use_ssc;
37 	int vbt_sdvo_panel_type;
38 	int enable_rc6;
39 	int enable_dc;
40 	int enable_fbc;
41 	int enable_ppgtt;
42 	int enable_execlists;
43 	int enable_psr;
44 	unsigned int preliminary_hw_support;
45 	int disable_power_well;
46 	int enable_ips;
47 	int invert_brightness;
48 	int enable_cmd_parser;
49 	int guc_log_level;
50 	int use_mmio_flip;
51 	int mmio_debug;
52 	int edp_vswing;
53 	/* leave bools at the end to not create holes */
54 	bool enable_hangcheck;
55 	bool fastboot;
56 	bool prefault_disable;
57 	bool load_detect_test;
58 	int reset;
59 	bool disable_display;
60 	bool enable_guc_submission;
61 	bool verbose_state_checks;
62 	bool nuclear_pageflip;
63 };
64 
65 extern struct i915_params i915 __read_mostly;
66 
67 #endif
68 
69