1 /* 2 * Copyright (C) 2022-2026 Marvell. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * https://spdx.org/licenses 6 */ 7 8 #ifndef __ODY_CSR_PLAT__ 9 #define __ODY_CSR_PLAT__ 10 /** 11 * @file 12 * 13 * Functions and macros for the taget platform. 14 * 15 * @defgroup csr CSR support 16 * @{ 17 */ 18 19 #ifdef __KERNEL__ 20 21 #include <asm/io.h> 22 #include <linux/types.h> 23 24 #define __ody_csr_fatal(name, num_args, arg1, arg2, arg3, arg4, arg5, arg6) { BUG_ON(0); return 0; } 25 26 #else 27 28 #include <assert.h> 29 #include <stdint.h> 30 31 #define __ody_csr_fatal(name, num_args, arg1, arg2, arg3, arg4, arg5, arg6) { assert(0); return 0; } 32 33 #endif 34 35 #endif 36