dc68054305
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.) - Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber) - Restore 20+ local/scripts (audit, lint, test, build helpers) - Restore src/cook/scheduler.rs, status.rs, gnu-config/ - Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh - Recover TLC source from HEAD (was overwritten by 0.2.3 checkout) - Recover 11 local/docs plans from HEAD (were overwritten) - Recover qt6-wayland-smoke symlink from HEAD - Fix MOTD: remove garbled ASCII art, use clean text - Update version: 0.2.0 -> 0.2.4 in os-release, motd, config - Reduce filesystem_size: 1536 -> 512 MiB - Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages - Reduce pcid scheme log verbosity: info -> debug
65 lines
1.8 KiB
C
65 lines
1.8 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_IRQDOMAIN_H
|
|
#define _ASM_IRQDOMAIN_H
|
|
|
|
#include <linux/irqdomain.h>
|
|
#include <asm/hw_irq.h>
|
|
|
|
#ifdef CONFIG_X86_LOCAL_APIC
|
|
enum {
|
|
X86_IRQ_ALLOC_LEGACY = 0x1,
|
|
};
|
|
|
|
extern int x86_fwspec_is_ioapic(struct irq_fwspec *fwspec);
|
|
extern int x86_fwspec_is_hpet(struct irq_fwspec *fwspec);
|
|
|
|
extern struct irq_domain *x86_vector_domain;
|
|
|
|
extern void init_irq_alloc_info(struct irq_alloc_info *info,
|
|
const struct cpumask *mask);
|
|
extern void copy_irq_alloc_info(struct irq_alloc_info *dst,
|
|
struct irq_alloc_info *src);
|
|
#endif /* CONFIG_X86_LOCAL_APIC */
|
|
|
|
#ifdef CONFIG_X86_IO_APIC
|
|
struct device_node;
|
|
struct irq_data;
|
|
|
|
enum ioapic_domain_type {
|
|
IOAPIC_DOMAIN_INVALID,
|
|
IOAPIC_DOMAIN_LEGACY,
|
|
IOAPIC_DOMAIN_STRICT,
|
|
IOAPIC_DOMAIN_DYNAMIC,
|
|
};
|
|
|
|
struct ioapic_domain_cfg {
|
|
enum ioapic_domain_type type;
|
|
const struct irq_domain_ops *ops;
|
|
struct device_node *dev;
|
|
};
|
|
|
|
extern const struct irq_domain_ops mp_ioapic_irqdomain_ops;
|
|
|
|
extern int mp_irqdomain_alloc(struct irq_domain *domain, unsigned int virq,
|
|
unsigned int nr_irqs, void *arg);
|
|
extern void mp_irqdomain_free(struct irq_domain *domain, unsigned int virq,
|
|
unsigned int nr_irqs);
|
|
extern int mp_irqdomain_activate(struct irq_domain *domain,
|
|
struct irq_data *irq_data, bool reserve);
|
|
extern void mp_irqdomain_deactivate(struct irq_domain *domain,
|
|
struct irq_data *irq_data);
|
|
extern int mp_irqdomain_ioapic_idx(struct irq_domain *domain);
|
|
#endif /* CONFIG_X86_IO_APIC */
|
|
|
|
#ifdef CONFIG_PCI_MSI
|
|
void x86_create_pci_msi_domain(void);
|
|
struct irq_domain *native_create_pci_msi_domain(void);
|
|
extern struct irq_domain *x86_pci_msi_default_domain;
|
|
#else
|
|
static inline void x86_create_pci_msi_domain(void) { }
|
|
#define native_create_pci_msi_domain NULL
|
|
#define x86_pci_msi_default_domain NULL
|
|
#endif
|
|
|
|
#endif
|