Interrupt controller interface.
void setPortBase(const u16 base)
Set port I/O base address.
IntelIO m_slave
I/O instance for slave.
u8 inb(u16 port) const
Read a byte from a port.
static const uint InterruptBase
Base offset for interrupt vectors from the PIC.
unsigned int uint
Unsigned integer number.
void outb(u16 port, u8 byte)
Output a byte to a port.
IntelIO m_master
I/O instance for master.
virtual Result enable(uint irq)
Enable hardware interrupt (IRQ).
Result initialize()
Initialize the PIC.
static const uint SlaveBase
Slave PIC I/O port base offset.
uint m_base
Interrupt number base offset.
virtual Result clear(uint irq)
Clear hardware interrupt (IRQ).
virtual Result disable(uint irq)
Disable hardware interrupt (IRQ).
static const uint MasterBase
Master PIC I/O port base offset.