1 /* 2 * Copyright (c) 2017 NVIDIA Corporation. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT 9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 11 * more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 * 16 */ 17 18 #define HOST1X_HV_SYNCPT_PROT_EN 0x1ac4 19 #define HOST1X_HV_SYNCPT_PROT_EN_CH_EN BIT(1) 20 #define HOST1X_HV_CH_KERNEL_FILTER_GBUFFER(x) (0x2020 + (x * 4)) 21 #define HOST1X_HV_CMDFIFO_PEEK_CTRL 0x233c 22 #define HOST1X_HV_CMDFIFO_PEEK_CTRL_ADDR(x) (x) 23 #define HOST1X_HV_CMDFIFO_PEEK_CTRL_CHANNEL(x) ((x) << 16) 24 #define HOST1X_HV_CMDFIFO_PEEK_CTRL_ENABLE BIT(31) 25 #define HOST1X_HV_CMDFIFO_PEEK_READ 0x2340 26 #define HOST1X_HV_CMDFIFO_PEEK_PTRS 0x2344 27 #define HOST1X_HV_CMDFIFO_PEEK_PTRS_WR_PTR_V(x) (((x) >> 16) & 0xfff) 28 #define HOST1X_HV_CMDFIFO_PEEK_PTRS_RD_PTR_V(x) ((x) & 0xfff) 29 #define HOST1X_HV_CMDFIFO_SETUP(x) (0x2588 + (x * 4)) 30 #define HOST1X_HV_CMDFIFO_SETUP_LIMIT_V(x) (((x) >> 16) & 0xfff) 31 #define HOST1X_HV_CMDFIFO_SETUP_BASE_V(x) ((x) & 0xfff) 32 #define HOST1X_HV_ICG_EN_OVERRIDE 0x2aa8 33