class IntelGpuCoreProtocolClient

Defined at line 166 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

Public Members

static const uint32_t kProtocolId

Public Methods

void IntelGpuCoreProtocolClient ()

Defined at line 171 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

void IntelGpuCoreProtocolClient (const intel_gpu_core_protocol_t * proto)

Defined at line 173 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

void IntelGpuCoreProtocolClient (zx_device_t * parent)

Defined at line 176 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

void IntelGpuCoreProtocolClient (zx_device_t * parent, const char * fragment_name)

Defined at line 187 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t CreateFromDevice (zx_device_t * parent, IntelGpuCoreProtocolClient * result)

Create a IntelGpuCoreProtocolClient from the given parent device + "fragment".

If ZX_OK is returned, the created object will be initialized in |result|.

Defined at line 201 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t CreateFromDevice (zx_device_t * parent, const char * fragment_name, IntelGpuCoreProtocolClient * result)

Create a IntelGpuCoreProtocolClient from the given parent device.

If ZX_OK is returned, the created object will be initialized in |result|.

Defined at line 216 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

void GetProto (intel_gpu_core_protocol_t * proto)

Defined at line 228 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

bool is_valid ()

Defined at line 232 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

void clear ()

Defined at line 235 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t ReadPciConfig16 (uint16_t addr, uint16_t * out_value)

Reads 16 bits from pci config space; returned in |value_out|.

Defined at line 241 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t MapPciMmio (uint32_t pci_bar, uint8_t ** out_buf_buffer, size_t * buf_size)

Maps the given |pci_bar|; address returned in |addr_out|, size in bytes returned in

|size_out|.

Defined at line 247 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t UnmapPciMmio (uint32_t pci_bar)

Unmaps the given |pci_bar|.

Defined at line 252 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t GetPciBti (uint32_t index, zx::bti * out_bti)

Returns a bus transaction initiator.

Defined at line 257 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t RegisterInterruptCallback (const intel_gpu_core_interrupt_t * callback, uint32_t interrupt_mask)

Registers the given |callback| to be invoked with parameter |data| when an interrupt occurs

matching |interrupt_mask|.

Defined at line 263 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t UnregisterInterruptCallback ()

Un-registers a previously registered interrupt callback.

Defined at line 268 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

uint64_t GttGetSize ()

Returns the size of the GTT (global translation table) in bytes.

Defined at line 273 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t GttAlloc (uint64_t page_count, uint64_t * out_addr)

Allocates a region of the GTT of the given |page_count|, returning the page-aligned virtual

address in |addr_out|.

Defined at line 279 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t GttFree (uint64_t addr)

Frees the GTT allocation given by |addr|.

Defined at line 284 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t GttClear (uint64_t addr)

Clears the page table entries for the GTT allocation given by |addr|.

Defined at line 289 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h

zx_status_t GttInsert (uint64_t addr, zx::vmo buffer, uint64_t page_offset, uint64_t page_count)

Inserts page tables entries for the GTT allocation given by |addr| for the vmo represented by

handle |buffer|, at the given |page_offset| and |page_count|. Takes ownership of |buffer|.

Defined at line 295 of file fidling/gen/sdk/banjo/fuchsia.hardware.intelgpucore/fuchsia.hardware.intelgpucore/banjo/cpp/fuchsia/hardware/intelgpucore/cpp/banjo.h