dev, arm: Refactor the NoMali GPU
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 23 Feb 2016 11:49:34 +0000 (11:49 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 23 Feb 2016 11:49:34 +0000 (11:49 +0000)
commit81a8ce356460c020bcab12801d91726ea886f7c2
treeeb94ed85d9e5cfcbdd82bfd051e0424a5d47d8f1
parent826e0047b0a830ea5980ce1d0db7797ab3ee6de2
dev, arm: Refactor the NoMali GPU

Refactor and cleanup the NoMaliGpu class:

  * Use a std::map instead of a switch block to map the parameter enum
    describing the GPU type to a NoMali type.

  * Remove redundant NoMali handle from the interrupt callback.

  * Make callbacks and API wrappers protected instead of private to
    enable future extensions.

  * Wrap remaining NoMali API calls.
src/dev/arm/gpu_nomali.cc
src/dev/arm/gpu_nomali.hh