Patrick Delaunay | bb30650 | 2025-04-01 15:14:13 +0200 | [diff] [blame] | 1 | /* 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 | */ |
| 16 | int 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 | */ |
| 24 | int stm32_rifsc_check_access_by_id(ofnode device_node, u32 id); |
| 25 | |
| 26 | #endif /* MACH_RIF_H*/ |