Deleted Added
full compact
efx_check.h (299328) efx_check.h (299330)
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,

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

22 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
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 *
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,

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

22 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
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 * $FreeBSD: head/sys/dev/sfxge/common/efx_check.h 299328 2016-05-10 07:13:45Z arybchik $
30 * $FreeBSD: head/sys/dev/sfxge/common/efx_check.h 299330 2016-05-10 07:15:09Z arybchik $
31 */
32
33#ifndef _SYS_EFX_CHECK_H
34#define _SYS_EFX_CHECK_H
35
36#include "efsys.h"
37
38/*
39 * Check that the efsys.h header in client code has a valid combination of
40 * EFSYS_OPT_xxx options.
41 *
42 * NOTE: Keep checks for obsolete options here to ensure that they are removed
43 * from client code (and do not reappear in merges from other branches).
44 */
45
46#ifdef EFSYS_OPT_FALCON
47# error "FALCON is obsolete and is not supported."
48#else
49/* FIXME: remove this after Falcon support has been removed */
31 */
32
33#ifndef _SYS_EFX_CHECK_H
34#define _SYS_EFX_CHECK_H
35
36#include "efsys.h"
37
38/*
39 * Check that the efsys.h header in client code has a valid combination of
40 * EFSYS_OPT_xxx options.
41 *
42 * NOTE: Keep checks for obsolete options here to ensure that they are removed
43 * from client code (and do not reappear in merges from other branches).
44 */
45
46#ifdef EFSYS_OPT_FALCON
47# error "FALCON is obsolete and is not supported."
48#else
49/* FIXME: remove this after Falcon support has been removed */
50#define EFSYS_OPT_NVRAM_SFX7101 (0)
51
52#define EFSYS_OPT_PHY_NULL (0)
53#define EFSYS_OPT_PHY_QT2022C2 (0)
54#define EFSYS_OPT_PHY_QT2025C (0)
55#define EFSYS_OPT_PHY_SFT9001 (0)
56#define EFSYS_OPT_PHY_SFX7101 (0)
57#define EFSYS_OPT_PHY_TXC43128 (0)
58#endif
59

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

213#ifdef EFSYS_OPT_NVRAM_FALCON_BOOTROM
214# error "NVRAM_FALCON_BOOTROM is obsolete and is not supported."
215#endif
216
217#ifdef EFSYS_OPT_NVRAM_SFT9001
218# error "NVRAM_SFT9001 is obsolete and is not supported."
219#endif
220
50#define EFSYS_OPT_PHY_NULL (0)
51#define EFSYS_OPT_PHY_QT2022C2 (0)
52#define EFSYS_OPT_PHY_QT2025C (0)
53#define EFSYS_OPT_PHY_SFT9001 (0)
54#define EFSYS_OPT_PHY_SFX7101 (0)
55#define EFSYS_OPT_PHY_TXC43128 (0)
56#endif
57

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

211#ifdef EFSYS_OPT_NVRAM_FALCON_BOOTROM
212# error "NVRAM_FALCON_BOOTROM is obsolete and is not supported."
213#endif
214
215#ifdef EFSYS_OPT_NVRAM_SFT9001
216# error "NVRAM_SFT9001 is obsolete and is not supported."
217#endif
218
221/* Support NVRAM config for SFX7101 */
222#if EFSYS_OPT_NVRAM_SFX7101
223# if !EFSYS_OPT_NVRAM
224# error "NVRAM_SFX7101 requires NVRAM"
225# endif
226# if !EFSYS_OPT_FALCON
227# error "NVRAM_SFX7101 requires FALCON"
228# endif
229#endif /* EFSYS_OPT_NVRAM_SFX7101 */
219#ifdef EFSYS_OPT_NVRAM_SFX7101
220# error "NVRAM_SFX7101 is obsolete and is not supported."
221#endif
230
231#ifdef EFSYS_OPT_PCIE_TUNE
232# error "PCIE_TUNE is obsolete and is not supported."
233#endif
234
235/* Obsolete option */
236#ifdef EFSYS_OPT_PHY_BIST
237# error "PHY_BIST is obsolete (replaced by BIST)."

--- 146 unchanged lines hidden ---
222
223#ifdef EFSYS_OPT_PCIE_TUNE
224# error "PCIE_TUNE is obsolete and is not supported."
225#endif
226
227/* Obsolete option */
228#ifdef EFSYS_OPT_PHY_BIST
229# error "PHY_BIST is obsolete (replaced by BIST)."

--- 146 unchanged lines hidden ---