# # Copyright (c) 2020 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import os import tsconfig.tsconfig as tsc # Currently we only support the following FPGA. In the future we may need to # expand this to a list of devices, each with their own special set of # device-specific information. N3000_VENDOR = "8086" N3000_DEVICE = "0b30" # These are "virtual" PCI devices implemented by the FPGA user image. N3000_DEFAULT_DEVICE = "0b32" N3000_FEC_PF_DEVICE = "0d8f" N3000_FEC_VF_DEVICE = "0d90" # We don't care about the VFs here, as they get created after we reset the # FPGA and fix up the PCI device entries in the DB. N3000_DEVICES = [ N3000_DEVICE, N3000_FEC_PF_DEVICE, N3000_DEFAULT_DEVICE, ] # TODO: Make this specified in the config file. # This is the docker image containing the OPAE tools to access the FPGA device. OPAE_IMG = "registry.local:9001/docker.io/starlingx/n3000-opae:stx.6.0-v1.0.1" # This is a flag file created by puppet after doing a "docker login". # We need to wait for it to exist before trying to run docker images. DOCKER_LOGIN_FLAG = "/var/run/docker_login_done" N3000_RESET_FLAG = os.path.join(tsc.VOLATILE_PATH, ".sysinv_n3000_reset") # This flag is set if the N3000 requires a second reset N3000_RETIMER_FLAG = os.path.join(tsc.PLATFORM_CONF_PATH, ".sysinv_n3000_retimer")