i915_params.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. #ifndef _I915_PARAMS_H_
  25. #define _I915_PARAMS_H_
  26. #include <linux/cache.h> /* for __read_mostly */
  27. #define I915_PARAMS_FOR_EACH(func) \
  28. func(char *, vbt_firmware); \
  29. func(int, modeset); \
  30. func(int, panel_ignore_lid); \
  31. func(int, semaphores); \
  32. func(int, lvds_channel_mode); \
  33. func(int, panel_use_ssc); \
  34. func(int, vbt_sdvo_panel_type); \
  35. func(int, enable_rc6); \
  36. func(int, enable_dc); \
  37. func(int, enable_fbc); \
  38. func(int, enable_ppgtt); \
  39. func(int, enable_execlists); \
  40. func(int, enable_psr); \
  41. func(int, disable_power_well); \
  42. func(int, enable_ips); \
  43. func(int, invert_brightness); \
  44. func(int, enable_guc_loading); \
  45. func(int, enable_guc_submission); \
  46. func(int, guc_log_level); \
  47. func(char *, guc_firmware_path); \
  48. func(char *, huc_firmware_path); \
  49. func(int, use_mmio_flip); \
  50. func(int, mmio_debug); \
  51. func(int, edp_vswing); \
  52. func(int, reset); \
  53. func(unsigned int, inject_load_failure); \
  54. /* leave bools at the end to not create holes */ \
  55. func(bool, alpha_support); \
  56. func(bool, enable_cmd_parser); \
  57. func(bool, enable_hangcheck); \
  58. func(bool, fastboot); \
  59. func(bool, prefault_disable); \
  60. func(bool, load_detect_test); \
  61. func(bool, force_reset_modeset_test); \
  62. func(bool, error_capture); \
  63. func(bool, disable_display); \
  64. func(bool, verbose_state_checks); \
  65. func(bool, nuclear_pageflip); \
  66. func(bool, enable_dp_mst); \
  67. func(bool, enable_dpcd_backlight); \
  68. func(bool, enable_gvt)
  69. #define MEMBER(T, member) T member
  70. struct i915_params {
  71. I915_PARAMS_FOR_EACH(MEMBER);
  72. };
  73. #undef MEMBER
  74. extern struct i915_params i915 __read_mostly;
  75. #endif