1 /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) */ 2 /* 3 * Copyright (c) 2014-2025, Advanced Micro Devices, Inc. 4 * Copyright (c) 2014, Synopsys, Inc. 5 * All rights reserved 6 * 7 * Author: Raju Rangoju <Raju.Rangoju@amd.com> 8 */ 9 10 #ifndef __SMN_H__ 11 #define __SMN_H__ 12 13 #ifdef CONFIG_AMD_NB 14 15 #include <asm/amd/nb.h> 16 17 #else 18 19 static inline int amd_smn_write(u16 node, u32 address, u32 value) 20 { 21 return -ENODEV; 22 } 23 24 static inline int amd_smn_read(u16 node, u32 address, u32 *value) 25 { 26 return -ENODEV; 27 } 28 29 #endif 30 #endif 31