Deleted Added
full compact
hunt_phy.c (300607) hunt_phy.c (300840)
1/*-
2 * Copyright (c) 2012-2016 Solarflare Communications Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

--- 15 unchanged lines hidden (view full) ---

24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * The views and conclusions contained in the software and documentation are
27 * those of the authors and should not be interpreted as representing official
28 * policies, either expressed or implied, of the FreeBSD Project.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012-2016 Solarflare Communications Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

--- 15 unchanged lines hidden (view full) ---

24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * The views and conclusions contained in the software and documentation are
27 * those of the authors and should not be interpreted as representing official
28 * policies, either expressed or implied, of the FreeBSD Project.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/hunt_phy.c 300607 2016-05-24 12:16:57Z arybchik $");
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/hunt_phy.c 300840 2016-05-27 11:44:40Z arybchik $");
33
34#include "efx.h"
35#include "efx_impl.h"
36
37#if EFSYS_OPT_HUNTINGTON
38
39#if EFSYS_OPT_BIST
40

--- 46 unchanged lines hidden (view full) ---

87 efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
88 efx_mcdi_req_t req;
89 uint8_t payload[MAX(MC_CMD_POLL_BIST_IN_LEN,
90 MCDI_CTL_SDU_LEN_MAX)];
91 uint32_t value_mask = 0;
92 uint32_t result;
93 efx_rc_t rc;
94
33
34#include "efx.h"
35#include "efx_impl.h"
36
37#if EFSYS_OPT_HUNTINGTON
38
39#if EFSYS_OPT_BIST
40

--- 46 unchanged lines hidden (view full) ---

87 efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
88 efx_mcdi_req_t req;
89 uint8_t payload[MAX(MC_CMD_POLL_BIST_IN_LEN,
90 MCDI_CTL_SDU_LEN_MAX)];
91 uint32_t value_mask = 0;
92 uint32_t result;
93 efx_rc_t rc;
94
95 _NOTE(ARGUNUSED(type))
96
95 (void) memset(payload, 0, sizeof (payload));
96 req.emr_cmd = MC_CMD_POLL_BIST;
97 req.emr_in_buf = payload;
98 req.emr_in_length = MC_CMD_POLL_BIST_IN_LEN;
99 req.emr_out_buf = payload;
100 req.emr_out_length = MCDI_CTL_SDU_LEN_MAX;
101
102 efx_mcdi_execute(enp, &req);

--- 88 unchanged lines hidden ---
97 (void) memset(payload, 0, sizeof (payload));
98 req.emr_cmd = MC_CMD_POLL_BIST;
99 req.emr_in_buf = payload;
100 req.emr_in_length = MC_CMD_POLL_BIST_IN_LEN;
101 req.emr_out_buf = payload;
102 req.emr_out_length = MCDI_CTL_SDU_LEN_MAX;
103
104 efx_mcdi_execute(enp, &req);

--- 88 unchanged lines hidden ---