StrikeBox/modules/core/include/vixen/hw/basic/gsi.h
StrikerX3 3ef26120ee Replace CPU modules with virt86
Restructure CMake projects
2019-02-20 23:38:36 -03:00

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() {}
};
}