blob: 10b221081202571a81c0d651b2975daa0a40d767 [file] [log] [blame]
Patrick Delaunaybb306502025-04-01 15:14:13 +02001/* SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause */
2/*
3 * Copyright (C) 2023, STMicroelectronics - All Rights Reserved
4 */
5
6#ifndef MACH_RIF_H
7#define MACH_RIF_H
8
9#include <linux/types.h>
10
11/**
12 * stm32_rifsc_check_access - Check RIF accesses for given device node
13 *
14 * @device_node Node of the device for which the accesses are checked
15 */
16int stm32_rifsc_check_access(ofnode device_node);
17
18/**
19 * stm32_rifsc_check_access - Check RIF accesses for given id
20 *
21 * @device_node Node of the device to get a reference on RIFSC
22 * @id ID of the resource to check
23 */
24int stm32_rifsc_check_access_by_id(ofnode device_node, u32 id);
25
26#endif /* MACH_RIF_H*/