class Interrupts

Defined at line 27 of file ../../src/graphics/display/drivers/intel-display/interrupts.h

Public Methods

void Interrupts (const Interrupts & )

Copying and moving are not allowed.

Defined at line 41 of file ../../src/graphics/display/drivers/intel-display/interrupts.h

Interrupts & operator= (const Interrupts & )

Defined at line 42 of file ../../src/graphics/display/drivers/intel-display/interrupts.h

void Interrupts (Interrupts && )

Defined at line 43 of file ../../src/graphics/display/drivers/intel-display/interrupts.h

Interrupts & operator= (Interrupts && )

Defined at line 44 of file ../../src/graphics/display/drivers/intel-display/interrupts.h

void Interrupts ()

Defined at line 212 of file ../../src/graphics/display/drivers/intel-display/interrupts.cc

void ~Interrupts ()

Defined at line 214 of file ../../src/graphics/display/drivers/intel-display/interrupts.cc

zx_status_t Init (PipeVsyncCallback pipe_vsync_callback, HotplugCallback hotplug_callback, const ddk::Pci & pci, fdf::MmioBuffer * mmio_space, uint16_t device_id)

Must be called exactly once.

Must be called from a driver-runtime managed dispatcher.

`mmio_space` must be non-null and outlive the initialized `Interrupts`

instance.

Defined at line 360 of file ../../src/graphics/display/drivers/intel-display/interrupts.cc

void FinishInit ()

Defined at line 422 of file ../../src/graphics/display/drivers/intel-display/interrupts.cc

void Resume ()

Defined at line 437 of file ../../src/graphics/display/drivers/intel-display/interrupts.cc

void Destroy ()

Defined at line 216 of file ../../src/graphics/display/drivers/intel-display/interrupts.cc

void EnablePipeInterrupts (PipeId pipe_id, bool enable)

Enable or disable interrupt generation from `pipe`.

This method enables and disables all the pipe-level interrupts that we are

prepared to handle.

Transcoder VSync (vertical sync) interrupts trigger callbacks to the

PipeVsyncCallback provided to `Init()`. The callbacks are performed on the

internal thread dedicated to interrupt handling.

Defined at line 338 of file ../../src/graphics/display/drivers/intel-display/interrupts.cc

zx_status_t SetGpuInterruptCallback (const intel_gpu_core_interrupt_t & gpu_interrupt_callback, uint32_t gpu_interrupt_mask)

The GPU driver uses this to plug into the interrupt stream.

On Tiger Lake, `gpu_callback` will be called during an interrupt

from the graphics hardware if the Graphics Primary Interrupt register

indicates there are GT interrupts pending.

On Skylake and Kaby Lake, `gpu_callback` will be called during an interrupt

from the graphics hardware if the Display Interrupt Control register has

any bits in `gpu_interrupt_mask` set.

Defined at line 349 of file ../../src/graphics/display/drivers/intel-display/interrupts.cc