Deleted Added
full compact
efx_check.h (299323) efx_check.h (299324)
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 299323 2016-05-10 07:07:49Z arybchik $
30 * $FreeBSD: head/sys/dev/sfxge/common/efx_check.h 299324 2016-05-10 07:08:40Z 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_MON_LM87 (0)
51#define EFSYS_OPT_MON_MAX6647 (0)
52#define EFSYS_OPT_MON_NULL (0)
53
54#define EFSYS_OPT_NVRAM_FALCON_BOOTROM (0)
55#define EFSYS_OPT_NVRAM_SFT9001 (0)
56#define EFSYS_OPT_NVRAM_SFX7101 (0)
57
58#define EFSYS_OPT_PHY_NULL (0)

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

159
160/* Support MCDI proxy authorization */
161#if EFSYS_OPT_MCDI_PROXY_AUTH
162# if !EFSYS_OPT_MCDI
163# error "MCDI_PROXY_AUTH requires MCDI"
164# endif
165#endif /* EFSYS_OPT_MCDI_PROXY_AUTH */
166
50#define EFSYS_OPT_MON_MAX6647 (0)
51#define EFSYS_OPT_MON_NULL (0)
52
53#define EFSYS_OPT_NVRAM_FALCON_BOOTROM (0)
54#define EFSYS_OPT_NVRAM_SFT9001 (0)
55#define EFSYS_OPT_NVRAM_SFX7101 (0)
56
57#define EFSYS_OPT_PHY_NULL (0)

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

158
159/* Support MCDI proxy authorization */
160#if EFSYS_OPT_MCDI_PROXY_AUTH
161# if !EFSYS_OPT_MCDI
162# error "MCDI_PROXY_AUTH requires MCDI"
163# endif
164#endif /* EFSYS_OPT_MCDI_PROXY_AUTH */
165
167/* Support LM87 monitor */
168#if EFSYS_OPT_MON_LM87
169# if !EFSYS_OPT_FALCON
170# error "MON_LM87 requires FALCON"
171# endif
172#endif /* EFSYS_OPT_MON_LM87 */
166#ifdef EFSYS_OPT_MON_LM87
167# error "MON_LM87 is obsolete and is not supported."
168#endif
173
174/* Support MAX6647 monitor */
175#if EFSYS_OPT_MON_MAX6647
176# if !EFSYS_OPT_FALCON
177# error "MON_MAX6647 requires FALCON"
178# endif
179#endif /* EFSYS_OPT_MON_MAX6647 */
180

--- 230 unchanged lines hidden ---
169
170/* Support MAX6647 monitor */
171#if EFSYS_OPT_MON_MAX6647
172# if !EFSYS_OPT_FALCON
173# error "MON_MAX6647 requires FALCON"
174# endif
175#endif /* EFSYS_OPT_MON_MAX6647 */
176

--- 230 unchanged lines hidden ---