/* * Copyright (c) 2006-2024, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __ZYNQMP_REG_H__ #define __ZYNQMP_REG_H__ /* bit field helpers. */ #define __M(n) (~(~0<<(n))) #define __RBF(number, n) ((number)&__M(n)) #define __BF(number, n, m) __RBF((number>>m), (n-m+1)) #define REG_BF(number, n, m) (m