1/* 2 * Copyright (c) 2014-2016 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 32 unchanged lines hidden (view full) --- 41#define __DEV_ARM_NOMALI_GPU_HH__ 42 43#include <map> 44 45#include "dev/io_device.hh" 46#include "libnomali/nomali.h" 47 48class NoMaliGpuParams; |
49class CustomNoMaliGpuParams; |
50class RealView; 51 52class NoMaliGpu : public PioDevice 53{ 54 public: 55 NoMaliGpu(const NoMaliGpuParams *p); 56 virtual ~NoMaliGpu(); 57 --- 124 unchanged lines hidden (view full) --- 182 /** Cached information struct from the NoMali library */ 183 nomali_info_t nomaliInfo; 184 185 /** Handle of a NoMali library instance */ 186 nomali_handle_t nomali; 187}; 188 189 |
190class CustomNoMaliGpu : public NoMaliGpu 191{ 192 public: 193 CustomNoMaliGpu(const CustomNoMaliGpuParams *p); 194 virtual ~CustomNoMaliGpu(); 195 196 protected: 197 void onReset() override; 198 199 private: 200 /** Map between GPU registers and their custom reset values */ 201 std::map<nomali_addr_t, uint32_t> idRegs; 202}; 203 |
204#endif // __DEV_ARM_NOMALI_GPU_HH__ |