gpu_nomali.hh (11350:ef6e57ac0d70) gpu_nomali.hh (11619:8bc53d5565ba)
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;
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;
49class RealView;
50
51class NoMaliGpu : public PioDevice
52{
53 public:
54 NoMaliGpu(const NoMaliGpuParams *p);
55 virtual ~NoMaliGpu();
56

--- 124 unchanged lines hidden (view full) ---

181 /** Cached information struct from the NoMali library */
182 nomali_info_t nomaliInfo;
183
184 /** Handle of a NoMali library instance */
185 nomali_handle_t nomali;
186};
187
188
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
189#endif // __DEV_ARM_NOMALI_GPU_HH__
204#endif // __DEV_ARM_NOMALI_GPU_HH__