net/sfc/base: decorate libefx API functions

The decorators will be used in the future to mark libefx API
functions as __rte_internal.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
Reviewed-by: Richard Houldsworth <rhouldsw@xilinx.com>
This commit is contained in:
Andrew Rybchenko 2020-09-17 07:34:28 +01:00 committed by Ferruh Yigit
parent 7c7e4a0f0b
commit 260477454c
4 changed files with 264 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -9,6 +9,15 @@
#include "efsys.h"
/*
* LIBEFX_* defines may be used to put API functions into dedicated code
* section if required by driver development framework and conventions.
*/
#ifndef LIBEFX_API
# error "LIBEFX_API must be defined"
#endif
/*
* Check that the efsys.h header in client code has a valid combination of
* EFSYS_OPT_xxx options.

View File

@ -74,6 +74,7 @@ efx_mcdi_ev_cpl(
__in int errcode);
#if EFSYS_OPT_MCDI_PROXY_AUTH
LIBEFX_API
extern __checkReturn efx_rc_t
efx_mcdi_get_proxy_handle(
__in efx_nic_t *enp,

View File

@ -32,6 +32,9 @@
extern "C" {
#endif
/* No specific decorations required since all functions are local now */
#define LIBEFX_API
#define EFSYS_HAS_UINT64 1
#define EFSYS_USE_UINT64 1
#define EFSYS_HAS_SSE2_M128 1