From 6fd02e09183c6fcf5f647ae485433110eb2b84c1 Mon Sep 17 00:00:00 2001 From: Elliott Mitchell Date: Sat, 4 Jun 2022 13:39:41 -0700 Subject: [PATCH] intrcompat: add "interrupt_t" typedef for all architectures For code which doesn't care about the underlying structure and simply needs to have a common name. Differential Revision: https://reviews.freebsd.org/D39178 --- sys/powerpc/include/interrupt.h | 6 ++++++ sys/sys/intr.h | 6 ++++++ sys/x86/include/interrupt.h | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/sys/powerpc/include/interrupt.h b/sys/powerpc/include/interrupt.h index 7f009fdc201118..6a8d7357a1b63b 100644 --- a/sys/powerpc/include/interrupt.h +++ b/sys/powerpc/include/interrupt.h @@ -28,6 +28,12 @@ #ifndef __MACHINE_INTERRUPT_H__ #define __MACHINE_INTERRUPT_H__ +/* FreeBSD standard interrupt controller interface */ + +typedef struct powerpc_intr interrupt_t; + +/* FreeBSD standard interrupt controller interface */ + #define INTR_VECTORS 256 #define MAX_PICS 32 diff --git a/sys/sys/intr.h b/sys/sys/intr.h index 5d46a4aba50bf4..2403ff7c90f959 100644 --- a/sys/sys/intr.h +++ b/sys/sys/intr.h @@ -39,6 +39,12 @@ #include +/* FreeBSD standard interrupt controller interface */ + +typedef struct intr_irqsrc interrupt_t; + +/* FreeBSD standard interrupt controller interface */ + #define INTR_IRQ_INVALID 0xFFFFFFFF enum intr_map_data_type { diff --git a/sys/x86/include/interrupt.h b/sys/x86/include/interrupt.h index d7bfcdc126a9e4..0729e254a4b5be 100644 --- a/sys/x86/include/interrupt.h +++ b/sys/x86/include/interrupt.h @@ -30,6 +30,12 @@ #ifdef _KERNEL +/* FreeBSD standard interrupt controller interface */ + +typedef struct intsrc interrupt_t; + +/* FreeBSD standard interrupt controller interface */ + /* * Values used in determining the allocation of IRQ values among * different types of I/O interrupts. These values are used as