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