Deleted Added
full compact
efx_check.h (299252) efx_check.h (299253)
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 299252 2016-05-09 08:35:08Z arybchik $
30 * $FreeBSD: head/sys/dev/sfxge/common/efx_check.h 299253 2016-05-09 08:37:42Z 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
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_FALCON (0)
51#define EFSYS_OPT_FALCON_NIC_CFG_OVERRIDE (0)
52
53#define EFSYS_OPT_MAC_FALCON_GMAC (0)
54#define EFSYS_OPT_MAC_FALCON_XMAC (0)
55
56#define EFSYS_OPT_MON_LM87 (0)
57#define EFSYS_OPT_MON_MAX6647 (0)
58#define EFSYS_OPT_MON_NULL (0)
59
60#define EFSYS_OPT_NVRAM_FALCON_BOOTROM (0)
61#define EFSYS_OPT_NVRAM_SFT9001 (0)
62#define EFSYS_OPT_NVRAM_SFX7101 (0)
63
64#define EFSYS_OPT_PCIE_TUNE (0)
65
66#define EFSYS_OPT_PHY_NULL (0)
67#define EFSYS_OPT_PHY_QT2022C2 (0)
68#define EFSYS_OPT_PHY_QT2025C (0)
69#define EFSYS_OPT_PHY_SFT9001 (0)
70#define EFSYS_OPT_PHY_SFX7101 (0)
71#define EFSYS_OPT_PHY_TXC43128 (0)
72#endif
73
46/* Support NVRAM based boot config */
47#if EFSYS_OPT_BOOTCFG
48# if !EFSYS_OPT_NVRAM
49# error "BOOTCFG requires NVRAM"
50# endif
51#endif /* EFSYS_OPT_BOOTCFG */
52
53/* Verify chip implements accessed registers */

--- 362 unchanged lines hidden ---
74/* Support NVRAM based boot config */
75#if EFSYS_OPT_BOOTCFG
76# if !EFSYS_OPT_NVRAM
77# error "BOOTCFG requires NVRAM"
78# endif
79#endif /* EFSYS_OPT_BOOTCFG */
80
81/* Verify chip implements accessed registers */

--- 362 unchanged lines hidden ---