c88b3f2558
Each device in DPDK has a type associated with it - ethernet, crypto, event etc. This patch introduces 'rawdevice' which is a generic type of device, not currently handled out-of-the-box by DPDK. A device which can be scanned on an installed bus (pci, fslmc, ...) or instantiated through devargs, can be interfaced using standardized APIs just like other standardized devices. This library introduces an API set which can be plugged on the northbound side to the application layer, and on the southbound side to the driver layer. The APIs of rawdev library exposes some generic operations which can enable configuration and I/O with the raw devices. Using opaque data (pointer) as API arguments, library allows a high flexibility for application and driver implementation. This patch introduces basic device operations like start, stop, reset, queue and info support. Subsequent patches would introduce other operations like buffer enqueue/dequeue and firmware support. Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
29 lines
517 B
Makefile
29 lines
517 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright 2017 NXP
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
# library name
|
|
LIB = librte_rawdev.a
|
|
|
|
# library version
|
|
LIBABIVER := 1
|
|
|
|
# build flags
|
|
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
|
CFLAGS += -O3
|
|
CFLAGS += $(WERROR_FLAGS)
|
|
LDLIBS += -lrte_eal
|
|
|
|
# library source files
|
|
SRCS-y += rte_rawdev.c
|
|
|
|
# export include files
|
|
SYMLINK-y-include += rte_rawdev.h
|
|
SYMLINK-y-include += rte_rawdev_pmd.h
|
|
|
|
# versioning export map
|
|
EXPORT_MAP := rte_rawdev_version.map
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|