linux/drivers/gpu/drm/i915/gt/uc/intel_guc_reg.h

/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2014-2019 Intel Corporation
 */

#ifndef _INTEL_GUC_REG_H_
#define _INTEL_GUC_REG_H_

#include <linux/compiler.h>
#include <linux/types.h>

#include "i915_reg_defs.h"

/* Definitions of GuC H/W registers, bits, etc */

#define GUC_STATUS
#define GS_RESET_SHIFT
#define GS_MIA_IN_RESET
#define GS_BOOTROM_SHIFT
#define GS_BOOTROM_MASK
#define GS_UKERNEL_SHIFT
#define GS_UKERNEL_MASK
#define GS_MIA_SHIFT
#define GS_MIA_MASK
#define GS_MIA_CORE_STATE
#define GS_MIA_HALT_REQUESTED
#define GS_MIA_ISR_ENTRY
#define GS_AUTH_STATUS_SHIFT
#define GS_AUTH_STATUS_MASK
#define GS_AUTH_STATUS_BAD
#define GS_AUTH_STATUS_GOOD

#define GUC_HEADER_INFO

#define SOFT_SCRATCH(n)
#define SOFT_SCRATCH_COUNT

#define GEN11_SOFT_SCRATCH(n)
#define MEDIA_SOFT_SCRATCH(n)
#define GEN11_SOFT_SCRATCH_COUNT

#define UOS_RSA_SCRATCH(i)
#define UOS_RSA_SCRATCH_COUNT

#define DMA_ADDR_0_LOW
#define DMA_ADDR_0_HIGH
#define DMA_ADDR_1_LOW
#define DMA_ADDR_1_HIGH
#define DMA_ADDRESS_SPACE_WOPCM
#define DMA_ADDRESS_SPACE_GTT
#define DMA_COPY_SIZE
#define DMA_CTRL
#define HUC_UKERNEL
#define UOS_MOVE
#define START_DMA
#define DMA_GUC_WOPCM_OFFSET
#define GUC_WOPCM_OFFSET_VALID
#define HUC_LOADING_AGENT_VCR
#define HUC_LOADING_AGENT_GUC
#define GUC_WOPCM_OFFSET_SHIFT
#define GUC_WOPCM_OFFSET_MASK
#define GUC_MAX_IDLE_COUNT

#define HUC_STATUS2
#define HUC_FW_VERIFIED

#define GEN11_HUC_KERNEL_LOAD_INFO
#define HUC_LOAD_SUCCESSFUL

#define GUC_WOPCM_SIZE
#define GUC_WOPCM_SIZE_LOCKED
#define GUC_WOPCM_SIZE_SHIFT
#define GUC_WOPCM_SIZE_MASK

#define GEN8_GT_PM_CONFIG
#define GEN9LP_GT_PM_CONFIG
#define GEN9_GT_PM_CONFIG
#define GT_DOORBELL_ENABLE

#define GEN8_GTCR
#define GEN8_GTCR_INVALIDATE

#define GEN12_GUC_TLB_INV_CR
#define GEN12_GUC_TLB_INV_CR_INVALIDATE

#define GUC_ARAT_C6DIS

#define GUC_SHIM_CONTROL
#define GUC_DISABLE_SRAM_INIT_TO_ZEROES
#define GUC_ENABLE_READ_CACHE_LOGIC
#define GUC_ENABLE_MIA_CACHING
#define GUC_GEN10_MSGCH_ENABLE
#define GUC_ENABLE_READ_CACHE_FOR_SRAM_DATA
#define GUC_ENABLE_READ_CACHE_FOR_WOPCM_DATA
#define GUC_ENABLE_MIA_CLOCK_GATING
#define GUC_GEN10_SHIM_WC_ENABLE

#define GUC_SHIM_CONTROL2
#define GUC_IS_PRIVILEGED
#define GSC_LOADS_HUC

#define GUC_SEND_INTERRUPT
#define GUC_SEND_TRIGGER
#define GEN11_GUC_HOST_INTERRUPT
#define MEDIA_GUC_HOST_INTERRUPT

#define GEN12_GUC_SEM_INTR_ENABLES
#define GUC_SEM_INTR_ROUTE_TO_GUC
#define GUC_SEM_INTR_ENABLE_ALL

#define GUC_NUM_DOORBELLS

/* format of the HW-monitored doorbell cacheline */
struct guc_doorbell_info {} __packed;

#define GEN8_DRBREGL(x)
#define GEN8_DRB_VALID
#define GEN8_DRBREGU(x)

#define GEN12_DIST_DBS_POPULATED
#define GEN12_DOORBELLS_PER_SQIDI_SHIFT
#define GEN12_DOORBELLS_PER_SQIDI
#define GEN12_SQIDIS_DOORBELL_EXIST

#define DE_GUCRMR

#define GUC_BCS_RCS_IER
#define GUC_VCS2_VCS1_IER
#define GUC_WD_VECS_IER
#define GUC_PM_P24C_IER

/* GuC Interrupt Vector */
#define GUC_INTR_GUC2HOST
#define GUC_INTR_EXEC_ERROR
#define GUC_INTR_DISPLAY_EVENT
#define GUC_INTR_SEM_SIG
#define GUC_INTR_IOMMU2GUC
#define GUC_INTR_DOORBELL_RANG
#define GUC_INTR_DMA_DONE
#define GUC_INTR_FATAL_ERROR
#define GUC_INTR_NOTIF_ERROR
#define GUC_INTR_SW_INT_6
#define GUC_INTR_SW_INT_5
#define GUC_INTR_SW_INT_4
#define GUC_INTR_SW_INT_3
#define GUC_INTR_SW_INT_2
#define GUC_INTR_SW_INT_1
#define GUC_INTR_SW_INT_0

#endif