fn encode_selector_from_irq(irq: usize, is_high_bits: bool) -> u8
Expand description

Given an IRQ and whether or not the selector should refer to the high bits, return a selector suitable to use as an offset to read to/write from.