1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2014 6WIND S.A.
9 /* long options mapped to a short option */
10 #define OPT_HELP "help"
12 #define OPT_PCI_BLACKLIST "pci-blacklist"
13 OPT_PCI_BLACKLIST_NUM = 'b',
14 #define OPT_PCI_WHITELIST "pci-whitelist"
15 OPT_PCI_WHITELIST_NUM = 'w',
17 /* first long only option value must be >= 256, so that we won't
18 * conflict with short options */
19 OPT_LONG_MIN_NUM = 256,
20 #define OPT_BASE_VIRTADDR "base-virtaddr"
21 OPT_BASE_VIRTADDR_NUM,
22 #define OPT_CREATE_UIO_DEV "create-uio-dev"
23 OPT_CREATE_UIO_DEV_NUM,
24 #define OPT_FILE_PREFIX "file-prefix"
26 #define OPT_HUGE_DIR "huge-dir"
28 #define OPT_HUGE_UNLINK "huge-unlink"
30 #define OPT_LCORES "lcores"
32 #define OPT_LOG_LEVEL "log-level"
34 #define OPT_MASTER_LCORE "master-lcore"
36 #define OPT_MBUF_POOL_OPS_NAME "mbuf-pool-ops-name"
37 OPT_MBUF_POOL_OPS_NAME_NUM,
38 #define OPT_PROC_TYPE "proc-type"
40 #define OPT_NO_HPET "no-hpet"
42 #define OPT_NO_HUGE "no-huge"
44 #define OPT_NO_PCI "no-pci"
46 #define OPT_NO_SHCONF "no-shconf"
48 #define OPT_SOCKET_MEM "socket-mem"
50 #define OPT_SYSLOG "syslog"
52 #define OPT_VDEV "vdev"
54 #define OPT_VFIO_INTR "vfio-intr"
56 #define OPT_VMWARE_TSC_MAP "vmware-tsc-map"
57 OPT_VMWARE_TSC_MAP_NUM,
61 extern const char eal_short_options[];
62 extern const struct option eal_long_options[];
64 int eal_parse_common_option(int opt, const char *argv,
65 struct internal_config *conf);
66 int eal_option_device_parse(void);
67 int eal_adjust_config(struct internal_config *internal_cfg);
68 int eal_check_common_options(struct internal_config *internal_cfg);
69 void eal_common_usage(void);
70 enum rte_proc_type_t eal_proc_type_detect(void);
71 int eal_plugins_init(void);
73 #endif /* EAL_OPTIONS_H */