diff options
author | Davide Grohmann <davide.grohmann@arm.com> | 2022-06-16 17:42:58 +0200 |
---|---|---|
committer | Davide Grohmann <davide.grohmann@arm.com> | 2022-08-29 09:52:15 +0200 |
commit | f03642331f1028bdeba1c24bc5d9bd65b42c7603 (patch) | |
tree | d299be4d2f9a3b5292b141d531c1a3824b7424ce /driver_library/include/ethosu.hpp | |
parent | 43e7dc41eb7f0701951ac84d82f877be37338d41 (diff) | |
download | ethos-u-linux-driver-stack-f03642331f1028bdeba1c24bc5d9bd65b42c7603.tar.gz |
Add linux_driver_stack tests
Change-Id: I303f1424eb46576847312672f7ed5ac03c05aee1
Diffstat (limited to 'driver_library/include/ethosu.hpp')
-rw-r--r-- | driver_library/include/ethosu.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/driver_library/include/ethosu.hpp b/driver_library/include/ethosu.hpp index da8dbbd..74f8abb 100644 --- a/driver_library/include/ethosu.hpp +++ b/driver_library/include/ethosu.hpp @@ -81,10 +81,10 @@ std::ostream &operator<<(std::ostream &out, const SemanticVersion &v); */ struct HardwareId { public: - HardwareId(uint32_t _versionStatus, - const SemanticVersion &_version, - const SemanticVersion &_product, - const SemanticVersion &_architecture) : + HardwareId(uint32_t _versionStatus = 0, + const SemanticVersion &_version = SemanticVersion(), + const SemanticVersion &_product = SemanticVersion(), + const SemanticVersion &_architecture = SemanticVersion()) : versionStatus(_versionStatus), version(_version), product(_product), architecture(_architecture) {} @@ -102,7 +102,7 @@ public: */ struct HardwareConfiguration { public: - HardwareConfiguration(uint32_t _macsPerClockCycle, uint32_t _cmdStreamVersion, bool _customDma) : + HardwareConfiguration(uint32_t _macsPerClockCycle = 0, uint32_t _cmdStreamVersion = 0, bool _customDma = false) : macsPerClockCycle(_macsPerClockCycle), cmdStreamVersion(_cmdStreamVersion), customDma(_customDma) {} uint32_t macsPerClockCycle; @@ -118,6 +118,7 @@ public: */ class Capabilities { public: + Capabilities() {} Capabilities(const HardwareId &_hwId, const HardwareConfiguration &_hwCfg, const SemanticVersion &_driver) : hwId(_hwId), hwCfg(_hwCfg), driver(_driver) {} |