140 return 0x00_u8 == (
::portRead8(control) & 0x80_u8);
static void disable() noexcept
Disable interrupts.
static auto getMask() noexcept -> igros_word_t
Get interrupts mask.
static void mask(const irq_t number) noexcept
Mask interrupt.
static void setMask(const igros_word_t mask=0xFFFF_u16) noexcept
Set interrupts mask.
static void enable() noexcept
Enable interrupts.
static void init() noexcept
Init IRQ.
static void unmask(const irq_t number) noexcept
Unmask interrupt.
static void eoi(const irq_t number) noexcept
Send EOI (IRQ done).
static auto isSpurious(const irq_t number) noexcept -> bool
Check if IRQ is spurious (only lines 7 and 15 can be).
std::uint16_t igros_word_t
16-bit unsigned integer
std::uint8_t igros_byte_t
8-bit unsigned integer
std::uint32_t igros_dword_t
32-bit unsigned integer
void irqEnable() noexcept
Enable interrupts.
void irqDisable() noexcept
Disable interrupts.
Interrupts low-level operations.
Kernel text print functions.
Code shared by i386 and x86_64: ports, interrupts, exceptions, paging.
constexpr auto PIC_MASTER_DATA
Master PIC data (mask) port.
constexpr auto PIC_SLAVE_DATA
Slave PIC data (mask) port.
constexpr auto PIC_MASTER_CONTROL
Master PIC command port.
constexpr auto PIC_SLAVE_CONTROL
Slave PIC command port.
irq_t
Interrupts number enumeration (PIC lines).
@ LPT1
Master PIC spurious.
@ ATA_SECONDARY
Slave PIC spurious.
IO low-level port operations.
auto portRead8(const igros::x86::port_t addr) noexcept -> igros::igros_byte_t
Read byte from port.
void portWrite8(const igros::x86::port_t addr, const igros::igros_byte_t value) noexcept
Write byte to port.
Interrupts low-level operations.