Deleted Added
full compact
siena_mcdi.c (292090) siena_mcdi.c (293765)
1/*-
2 * Copyright (c) 2012-2015 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-2015 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/siena_mcdi.c 292090 2015-12-11 07:20:33Z arybchik $");
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/siena_mcdi.c 293765 2016-01-12 15:25:03Z arybchik $");
33
34#include "efsys.h"
35#include "efx.h"
36#include "efx_impl.h"
37
38#if EFSYS_OPT_SIENA && EFSYS_OPT_MCDI
39
40#define SIENA_MCDI_PDU(_emip) \

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

239 emip->emi_port = 1;
240 } else if (portnum <= 2) {
241 emip->emi_port = portnum;
242 } else {
243 rc = EINVAL;
244 goto fail1;
245 }
246
33
34#include "efsys.h"
35#include "efx.h"
36#include "efx_impl.h"
37
38#if EFSYS_OPT_SIENA && EFSYS_OPT_MCDI
39
40#define SIENA_MCDI_PDU(_emip) \

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

239 emip->emi_port = 1;
240 } else if (portnum <= 2) {
241 emip->emi_port = portnum;
242 } else {
243 rc = EINVAL;
244 goto fail1;
245 }
246
247 /* Siena BootROM and firmware only support MCDIv1 */
248 emip->emi_max_version = 1;
249
247 /*
248 * Wipe the atomic reboot status so subsequent MCDI requests succeed.
249 * BOOT_STATUS is preserved so eno_nic_probe() can boot out of the
250 * assertion handler.
251 */
252 (void) siena_mcdi_poll_reboot(enp);
253
254 return (0);

--- 45 unchanged lines hidden ---
250 /*
251 * Wipe the atomic reboot status so subsequent MCDI requests succeed.
252 * BOOT_STATUS is preserved so eno_nic_probe() can boot out of the
253 * assertion handler.
254 */
255 (void) siena_mcdi_poll_reboot(enp);
256
257 return (0);

--- 45 unchanged lines hidden ---