X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_eal.h;h=8d39cba4a867d56409ff96207486c4b9c605de5d;hp=273da9a81c85862c3d44395f5fcf603c6831bf9c;hb=565b85dcd9f48e47e7607086dddaa34f8b3c0b1c;hpb=8a312224bcdeb45a36685b7c517c12d00683b24d diff --git a/lib/librte_eal/common/include/rte_eal.h b/lib/librte_eal/common/include/rte_eal.h index 273da9a81c..8d39cba4a8 100644 --- a/lib/librte_eal/common/include/rte_eal.h +++ b/lib/librte_eal/common/include/rte_eal.h @@ -88,9 +88,6 @@ struct rte_config { struct rte_mem_config *mem_config; } __attribute__((__packed__)); -/* Flag definitions for rte_config flags */ -#define EAL_FLG_HIGH_IOPL 1 /**< indicates high IO privilege in a linux env */ - /** * Get the global configuration structure. * @@ -118,6 +115,17 @@ enum rte_lcore_role_t rte_eal_lcore_role(unsigned lcore_id); */ enum rte_proc_type_t rte_eal_process_type(void); +/** + * Request iopl privilege for all RPL. + * + * This function should be called by pmds which need access to ioports. + + * @return + * - On success, returns 0. + * - On failure, returns -1. + */ +int rte_eal_iopl_init(void); + /** * Initialize the Environment Abstraction Layer (EAL). *