The first patch implements the framework of the AFU PMD driver based on raw device interfaces. The subsequent patches implement the driver of some AFUs.
Changes from v5: 1. Move source files to raw/ifpga directory and rename them. 2. Use spinlock to prevent AFU from accessing simultaneously. 3. Refine code per Tianfei's comments. Wei Huang (5): raw/ifpga: introduce AFU driver framework raw/ifpga: add N3000 AFU driver raw/ifpga: add HE-LPBK AFU driver raw/ifpga: add HE-MEM AFU driver raw/ifpga: add HE-HSSI AFU driver drivers/raw/ifpga/afu_pmd_core.c | 453 ++++++++ drivers/raw/ifpga/afu_pmd_core.h | 94 ++ drivers/raw/ifpga/afu_pmd_he_hssi.c | 371 +++++++ drivers/raw/ifpga/afu_pmd_he_hssi.h | 108 ++ drivers/raw/ifpga/afu_pmd_he_lpbk.c | 436 ++++++++ drivers/raw/ifpga/afu_pmd_he_lpbk.h | 126 +++ drivers/raw/ifpga/afu_pmd_he_mem.c | 183 ++++ drivers/raw/ifpga/afu_pmd_he_mem.h | 46 + drivers/raw/ifpga/afu_pmd_n3000.c | 2019 +++++++++++++++++++++++++++++++++++ drivers/raw/ifpga/afu_pmd_n3000.h | 339 ++++++ drivers/raw/ifpga/meson.build | 4 +- drivers/raw/ifpga/rte_pmd_afu.h | 134 +++ 12 files changed, 4312 insertions(+), 1 deletion(-) create mode 100644 drivers/raw/ifpga/afu_pmd_core.c create mode 100644 drivers/raw/ifpga/afu_pmd_core.h create mode 100644 drivers/raw/ifpga/afu_pmd_he_hssi.c create mode 100644 drivers/raw/ifpga/afu_pmd_he_hssi.h create mode 100644 drivers/raw/ifpga/afu_pmd_he_lpbk.c create mode 100644 drivers/raw/ifpga/afu_pmd_he_lpbk.h create mode 100644 drivers/raw/ifpga/afu_pmd_he_mem.c create mode 100644 drivers/raw/ifpga/afu_pmd_he_mem.h create mode 100644 drivers/raw/ifpga/afu_pmd_n3000.c create mode 100644 drivers/raw/ifpga/afu_pmd_n3000.h create mode 100644 drivers/raw/ifpga/rte_pmd_afu.h -- 1.8.3.1