• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3  *
4  * (C) COPYRIGHT 2021 ARM Limited. All rights reserved.
5  *
6  * This program is free software and is provided to you under the terms of the
7  * GNU General Public License version 2 as published by the Free Software
8  * Foundation, and any use by you of this program is subject to the terms
9  * of such GNU license.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, you can access it online at
18  * http://www.gnu.org/licenses/gpl-2.0.html.
19  *
20  */
21 
22 /*
23  * Concrete implementation of kbase_hwcnt_watchdog_interface for HWC backend
24  */
25 
26 #ifndef _KBASE_HWCNT_WATCHDOG_IF_TIMER_H_
27 #define _KBASE_HWCNT_WATCHDOG_IF_TIMER_H_
28 
29 struct kbase_hwcnt_watchdog_interface;
30 
31 /**
32  * kbase_hwcnt_watchdog_if_timer_create() - Create a watchdog interface of hardware counter backend.
33  *
34  * @watchdog_if: Non-NULL pointer to watchdog interface that is filled in on creation success
35  *
36  * Return: 0 on success, error otherwise.
37  */
38 int kbase_hwcnt_watchdog_if_timer_create(
39 	struct kbase_hwcnt_watchdog_interface *watchdog_if);
40 
41 /**
42  * kbase_hwcnt_watchdog_if_timer_destroy() - Destroy a watchdog interface of hardware counter
43  *                                           backend.
44  *
45  * @watchdog_if: Pointer to watchdog interface to destroy
46  */
47 void kbase_hwcnt_watchdog_if_timer_destroy(
48 	struct kbase_hwcnt_watchdog_interface *watchdog_if);
49 
50 #endif /* _KBASE_HWCNT_WATCHDOG_IF_TIMER_H_ */
51