xref: /freebsd/sys/modules/qat/qat_api/Makefile (revision 19fae0f66023a97a9b464b3beeeabb2081f575b3)
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/compression/dc_chain.c
17SRCS+= common/compression/dc_ns_datapath.c
18SRCS+= common/compression/dc_ns_header_footer.c
19SRCS+= common/utils/lac_buffer_desc.c
20SRCS+= common/utils/lac_mem.c
21SRCS+= common/utils/lac_mem_pools.c
22SRCS+= common/utils/lac_sync.c
23SRCS+= common/utils/sal_service_state.c
24SRCS+= common/utils/sal_statistics.c
25SRCS+= common/utils/sal_string_parse.c
26SRCS+= common/utils/sal_versions.c
27SRCS+= common/utils/sal_user_process.c
28SRCS+= common/ctrl/sal_list.c
29SRCS+= common/ctrl/sal_compression.c
30SRCS+= common/ctrl/sal_ctrl_services.c
31SRCS+= common/ctrl/sal_create_services.c
32SRCS+= common/ctrl/sal_crypto.c
33SRCS+= common/ctrl/sal_get_instances.c
34SRCS+= common/qat_comms/sal_qat_cmn_msg.c
35SRCS+= common/crypto/sym/lac_sym_api.c
36SRCS+= common/crypto/sym/lac_sym_cb.c
37SRCS+= common/crypto/sym/lac_sym_queue.c
38SRCS+= common/crypto/sym/lac_sym_cipher.c
39SRCS+= common/crypto/sym/lac_sym_alg_chain.c
40SRCS+= common/crypto/sym/lac_sym_auth_enc.c
41SRCS+= common/crypto/sym/lac_sym_hash.c
42SRCS+= common/crypto/sym/lac_sym_hash_sw_precomputes.c
43SRCS+= common/crypto/sym/lac_sym_stats.c
44SRCS+= common/crypto/sym/lac_sym_compile_check.c
45SRCS+= common/crypto/sym/lac_sym_partial.c
46SRCS+= common/crypto/sym/lac_sym_dp.c
47SRCS+= common/crypto/sym/qat/lac_sym_qat.c
48SRCS+= common/crypto/sym/qat/lac_sym_qat_hash.c
49SRCS+= common/crypto/sym/qat/lac_sym_qat_hash_defs_lookup.c
50SRCS+= common/crypto/sym/qat/lac_sym_qat_cipher.c
51SRCS+= common/crypto/sym/qat/lac_sym_qat_constants_table.c
52SRCS+= common/crypto/sym/qat/lac_sym_qat_key.c
53SRCS+= common/crypto/sym/key/lac_sym_key.c
54SRCS+= common/stubs/lac_stubs.c
55SRCS+= device/dev_info.c
56SRCS+= qat_kernel/src/lac_adf_interface_freebsd.c
57SRCS+= qat_kernel/src/qat_transport.c
58SRCS+= qat_kernel/src/lac_symbols.c
59SRCS+= qat_utils/src/QatUtilsServices.c
60SRCS+= qat_utils/src/QatUtilsSemaphore.c
61SRCS+= qat_utils/src/QatUtilsSpinLock.c
62SRCS+= qat_utils/src/QatUtilsAtomic.c
63SRCS+= qat_utils/src/QatUtilsCrypto.c
64SRCS+= bus_if.h cryptodev_if.h device_if.h pci_if.h vnode_if.h
65
66CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include
67CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include/lac
68CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include/dc
69CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_direct/include
70CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_utils/include
71CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/include
72CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/compression/include
73CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/crypto/sym/include
74CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/firmware/include
75CFLAGS+= -I${SRCTOP}/sys/dev/qat/include/common
76CFLAGS+= ${LINUXKPI_INCLUDES}
77
78.include <bsd.kmod.mk>
79
80CWARNFLAGS+= -Wno-cast-qual
81