class PlatformMmio

Defined at line 18 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h

Created from a PlatformPciDevice.

Public Methods

void PlatformMmio (MMIO_PTR void * addr, uint64_t size)

Defined at line 20 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h

uint64_t physical_address ()

Gets the physical address of the MMIO. Not implemented for MMIOs from PCI devices.

void ~PlatformMmio ()

Defined at line 22 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h

void Write32 (uint32_t val, uint64_t offset)

Defined at line 27 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h

uint32_t Read32 (uint64_t offset)

Defined at line 33 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h

void Write64 (uint64_t val, uint64_t offset)

Defined at line 39 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h

uint64_t Read64 (uint64_t offset)

Defined at line 45 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h

uint32_t PostingRead32 (uint64_t offset)

Posting reads serve to ensure that a previous bus write at the same address has completed.

Defined at line 52 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h

uint64_t PostingRead64 (uint64_t offset)

Defined at line 53 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h

MMIO_PTR void * addr ()

Defined at line 55 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h

uint64_t size ()

Defined at line 56 of file ../../src/graphics/magma/lib/magma/platform/platform_mmio.h