1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 3 * 4 * (C) COPYRIGHT 2022 ARM Limited. All rights reserved. 5 * 6 * This program is free software and is provided to you under the terms of the 7 * GNU General Public License version 2 as published by the Free Software 8 * Foundation, and any use by you of this program is subject to the terms 9 * of such GNU license. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, you can access it online at 18 * http://www.gnu.org/licenses/gpl-2.0.html. 19 * 20 */ 21 22 #ifndef _UAPI_KBASE_GPU_REGMAP_CSF_H_ 23 #define _UAPI_KBASE_GPU_REGMAP_CSF_H_ 24 25 /* IPA control registers */ 26 #define IPA_CONTROL_BASE 0x40000 27 #define IPA_CONTROL_REG(r) (IPA_CONTROL_BASE + (r)) 28 #define STATUS 0x004 /* (RO) Status register */ 29 30 /* USER base address */ 31 #define USER_BASE 0x0010000 32 #define USER_REG(r) (USER_BASE + (r)) 33 34 /* USER register offsets */ 35 #define LATEST_FLUSH 0x0000 /* () Flush ID of latest clean-and-invalidate operation */ 36 37 /* DOORBELLS base address */ 38 #define DOORBELLS_BASE 0x0080000 39 #define DOORBELLS_REG(r) (DOORBELLS_BASE + (r)) 40 41 #endif /* _UAPI_KBASE_GPU_REGMAP_CSF_H_ */ 42