#
# Copyright (C) 2021. Hisilicon Technologies Co., Ltd.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and
# only 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.
#

# Driver version string which is returned to userspace via an ioctl
HVGR_VER=_v350
HVGR_SSID_PWR := 1
HVGR_FAST_PWR := 1

DEFINES += -DHVGR_CMDQ_PROPERTY=1
HVGR_CAPTURE_REPLAY := 1
DEFINES += -DHVGR_CAPTURE_REPLAY=$(HVGR_CAPTURE_REPLAY)
HVGR_DEV_POOL_FREE_ASYNC := 1
DEFINES += -DHVGR_DEV_POOL_FREE_ASYNC=$(HVGR_DEV_POOL_FREE_ASYNC)
ifeq ($(CONFIG_HVGR_SUB_VER_NUM), 370)
DEFINES += -DHVGR_SUB_VER_NUM=$(CONFIG_HVGR_SUB_VER_NUM)
endif
ifeq ($(HVGR_USE_PCIE), 1)
HVGR_SCHTIME_SHOW ?= 1
DEFINES += -DHVGR_SCHTIME_SHOW=$(HVGR_SCHTIME_SHOW)
else
HVGR_SUBMIT_ASYNC=1
ifeq ($(CONFIG_FFRT_HTS), y)
	HVGR_FEATURE_HTS = 1
endif
ifeq ($(CONFIG_FFRT_HTS_OHOS), y)
	HVGR_FEATURE_HTS = 1
endif
ifeq ($(CONFIG_FFRT_FFTS), y)
	HVGR_FE_FFTS = 1
endif

ifeq ($(CONFIG_FFRT_FFTS_OHOS), y)
	HVGR_FE_FFTS = 1
endif
ifeq ($(CONFIG_DFX_DEBUG_FS), y)
DEFINES += -DHVGR_SCHTIME_SHOW=1
endif
DEFINES += -DHVGR_SUPPORT_SPEC_LOW=1
DEFINES += -DHVGR_RTU_PWR=0
DEFINES += -DHVGR_VK_EXT_DEVICE_FAULT=1
DEFINES += -DHVGR_SUBMIT_ASYNC=$(HVGR_SUBMIT_ASYNC)
DEFINES += -DHVGR_WAITFENCE_LOWPOWER=1
endif
