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