2019-04-16 03:17:40 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2019 Intel Corporation
|
|
|
|
|
2020-12-22 00:45:11 +00:00
|
|
|
if is_windows
|
2021-04-20 10:22:25 +00:00
|
|
|
build = false
|
|
|
|
reason = 'not supported on Windows'
|
|
|
|
subdir_done()
|
2020-12-22 00:45:11 +00:00
|
|
|
endif
|
|
|
|
|
2019-04-16 03:17:40 +00:00
|
|
|
#
|
2021-11-29 16:08:02 +00:00
|
|
|
# Add the experimental APIs called from this PMD
|
2019-04-16 03:17:40 +00:00
|
|
|
# rte_eth_switch_domain_alloc()
|
|
|
|
# rte_eth_dev_create()
|
|
|
|
# rte_eth_dev_destroy()
|
|
|
|
# rte_eth_switch_domain_free()
|
|
|
|
#
|
|
|
|
|
2020-09-02 11:10:30 +00:00
|
|
|
if has_libfdt == 0
|
2021-04-20 10:22:25 +00:00
|
|
|
build = false
|
|
|
|
reason = 'missing dependency, "libfdt"'
|
|
|
|
subdir_done()
|
raw/ifpga/base: support device tree
In PAC N3000 card, this is a BMC chip which using MAX10 FPGA
to manage the board configuration, like sensors, flash controller,
QSFP, powers. And this is a SPI bus connected between A10 FPGA and
MAX10, we can access the MAX10 registers over this SPI bus.
In BMC, there are about 19 sensors in MAX10 chip, including the FPGA
core temperature, Board temperature, board current, voltage and so on.
We use DTB (Device tree table) to describe it. This DTB file is store
in nor flash partition, which will flashed in Factory when the boards
delivery to customers. And the same time, the customers can easy to
customize the BMC configuration like change the sensors.
Add device tree support by using libfdt library in Linux distribution.
The end-user should pre-install the libfdt and libfdt-devel package
before use DPDK on PAC N3000 Card.
For Centos 7.x: sudo yum install libfdt libfdt-devel
For Ubuntu 18.04: sudo apt install libfdt-dev libfdt1
To eliminate build error, we currently do not compile raw/ifpga
and net/ipn3ke. User should install libfdt and libfdt-devel first,
modify config/common_linux, CONFIG_RTE_LIBRTE_PMD_IFPGA_RAWDEV=n
to CONFIG_RTE_LIBRTE_PMD_IFPGA_RAWDEV=y, modify config/common_base,
CONFIG_RTE_LIBRTE_IPN3KE_PMD=n to CONFIG_RTE_LIBRTE_IPN3KE_PMD=y.
Then this function can work.
Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
Signed-off-by: Andy Pei <andy.pei@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2019-11-14 09:02:53 +00:00
|
|
|
endif
|
|
|
|
|
2020-02-12 22:07:03 +00:00
|
|
|
includes += include_directories('../../raw/ifpga')
|
2019-12-12 17:28:43 +00:00
|
|
|
|
2021-04-20 10:22:25 +00:00
|
|
|
sources += files(
|
|
|
|
'ipn3ke_ethdev.c',
|
|
|
|
'ipn3ke_flow.c',
|
|
|
|
'ipn3ke_representor.c',
|
|
|
|
'ipn3ke_tm.c',
|
|
|
|
)
|
2020-02-12 22:07:03 +00:00
|
|
|
deps += ['bus_ifpga', 'ethdev', 'sched']
|