X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=buildtools%2Fpmdinfogen%2Fpmdinfogen.h;h=93930e4543fe458738ba59647851b167681f2267;hb=381f39ebb78a35d8dcc2d4500419644c7de5400f;hp=1da2966f9b9d6a44a88a6e73daf352d8d88c0392;hpb=98b0fdb0ffc6b8fe70bef16d218b97f7a6c283bd;p=dpdk.git diff --git a/buildtools/pmdinfogen/pmdinfogen.h b/buildtools/pmdinfogen/pmdinfogen.h index 1da2966f9b..93930e4543 100644 --- a/buildtools/pmdinfogen/pmdinfogen.h +++ b/buildtools/pmdinfogen/pmdinfogen.h @@ -1,12 +1,8 @@ - -/* Postprocess pmd object files to export hw support +/* SPDX-License-Identifier: GPL-2.0 + * Postprocess pmd object files to export hw support * * Copyright 2016 Neil Horman * Based in part on modpost.c from the linux kernel - * - * This software may be used and distributed according to the terms - * of the GNU General Public License V2, incorporated herein by reference. - * */ #include @@ -16,12 +12,15 @@ #include #include #include +#ifdef __linux__ +#include +#else +#include +#endif #include #include #include -#include #include -#include /* On BSD-alike OSes elf.h defines these according to host's word size */ #undef ELF_ST_BIND @@ -75,9 +74,9 @@ #define CONVERT_NATIVE(fend, width, x) ({ \ typeof(x) ___x; \ if ((fend) == ELFDATA2LSB) \ - ___x = rte_le_to_cpu_##width(x); \ + ___x = le##width##toh(x); \ else \ - ___x = rte_be_to_cpu_##width(x); \ + ___x = be##width##toh(x); \ ___x; \ }) @@ -85,6 +84,7 @@ else \ enum opt_params { PMD_PARAM_STRING = 0, + PMD_KMOD_DEP, PMD_OPT_MAX }; @@ -117,4 +117,3 @@ struct elf_info { struct pmd_driver *drivers; }; -