Deleted Added
full compact
efx_check.h (299331) efx_check.h (299332)
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 299331 2016-05-10 07:15:57Z arybchik $
30 * $FreeBSD: head/sys/dev/sfxge/common/efx_check.h 299332 2016-05-10 07:17:08Z 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_QT2022C2 (0)
51#define EFSYS_OPT_PHY_QT2025C (0)
52#define EFSYS_OPT_PHY_SFT9001 (0)
53#define EFSYS_OPT_PHY_SFX7101 (0)
54#define EFSYS_OPT_PHY_TXC43128 (0)
55#endif
56
57/* Support NVRAM based boot config */
58#if EFSYS_OPT_BOOTCFG

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

253
254/* Support PHY properties */
255#if EFSYS_OPT_PHY_PROPS
256# if !EFSYS_OPT_SIENA
257# error "PHY_PROPS requires SIENA"
258# endif
259#endif /* EFSYS_OPT_PHY_PROPS */
260
50#define EFSYS_OPT_PHY_QT2025C (0)
51#define EFSYS_OPT_PHY_SFT9001 (0)
52#define EFSYS_OPT_PHY_SFX7101 (0)
53#define EFSYS_OPT_PHY_TXC43128 (0)
54#endif
55
56/* Support NVRAM based boot config */
57#if EFSYS_OPT_BOOTCFG

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

252
253/* Support PHY properties */
254#if EFSYS_OPT_PHY_PROPS
255# if !EFSYS_OPT_SIENA
256# error "PHY_PROPS requires SIENA"
257# endif
258#endif /* EFSYS_OPT_PHY_PROPS */
259
261/* Support QT2022C2 PHY */
262#if EFSYS_OPT_PHY_QT2022C2
263# if !EFSYS_OPT_FALCON
264# error "PHY_QT2022C2 requires FALCON"
265# endif
266#endif /* EFSYS_OPT_PHY_QT2022C2 */
260#ifdef EFSYS_OPT_PHY_QT2022C2
261# error "PHY_QT2022C2 is obsolete and is not supported."
262#endif
267
268/* Support QT2025C PHY (Wakefield NIC) */
269#if EFSYS_OPT_PHY_QT2025C
270# if !EFSYS_OPT_FALCON
271# error "PHY_QT2025C requires FALCON"
272# endif
273#endif /* EFSYS_OPT_PHY_QT2025C */
274

--- 97 unchanged lines hidden ---
263
264/* Support QT2025C PHY (Wakefield NIC) */
265#if EFSYS_OPT_PHY_QT2025C
266# if !EFSYS_OPT_FALCON
267# error "PHY_QT2025C requires FALCON"
268# endif
269#endif /* EFSYS_OPT_PHY_QT2025C */
270

--- 97 unchanged lines hidden ---