Skip to content

Commit

Permalink
intrcompat: add "interrupt_t" typedef for all architectures
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ehem committed Dec 3, 2024
1 parent b19b4a2 commit ea79f07
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sys/powerpc/include/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions sys/sys/intr.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
#include <sys/_types_interrupt.h>
#include <sys/types.h>

Check warning on line 42 in sys/sys/intr.h

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line

Check warning on line 42 in sys/sys/intr.h

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line

/* FreeBSD standard interrupt controller interface */

Check warning on line 44 in sys/sys/intr.h

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line

typedef struct intr_irqsrc interrupt_t;

/* FreeBSD standard interrupt controller interface */

Check warning on line 49 in sys/sys/intr.h

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
#define INTR_IRQ_INVALID 0xFFFFFFFF

struct resource;
Expand Down
6 changes: 6 additions & 0 deletions sys/x86/include/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 41 in sys/x86/include/interrupt.h

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
Expand Down

0 comments on commit ea79f07

Please sign in to comment.