blob: b82386f81cdc5bfe62440d7d4d93e2cb59b28964 [file] [log] [blame]
alexander31ae9f02022-02-10 16:15:54 +00001/*
Richard Burtonf32a86a2022-11-15 11:46:11 +00002 * SPDX-FileCopyrightText: Copyright 2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
alexander31ae9f02022-02-10 16:15:54 +00003 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
Isabella Gottardiee4920b2022-02-25 14:29:32 +000017#ifndef ETHOS_U_NPU_INIT_H
18#define ETHOS_U_NPU_INIT_H
alexander31ae9f02022-02-10 16:15:54 +000019
20#if defined(ARM_NPU)
alexander31ae9f02022-02-10 16:15:54 +000021
Isabella Gottardiee4920b2022-02-25 14:29:32 +000022/**
23 * @brief Initialises the Arm Ethos-U NPU
24 * @return 0 if successful, error code otherwise
25 **/
26int arm_ethosu_npu_init(void);
27
Kshitij Sisodia1ec169b2022-06-01 09:06:21 +010028/**
29 * @brief Defines the Arm Ethos-U NPU interrupt handler: just a wrapper
30 * around the default implementation.
31 **/
32void arm_ethosu_npu_irq_handler(void);
33
Isabella Gottardiee4920b2022-02-25 14:29:32 +000034#endif /* ARM_NPU */
35
36#endif /* ETHOS_U_NPU_INIT_H */