diff options
Diffstat (limited to 'driver_library/include')
-rw-r--r-- | driver_library/include/ethosu.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/driver_library/include/ethosu.hpp b/driver_library/include/ethosu.hpp index 15957f4..4dba469 100644 --- a/driver_library/include/ethosu.hpp +++ b/driver_library/include/ethosu.hpp @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: Copyright 2020-2022 Arm Limited and/or its affiliates <open-source-office@arm.com> + * SPDX-FileCopyrightText: Copyright 2020-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> * * SPDX-License-Identifier: Apache-2.0 * @@ -40,6 +40,9 @@ namespace EthosU { +constexpr uint32_t MAX_SUPPORTED_KERNEL_DRIVER_MAJOR_VERSION = 1; +constexpr uint32_t MIN_SUPPORTED_KERNEL_DRIVER_MAJOR_VERSION = 1; + class Exception : public std::exception { public: Exception(const char *msg); @@ -134,9 +137,11 @@ public: int ioctl(unsigned long cmd, void *data = nullptr) const; Capabilities capabilities() const; + const SemanticVersion &getDriverVersion() const; private: int fd; + SemanticVersion driverVersion; }; class Buffer { |