Deleted Added
full compact
efx_check.h (299334) efx_check.h (299335)
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 299334 2016-05-10 07:19:15Z arybchik $
30 * $FreeBSD: head/sys/dev/sfxge/common/efx_check.h 299335 2016-05-10 07:20:18Z 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_PHY_SFX7101 (0)
51#define EFSYS_OPT_PHY_TXC43128 (0)
52#endif
53
54/* Support NVRAM based boot config */
55#if EFSYS_OPT_BOOTCFG
56# if !EFSYS_OPT_NVRAM
57# error "BOOTCFG requires NVRAM"
58# endif

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

262#ifdef EFSYS_OPT_PHY_QT2025C
263# error "PHY_QT2025C is obsolete and is not supported."
264#endif
265
266#ifdef EFSYS_OPT_PHY_SFT9001
267# error "PHY_SFT9001 is obsolete and is not supported."
268#endif
269
50#define EFSYS_OPT_PHY_TXC43128 (0)
51#endif
52
53/* Support NVRAM based boot config */
54#if EFSYS_OPT_BOOTCFG
55# if !EFSYS_OPT_NVRAM
56# error "BOOTCFG requires NVRAM"
57# endif

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

261#ifdef EFSYS_OPT_PHY_QT2025C
262# error "PHY_QT2025C is obsolete and is not supported."
263#endif
264
265#ifdef EFSYS_OPT_PHY_SFT9001
266# error "PHY_SFT9001 is obsolete and is not supported."
267#endif
268
270/* Support SFX7101 PHY (SFE4001 NIC) */
271#if EFSYS_OPT_PHY_SFX7101
272# if !EFSYS_OPT_FALCON
273# error "PHY_SFX7101 requires FALCON"
274# endif
275#endif /* EFSYS_OPT_PHY_SFX7101 */
269#ifdef EFSYS_OPT_PHY_SFX7101
270# error "PHY_SFX7101 is obsolete and is not supported."
271#endif
276
277/* Support PHY statistics */
278#if EFSYS_OPT_PHY_STATS
279# if !EFSYS_OPT_SIENA
280# error "PHY_STATS requires SIENA"
281# endif
282#endif /* EFSYS_OPT_PHY_STATS */
283

--- 76 unchanged lines hidden ---
272
273/* Support PHY statistics */
274#if EFSYS_OPT_PHY_STATS
275# if !EFSYS_OPT_SIENA
276# error "PHY_STATS requires SIENA"
277# endif
278#endif /* EFSYS_OPT_PHY_STATS */
279

--- 76 unchanged lines hidden ---