/* * Copyright (C) 2016 MediaTek Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #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))<