intel.h 860 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. */
  4. #ifndef __SOUND_HDA_INTEL_H
  5. #define __SOUND_HDA_INTEL_H
  6. #include "hda_controller.h"
  7. struct hda_intel {
  8. struct azx chip;
  9. /* for pending irqs */
  10. struct work_struct irq_pending_work;
  11. /* sync probing */
  12. struct completion probe_wait;
  13. struct delayed_work probe_work;
  14. /* card list (for power_save trigger) */
  15. struct list_head list;
  16. /* extra flags */
  17. unsigned int irq_pending_warned:1;
  18. unsigned int probe_continued:1;
  19. unsigned int runtime_pm_disabled:1;
  20. /* vga_switcheroo setup */
  21. unsigned int use_vga_switcheroo:1;
  22. unsigned int vga_switcheroo_registered:1;
  23. unsigned int init_failed:1; /* delayed init failed */
  24. unsigned int freed:1; /* resources already released */
  25. bool need_i915_power:1; /* the hda controller needs i915 power */
  26. int probe_retry; /* being probe-retry */
  27. };
  28. #endif