1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2007-2022 Intel Corporation 3.PATH: ${SRCTOP}/sys/dev/qat/qat_api 4 5KMOD= qat_api 6 7SRCS+= freebsd_module.c 8SRCS+= common/compression/dc_datapath.c 9SRCS+= common/compression/dc_header_footer.c 10SRCS+= common/compression/dc_session.c 11SRCS+= common/compression/dc_stats.c 12SRCS+= common/compression/dc_buffers.c 13SRCS+= common/compression/dc_dp.c 14SRCS+= common/compression/icp_sal_dc_err.c 15SRCS+= common/compression/dc_chain.c 16SRCS+= common/compression/dc_ns_datapath.c 17SRCS+= common/compression/dc_ns_header_footer.c 18SRCS+= common/utils/lac_buffer_desc.c 19SRCS+= common/utils/lac_mem.c 20SRCS+= common/utils/lac_mem_pools.c 21SRCS+= common/utils/lac_sync.c 22SRCS+= common/utils/sal_service_state.c 23SRCS+= common/utils/sal_statistics.c 24SRCS+= common/utils/sal_string_parse.c 25SRCS+= common/utils/sal_versions.c 26SRCS+= common/utils/sal_user_process.c 27SRCS+= common/ctrl/sal_list.c 28SRCS+= common/ctrl/sal_compression.c 29SRCS+= common/ctrl/sal_ctrl_services.c 30SRCS+= common/ctrl/sal_create_services.c 31SRCS+= common/ctrl/sal_crypto.c 32SRCS+= common/ctrl/sal_get_instances.c 33SRCS+= common/qat_comms/sal_qat_cmn_msg.c 34SRCS+= common/crypto/sym/lac_sym_api.c 35SRCS+= common/crypto/sym/lac_sym_cb.c 36SRCS+= common/crypto/sym/lac_sym_queue.c 37SRCS+= common/crypto/sym/lac_sym_cipher.c 38SRCS+= common/crypto/sym/lac_sym_alg_chain.c 39SRCS+= common/crypto/sym/lac_sym_auth_enc.c 40SRCS+= common/crypto/sym/lac_sym_hash.c 41SRCS+= common/crypto/sym/lac_sym_hash_sw_precomputes.c 42SRCS+= common/crypto/sym/lac_sym_stats.c 43SRCS+= common/crypto/sym/lac_sym_compile_check.c 44SRCS+= common/crypto/sym/lac_sym_partial.c 45SRCS+= common/crypto/sym/lac_sym_dp.c 46SRCS+= common/crypto/sym/qat/lac_sym_qat.c 47SRCS+= common/crypto/sym/qat/lac_sym_qat_hash.c 48SRCS+= common/crypto/sym/qat/lac_sym_qat_hash_defs_lookup.c 49SRCS+= common/crypto/sym/qat/lac_sym_qat_cipher.c 50SRCS+= common/crypto/sym/qat/lac_sym_qat_constants_table.c 51SRCS+= common/crypto/sym/qat/lac_sym_qat_key.c 52SRCS+= common/crypto/sym/key/lac_sym_key.c 53SRCS+= common/stubs/lac_stubs.c 54SRCS+= device/dev_info.c 55SRCS+= qat_kernel/src/lac_adf_interface_freebsd.c 56SRCS+= qat_kernel/src/qat_transport.c 57SRCS+= qat_kernel/src/lac_symbols.c 58SRCS+= qat_utils/src/QatUtilsServices.c 59SRCS+= qat_utils/src/QatUtilsSemaphore.c 60SRCS+= qat_utils/src/QatUtilsSpinLock.c 61SRCS+= qat_utils/src/QatUtilsAtomic.c 62SRCS+= qat_utils/src/QatUtilsCrypto.c 63SRCS+= bus_if.h cryptodev_if.h device_if.h pci_if.h vnode_if.h 64 65CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include 66CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include/lac 67CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include/dc 68CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_direct/include 69CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_utils/include 70CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/include 71CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/compression/include 72CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/crypto/sym/include 73CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/firmware/include 74CFLAGS+= -I${SRCTOP}/sys/dev/qat/include/common 75CFLAGS+= ${LINUXKPI_INCLUDES} 76 77.include <bsd.kmod.mk> 78 79CWARNFLAGS+= -Wno-cast-qual 80