Skip to content

Commit

Permalink
intrcompat: move pic_base_class declaration to sys/interrupt.h
Browse files Browse the repository at this point in the history
As all FreeBSD architectures provide a PIC base class, move the
declaration to the common header.
  • Loading branch information
ehem committed Dec 23, 2024
1 parent ba63dfe commit 0aca61c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 0 additions & 4 deletions sys/powerpc/include/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@

/* FreeBSD standard interrupt controller interface */

#include <sys/kobj.h>

typedef struct powerpc_intr interrupt_t;

#include <sys/interrupt.h>

DECLARE_CLASS(pic_base_class);

/* FreeBSD standard interrupt controller interface */

#define INTR_VECTORS 256
Expand Down
8 changes: 8 additions & 0 deletions sys/sys/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,20 @@
#include <sys/_lock.h>
#include <sys/_mutex.h>
#include <sys/ck.h>
#include <sys/kobj.h>
#include <sys/types.h>

struct intr_event;
struct intr_thread;
struct trapframe;

/*
* Common base class for PICs. All FreeBSD architectures provide this,
* so present in this header.
*/

DECLARE_CLASS(pic_base_class);

/*
* Describe a hardware interrupt handler.
*
Expand Down
4 changes: 0 additions & 4 deletions sys/sys/intr.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,10 @@

/* FreeBSD standard interrupt controller interface */

#include <sys/kobj.h>

typedef struct intr_irqsrc interrupt_t;

#include <sys/interrupt.h>

DECLARE_CLASS(pic_base_class);

/* FreeBSD standard interrupt controller interface */

#define INTR_IRQ_INVALID 0xFFFFFFFF
Expand Down
4 changes: 0 additions & 4 deletions sys/x86/include/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,10 @@

/* FreeBSD standard interrupt controller interface */

#include <sys/kobj.h>

typedef struct intsrc interrupt_t;

#include <sys/interrupt.h>

DECLARE_CLASS(pic_base_class);

/* FreeBSD standard interrupt controller interface */

typedef struct { device_t next, prev; } pic_base_softc_t;
Expand Down

0 comments on commit 0aca61c

Please sign in to comment.