net/sfc/base: decorate libefx internal extern functions

The decorator may be used in the future to instruct linker
to put it into dedicated sections or hide.

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

File diff suppressed because it is too large Load Diff

View File

@ -18,6 +18,10 @@
# error "LIBEFX_API must be defined"
#endif
#ifndef LIBEFX_INTERNAL
# error "LIBEFX_INTERNAL must be defined"
#endif
/*
* Check that the efsys.h header in client code has a valid combination of
* EFSYS_OPT_xxx options.

View File

@ -279,6 +279,7 @@ typedef struct efx_filter_ops_s {
uint8_t const *, uint32_t);
} efx_filter_ops_t;
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_filter_reconfigure(
__in efx_nic_t *enp,
@ -464,6 +465,7 @@ typedef struct efx_filter_s {
#if EFSYS_OPT_SIENA
LIBEFX_INTERNAL
extern void
siena_filter_tbl_clear(
__in efx_nic_t *enp,
@ -566,6 +568,7 @@ typedef struct efx_vpd_ops_s {
#if EFSYS_OPT_VPD || EFSYS_OPT_NVRAM
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_nvram_partitions(
__in efx_nic_t *enp,
@ -573,6 +576,7 @@ efx_mcdi_nvram_partitions(
__in size_t size,
__out unsigned int *npartnp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_nvram_metadata(
__in efx_nic_t *enp,
@ -582,17 +586,20 @@ efx_mcdi_nvram_metadata(
__out_bcount_opt(size) char *descp,
__in size_t size);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_nvram_info(
__in efx_nic_t *enp,
__in uint32_t partn,
__out efx_nvram_info_t *eni);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_nvram_update_start(
__in efx_nic_t *enp,
__in uint32_t partn);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_nvram_read(
__in efx_nic_t *enp,
@ -602,6 +609,7 @@ efx_mcdi_nvram_read(
__in size_t size,
__in uint32_t mode);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_nvram_erase(
__in efx_nic_t *enp,
@ -609,6 +617,7 @@ efx_mcdi_nvram_erase(
__in uint32_t offset,
__in size_t size);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_nvram_write(
__in efx_nic_t *enp,
@ -620,6 +629,7 @@ efx_mcdi_nvram_write(
#define EFX_NVRAM_UPDATE_FLAGS_BACKGROUND 0x00000001
#define EFX_NVRAM_UPDATE_FLAGS_POLL 0x00000002
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_nvram_update_finish(
__in efx_nic_t *enp,
@ -630,6 +640,7 @@ efx_mcdi_nvram_update_finish(
#if EFSYS_OPT_DIAG
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_nvram_test(
__in efx_nic_t *enp,
@ -713,6 +724,7 @@ typedef struct efx_evb_ops_s {
efx_vport_id_t, efsys_mem_t *);
} efx_evb_ops_t;
LIBEFX_INTERNAL
extern __checkReturn boolean_t
efx_is_zero_eth_addr(
__in_bcount(EFX_MAC_ADDR_LEN) const uint8_t *addrp);
@ -1286,10 +1298,12 @@ struct efx_txq_s {
_NOTE(CONSTANTCONDITION) \
} while (B_FALSE)
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mac_select(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern void
efx_mac_multicast_hash_compute(
__in_ecount(6*count) uint8_t const *addrs,
@ -1297,10 +1311,12 @@ efx_mac_multicast_hash_compute(
__out efx_oword_t *hash_low,
__out efx_oword_t *hash_high);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_phy_probe(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern void
efx_phy_unprobe(
__in efx_nic_t *enp);
@ -1309,24 +1325,28 @@ efx_phy_unprobe(
/* VPD utility functions */
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_vpd_hunk_length(
__in_bcount(size) caddr_t data,
__in size_t size,
__out size_t *lengthp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_vpd_hunk_verify(
__in_bcount(size) caddr_t data,
__in size_t size,
__out_opt boolean_t *cksummedp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_vpd_hunk_reinit(
__in_bcount(size) caddr_t data,
__in size_t size,
__in boolean_t wantpid);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_vpd_hunk_get(
__in_bcount(size) caddr_t data,
@ -1336,6 +1356,7 @@ efx_vpd_hunk_get(
__out unsigned int *payloadp,
__out uint8_t *paylenp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_vpd_hunk_next(
__in_bcount(size) caddr_t data,
@ -1346,6 +1367,7 @@ efx_vpd_hunk_next(
__out_opt uint8_t *paylenp,
__inout unsigned int *contp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_vpd_hunk_set(
__in_bcount(size) caddr_t data,
@ -1356,6 +1378,7 @@ efx_vpd_hunk_set(
#if EFSYS_OPT_MCDI
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_set_workaround(
__in efx_nic_t *enp,
@ -1363,6 +1386,7 @@ efx_mcdi_set_workaround(
__in boolean_t enabled,
__out_opt uint32_t *flagsp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_get_workarounds(
__in efx_nic_t *enp,
@ -1391,6 +1415,7 @@ typedef enum efx_stats_action_e {
EFX_STATS_DISABLE,
} efx_stats_action_t;
LIBEFX_INTERNAL
extern efx_rc_t
efx_mac_stats_mask_add_ranges(
__inout_bcount(mask_size) uint32_t *maskp,
@ -1398,6 +1423,7 @@ efx_mac_stats_mask_add_ranges(
__in_ecount(rng_count) const struct efx_mac_stats_range *rngp,
__in unsigned int rng_count);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_mac_stats(
__in efx_nic_t *enp,

View File

@ -56,16 +56,19 @@ typedef struct efx_mcdi_iface_s {
uint32_t emi_mc_reboot_status;
} efx_mcdi_iface_t;
LIBEFX_INTERNAL
extern void
efx_mcdi_execute(
__in efx_nic_t *enp,
__inout efx_mcdi_req_t *emrp);
LIBEFX_INTERNAL
extern void
efx_mcdi_execute_quiet(
__in efx_nic_t *enp,
__inout efx_mcdi_req_t *emrp);
LIBEFX_INTERNAL
extern void
efx_mcdi_ev_cpl(
__in efx_nic_t *enp,
@ -81,6 +84,7 @@ efx_mcdi_get_proxy_handle(
__in efx_mcdi_req_t *emrp,
__out uint32_t *handlep);
LIBEFX_INTERNAL
extern void
efx_mcdi_ev_proxy_response(
__in efx_nic_t *enp,
@ -89,21 +93,25 @@ efx_mcdi_ev_proxy_response(
#endif
#if EFSYS_OPT_MCDI_PROXY_AUTH_SERVER
LIBEFX_INTERNAL
extern void
efx_mcdi_ev_proxy_request(
__in efx_nic_t *enp,
__in unsigned int index);
#endif /* EFSYS_OPT_MCDI_PROXY_AUTH_SERVER */
LIBEFX_INTERNAL
extern void
efx_mcdi_ev_death(
__in efx_nic_t *enp,
__in int rc);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_request_errcode(
__in unsigned int err);
LIBEFX_INTERNAL
extern void
efx_mcdi_raise_exception(
__in efx_nic_t *enp,
@ -116,6 +124,7 @@ typedef enum efx_mcdi_boot_e {
EFX_MCDI_BOOT_ROM,
} efx_mcdi_boot_t;
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_version(
__in efx_nic_t *enp,
@ -123,6 +132,7 @@ efx_mcdi_version(
__out_opt uint32_t *buildp,
__out_opt efx_mcdi_boot_t *statusp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_get_capabilities(
__in efx_nic_t *enp,
@ -132,19 +142,23 @@ efx_mcdi_get_capabilities(
__out_opt uint32_t *flags2p,
__out_opt uint32_t *tso2ncp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_read_assertion(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_exit_assertion_handler(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_drv_attach(
__in efx_nic_t *enp,
__in boolean_t attach);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_get_board_cfg(
__in efx_nic_t *enp,
@ -152,25 +166,30 @@ efx_mcdi_get_board_cfg(
__out_opt efx_dword_t *capabilitiesp,
__out_ecount_opt(6) uint8_t mac_addrp[6]);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_get_phy_cfg(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_firmware_update_supported(
__in efx_nic_t *enp,
__out boolean_t *supportedp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_macaddr_change_supported(
__in efx_nic_t *enp,
__out boolean_t *supportedp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_link_control_supported(
__in efx_nic_t *enp,
__out boolean_t *supportedp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_mac_spoofing_supported(
__in efx_nic_t *enp,
@ -179,16 +198,19 @@ efx_mcdi_mac_spoofing_supported(
#if EFSYS_OPT_BIST
#if EFX_OPTS_EF10()
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_bist_enable_offline(
__in efx_nic_t *enp);
#endif /* EFX_OPTS_EF10() */
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_bist_start(
__in efx_nic_t *enp,
__in efx_bist_type_t type);
#endif /* EFSYS_OPT_BIST */
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_get_resource_limits(
__in efx_nic_t *enp,
@ -196,19 +218,23 @@ efx_mcdi_get_resource_limits(
__out_opt uint32_t *nrxqp,
__out_opt uint32_t *ntxqp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_log_ctrl(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_mac_stats_clear(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_mac_stats_upload(
__in efx_nic_t *enp,
__in efsys_mem_t *esmp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_mac_stats_periodic(
__in efx_nic_t *enp,
@ -218,11 +244,13 @@ efx_mcdi_mac_stats_periodic(
#if EFSYS_OPT_LOOPBACK
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_get_loopback_modes(
__in efx_nic_t *enp);
#endif /* EFSYS_OPT_LOOPBACK */
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
efx_mcdi_phy_module_get_info(
__in efx_nic_t *enp,

View File

@ -43,6 +43,7 @@ extern "C" {
/* NIC */
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
hunt_board_cfg(
__in efx_nic_t *enp);

View File

@ -17,15 +17,18 @@ extern "C" {
#if EFSYS_OPT_MON_STATS
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
mcdi_mon_cfg_build(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern void
mcdi_mon_cfg_free(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
mcdi_mon_ev(
__in efx_nic_t *enp,
@ -33,12 +36,14 @@ mcdi_mon_ev(
__out efx_mon_stat_t *idp,
__out efx_mon_stat_value_t *valuep);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
mcdi_mon_stats_update(
__in efx_nic_t *enp,
__in efsys_mem_t *esmp,
__inout_ecount(EFX_MON_NSTATS) efx_mon_stat_value_t *values);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
mcdi_mon_limits_update(
__in efx_nic_t *enp,

View File

@ -27,6 +27,7 @@ extern "C" {
#define MEDFORD2_MIN_PIO_ALLOC_SIZE (MEDFORD2_PIOBUF_SIZE / 32)
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
medford2_board_cfg(
__in efx_nic_t *enp);

View File

@ -27,6 +27,7 @@ extern "C" {
#define MEDFORD_MIN_PIO_ALLOC_SIZE (MEDFORD_PIOBUF_SIZE / 32)
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
medford_board_cfg(
__in efx_nic_t *enp);

View File

@ -40,20 +40,24 @@ extern "C" {
#define SIENA_NVRAM_CHUNK 0x80
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nic_probe(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nic_reset(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nic_init(
__in efx_nic_t *enp);
#if EFSYS_OPT_DIAG
LIBEFX_INTERNAL
extern efx_sram_pattern_fn_t __efx_sram_pattern_fns[];
typedef struct siena_register_set_s {
@ -63,28 +67,33 @@ typedef struct siena_register_set_s {
efx_oword_t mask;
} siena_register_set_t;
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nic_register_test(
__in efx_nic_t *enp);
#endif /* EFSYS_OPT_DIAG */
LIBEFX_INTERNAL
extern void
siena_nic_fini(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern void
siena_nic_unprobe(
__in efx_nic_t *enp);
#define SIENA_SRAM_ROWS 0x12000
LIBEFX_INTERNAL
extern void
siena_sram_init(
__in efx_nic_t *enp);
#if EFSYS_OPT_DIAG
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_sram_test(
__in efx_nic_t *enp,
@ -94,11 +103,13 @@ siena_sram_test(
#if EFSYS_OPT_MCDI
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_mcdi_init(
__in efx_nic_t *enp,
__in const efx_mcdi_transport_t *mtp);
LIBEFX_INTERNAL
extern void
siena_mcdi_send_request(
__in efx_nic_t *enp,
@ -107,10 +118,12 @@ siena_mcdi_send_request(
__in_bcount(sdu_len) void *sdup,
__in size_t sdu_len);
LIBEFX_INTERNAL
extern __checkReturn boolean_t
siena_mcdi_poll_response(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern void
siena_mcdi_read_response(
__in efx_nic_t *enp,
@ -118,20 +131,24 @@ siena_mcdi_read_response(
__in size_t offset,
__in size_t length);
LIBEFX_INTERNAL
extern efx_rc_t
siena_mcdi_poll_reboot(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern void
siena_mcdi_fini(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_mcdi_feature_supported(
__in efx_nic_t *enp,
__in efx_mcdi_feature_id_t id,
__out boolean_t *supportedp);
LIBEFX_INTERNAL
extern void
siena_mcdi_get_timeout(
__in efx_nic_t *enp,
@ -142,17 +159,20 @@ siena_mcdi_get_timeout(
#if EFSYS_OPT_NVRAM || EFSYS_OPT_VPD
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_lock(
__in efx_nic_t *enp,
__in uint32_t partn);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_unlock(
__in efx_nic_t *enp,
__in uint32_t partn,
__out_opt uint32_t *verify_resultp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_get_dynamic_cfg(
__in efx_nic_t *enp,
@ -167,42 +187,49 @@ siena_nvram_get_dynamic_cfg(
#if EFSYS_OPT_DIAG
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_test(
__in efx_nic_t *enp);
#endif /* EFSYS_OPT_DIAG */
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_get_subtype(
__in efx_nic_t *enp,
__in uint32_t partn,
__out uint32_t *subtypep);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_type_to_partn(
__in efx_nic_t *enp,
__in efx_nvram_type_t type,
__out uint32_t *partnp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_size(
__in efx_nic_t *enp,
__in uint32_t partn,
__out size_t *sizep);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_info(
__in efx_nic_t *enp,
__in uint32_t partn,
__out efx_nvram_info_t * enip);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_rw_start(
__in efx_nic_t *enp,
__in uint32_t partn,
__out size_t *chunk_sizep);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_read(
__in efx_nic_t *enp,
@ -211,6 +238,7 @@ siena_nvram_partn_read(
__out_bcount(size) caddr_t data,
__in size_t size);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_erase(
__in efx_nic_t *enp,
@ -218,6 +246,7 @@ siena_nvram_partn_erase(
__in unsigned int offset,
__in size_t size);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_write(
__in efx_nic_t *enp,
@ -226,12 +255,14 @@ siena_nvram_partn_write(
__out_bcount(size) caddr_t data,
__in size_t size);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_rw_finish(
__in efx_nic_t *enp,
__in uint32_t partn,
__out_opt uint32_t *verify_resultp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_get_version(
__in efx_nic_t *enp,
@ -239,6 +270,7 @@ siena_nvram_partn_get_version(
__out uint32_t *subtypep,
__out_ecount(4) uint16_t version[4]);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_nvram_partn_set_version(
__in efx_nic_t *enp,
@ -249,33 +281,39 @@ siena_nvram_partn_set_version(
#if EFSYS_OPT_VPD
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_vpd_init(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_vpd_size(
__in efx_nic_t *enp,
__out size_t *sizep);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_vpd_read(
__in efx_nic_t *enp,
__out_bcount(size) caddr_t data,
__in size_t size);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_vpd_verify(
__in efx_nic_t *enp,
__in_bcount(size) caddr_t data,
__in size_t size);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_vpd_reinit(
__in efx_nic_t *enp,
__in_bcount(size) caddr_t data,
__in size_t size);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_vpd_get(
__in efx_nic_t *enp,
@ -283,6 +321,7 @@ siena_vpd_get(
__in size_t size,
__inout efx_vpd_value_t *evvp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_vpd_set(
__in efx_nic_t *enp,
@ -290,6 +329,7 @@ siena_vpd_set(
__in size_t size,
__in efx_vpd_value_t *evvp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_vpd_next(
__in efx_nic_t *enp,
@ -298,12 +338,14 @@ siena_vpd_next(
__out efx_vpd_value_t *evvp,
__inout unsigned int *contp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_vpd_write(
__in efx_nic_t *enp,
__in_bcount(size) caddr_t data,
__in size_t size);
LIBEFX_INTERNAL
extern void
siena_vpd_fini(
__in efx_nic_t *enp);
@ -321,30 +363,36 @@ typedef struct siena_link_state_s {
boolean_t sls_mac_up;
} siena_link_state_t;
LIBEFX_INTERNAL
extern void
siena_phy_link_ev(
__in efx_nic_t *enp,
__in efx_qword_t *eqp,
__out efx_link_mode_t *link_modep);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_phy_get_link(
__in efx_nic_t *enp,
__out siena_link_state_t *slsp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_phy_power(
__in efx_nic_t *enp,
__in boolean_t on);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_phy_reconfigure(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_phy_verify(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_phy_oui_get(
__in efx_nic_t *enp,
@ -352,6 +400,7 @@ siena_phy_oui_get(
#if EFSYS_OPT_PHY_STATS
LIBEFX_INTERNAL
extern void
siena_phy_decode_stats(
__in efx_nic_t *enp,
@ -360,6 +409,7 @@ siena_phy_decode_stats(
__out_opt uint64_t *smaskp,
__inout_ecount_opt(EFX_PHY_NSTATS) uint32_t *stat);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_phy_stats_update(
__in efx_nic_t *enp,
@ -370,11 +420,13 @@ siena_phy_stats_update(
#if EFSYS_OPT_BIST
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_phy_bist_start(
__in efx_nic_t *enp,
__in efx_bist_type_t type);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_phy_bist_poll(
__in efx_nic_t *enp,
@ -386,6 +438,7 @@ siena_phy_bist_poll(
unsigned long *valuesp,
__in size_t count);
LIBEFX_INTERNAL
extern void
siena_phy_bist_stop(
__in efx_nic_t *enp,
@ -393,20 +446,24 @@ siena_phy_bist_stop(
#endif /* EFSYS_OPT_BIST */
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_mac_poll(
__in efx_nic_t *enp,
__out efx_link_mode_t *link_modep);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_mac_up(
__in efx_nic_t *enp,
__out boolean_t *mac_upp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_mac_reconfigure(
__in efx_nic_t *enp);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_mac_pdu_get(
__in efx_nic_t *enp,
@ -414,6 +471,7 @@ siena_mac_pdu_get(
#if EFSYS_OPT_LOOPBACK
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_mac_loopback_set(
__in efx_nic_t *enp,
@ -424,12 +482,14 @@ siena_mac_loopback_set(
#if EFSYS_OPT_MAC_STATS
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_mac_stats_get_mask(
__in efx_nic_t *enp,
__inout_bcount(mask_size) uint32_t *maskp,
__in size_t mask_size);
LIBEFX_INTERNAL
extern __checkReturn efx_rc_t
siena_mac_stats_update(
__in efx_nic_t *enp,

View File

@ -34,6 +34,7 @@ extern "C" {
/* No specific decorations required since all functions are local now */
#define LIBEFX_API
#define LIBEFX_INTERNAL
#define EFSYS_HAS_UINT64 1
#define EFSYS_USE_UINT64 1