/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2019 MediaTek Inc. */ #ifndef _MT6769_VPU_REG_H_ #define _MT6769_VPU_REG_H_ #include #define CTRL_BASE_OFFSET 0x80000 #define DEBUG_BASE_OFFSET 0x90000 #define DEBUG_STACK_SIZE 0x1400 #define DEBUG_MAIN_CODE_SEG_SIZE_1 0x400 #define DEBUG_MAIN_CODE_SEG_SIZE_2 0x18000 #define DEBUG_CODE_SEG_SIZE 0x15400 #define DEBUG_STACK_BASE_OFFSET \ (0x40000 - DEBUG_STACK_SIZE) /*should sync with Jackie*/ /* common macro definitions */ #define F_REG(base, offset) \ (*((unsigned int *) ((uintptr_t)base + offset))) #define F_VAL(val, msb, lsb) \ ((msb - lsb > 30) ? val : (((val)&((1<<(msb-lsb+1))-1))<