Struct pic8259::ChainedPics[][src]

pub struct ChainedPics { /* fields omitted */ }
Expand description

A pair of chained PIC controllers. This is the standard setup on x86.

Implementations

Create a new interface for the standard PIC1 and PIC2 controllers, specifying the desired interrupt offsets.

Initialize both our PICs. We initialize them together, at the same time, because it’s traditional to do so, and because I/O operations might not be instantaneous on older processors.

Reads the interrupt masks of both PICs.

Writes the interrupt masks of both PICs.

Disables both PICs by masking all interrupts.

Do we handle this interrupt?

Figure out which (if any) PICs in our chain need to know about this interrupt. This is tricky, because all interrupts from pics[1] get chained through pics[0].

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.