Given an offset that was read from/written to, return a tuple of the relevant IRQ and whether the offset refers to the high bits of that register.
(selector: u8)
| 120 | /// Given an offset that was read from/written to, return a tuple of the relevant IRQ and whether |
| 121 | /// the offset refers to the high bits of that register. |
| 122 | fn decode_irq_from_selector(selector: u8) -> (usize, bool) { |
| 123 | ( |
| 124 | ((selector - IOWIN_OFF) / IOWIN_SCALE) as usize, |
| 125 | selector & 1 != 0, |
| 126 | ) |
| 127 | } |
| 128 | |
| 129 | pub struct Ioapic { |
| 130 | id: String, |
no outgoing calls
no test coverage detected