mirror of
https://github.com/StrikerX3/StrikeBox.git
synced 2024-06-21 13:52:36 -04:00
23 lines
375 B
C++
23 lines
375 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "irq.h"
|
|
#include "ioapic.h"
|
|
#include "../bus/isabus.h"
|
|
|
|
namespace vixen {
|
|
|
|
#define GSI_NUM_PINS IOAPIC_NUM_PINS
|
|
|
|
// Global System Interrupts
|
|
struct GSI : public IRQHandler {
|
|
IRQ *i8259IRQs[ISA_NUM_IRQS];
|
|
IRQ *ioapicIRQs[IOAPIC_NUM_PINS];
|
|
|
|
void HandleIRQ(uint8_t irqNum, bool level) override;
|
|
virtual ~GSI() {}
|
|
};
|
|
|
|
}
|