efx_mcdi.c (278839) | efx_mcdi.c (279141) |
---|---|
1/*- 2 * Copyright 2008-2009 Solarflare Communications Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> | 1/*- 2 * Copyright 2008-2009 Solarflare Communications Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_mcdi.c 278839 2015-02-16 06:12:04Z arybchik $"); | 27__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_mcdi.c 279141 2015-02-22 07:08:57Z arybchik $"); |
28 29#include "efsys.h" 30#include "efx.h" 31#include "efx_types.h" 32#include "efx_regs.h" 33#include "efx_regs_mcdi.h" 34#include "efx_impl.h" 35 --- 491 unchanged lines hidden (view full) --- 527 version[0] = EFX_WORD_FIELD(ver_words[0], EFX_WORD_0); 528 version[1] = EFX_WORD_FIELD(ver_words[1], EFX_WORD_0); 529 version[2] = EFX_WORD_FIELD(ver_words[2], EFX_WORD_0); 530 version[3] = EFX_WORD_FIELD(ver_words[3], EFX_WORD_0); 531 build = MCDI_OUT_DWORD(req, GET_VERSION_OUT_FIRMWARE); 532 533version: 534 /* The bootrom doesn't understand BOOT_STATUS */ | 28 29#include "efsys.h" 30#include "efx.h" 31#include "efx_types.h" 32#include "efx_regs.h" 33#include "efx_regs_mcdi.h" 34#include "efx_impl.h" 35 --- 491 unchanged lines hidden (view full) --- 527 version[0] = EFX_WORD_FIELD(ver_words[0], EFX_WORD_0); 528 version[1] = EFX_WORD_FIELD(ver_words[1], EFX_WORD_0); 529 version[2] = EFX_WORD_FIELD(ver_words[2], EFX_WORD_0); 530 version[3] = EFX_WORD_FIELD(ver_words[3], EFX_WORD_0); 531 build = MCDI_OUT_DWORD(req, GET_VERSION_OUT_FIRMWARE); 532 533version: 534 /* The bootrom doesn't understand BOOT_STATUS */ |
535 if (build == MC_CMD_GET_VERSION_OUT_FIRMWARE_BOOTROM) { | 535 if (build == MC_CMD_GET_VERSION_OUT_FIRMWARE_SIENA_BOOTROM) { |
536 status = EFX_MCDI_BOOT_ROM; 537 goto out; 538 } 539 540 req.emr_cmd = MC_CMD_GET_BOOT_STATUS; 541 EFX_STATIC_ASSERT(MC_CMD_GET_BOOT_STATUS_IN_LEN == 0); 542 req.emr_in_buf = NULL; 543 req.emr_in_length = 0; --- 195 unchanged lines hidden --- | 536 status = EFX_MCDI_BOOT_ROM; 537 goto out; 538 } 539 540 req.emr_cmd = MC_CMD_GET_BOOT_STATUS; 541 EFX_STATIC_ASSERT(MC_CMD_GET_BOOT_STATUS_IN_LEN == 0); 542 req.emr_in_buf = NULL; 543 req.emr_in_length = 0; --- 195 unchanged lines hidden --- |