blob: 3173590dda249be6b25aa6289da402bca9bbb701 [file] [log] [blame]
Matteo Martincigh79250ab2018-09-04 16:28:10 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beck93e48982018-09-05 13:05:09 +01003// SPDX-License-Identifier: MIT
Matteo Martincigh79250ab2018-09-04 16:28:10 +01004//
5
6#pragma once
7
8#include <HalInterfaces.h>
9
Kevin DuBois30c34ae2020-08-26 13:53:41 -070010#include "NamespaceAdaptor.hpp"
Matteo Martincigh79250ab2018-09-04 16:28:10 +010011#include "../DriverOptions.hpp"
12
13#include <armnn/ArmNN.hpp>
14
Kevin DuBoisc0945c72020-11-20 16:57:09 -080015#if ARMNN_ANDROID_S
16using namespace android::nn;
17#elif ARMNN_ANDROID_R
Kevin Mayec1e5b82020-02-26 17:00:39 +000018using namespace android::nn::hal;
19#endif
20
21
22namespace V1_0 = ::android::hardware::neuralnetworks::V1_0;
23namespace V1_1 = ::android::hardware::neuralnetworks::V1_1;
24
Matteo Martincigh79250ab2018-09-04 16:28:10 +010025namespace armnn_driver
26{
arovir01b0717b52018-09-05 17:03:25 +010027namespace hal_1_1
Matteo Martincigh79250ab2018-09-04 16:28:10 +010028{
29
30class ArmnnDriverImpl
31{
32public:
arovir01b0717b52018-09-05 17:03:25 +010033 static Return<void> getCapabilities_1_1(const armnn::IRuntimePtr& runtime,
34 V1_1::IDevice::getCapabilities_1_1_cb cb);
Matteo Martincigh79250ab2018-09-04 16:28:10 +010035};
36
arovir01b0717b52018-09-05 17:03:25 +010037} // namespace hal_1_1
Matteo Martincigh79250ab2018-09-04 16:28:10 +010038} // namespace armnn_driver