summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarybchik <arybchik@FreeBSD.org>2016-01-14 15:23:23 +0000
committerarybchik <arybchik@FreeBSD.org>2016-01-14 15:23:23 +0000
commitca693f37c881865aa645bfbdfd7912e31e6053c8 (patch)
tree9da3491ec661de149f293d13fe70b8becfc32b7a
parent20128444ffd3d71b7a7555736546bbd9e797422a (diff)
downloadFreeBSD-src-ca693f37c881865aa645bfbdfd7912e31e6053c8.zip
FreeBSD-src-ca693f37c881865aa645bfbdfd7912e31e6053c8.tar.gz
MFC r291927
sfxge: [1/6] add common code MCDI proxy auth build option Submitted by: Andy Moreton <amoreton at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
-rw-r--r--sys/dev/sfxge/common/efsys.h1
-rw-r--r--sys/dev/sfxge/common/efx_check.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/sfxge/common/efsys.h b/sys/dev/sfxge/common/efsys.h
index ea15deb..2711516 100644
--- a/sys/dev/sfxge/common/efsys.h
+++ b/sys/dev/sfxge/common/efsys.h
@@ -246,6 +246,7 @@ sfxge_map_mbuf_fast(bus_dma_tag_t tag, bus_dmamap_t map,
#define EFSYS_OPT_MCDI 1
#define EFSYS_OPT_MCDI_LOGGING 0
+#define EFSYS_OPT_MCDI_PROXY_AUTH 0
#define EFSYS_OPT_MAC_FALCON_GMAC 0
#define EFSYS_OPT_MAC_FALCON_XMAC 0
diff --git a/sys/dev/sfxge/common/efx_check.h b/sys/dev/sfxge/common/efx_check.h
index e3a6827..684cbbf 100644
--- a/sys/dev/sfxge/common/efx_check.h
+++ b/sys/dev/sfxge/common/efx_check.h
@@ -153,6 +153,13 @@
# endif
#endif /* EFSYS_OPT_MCDI_LOGGING */
+/* Support MCDI proxy authorization */
+#if EFSYS_OPT_MCDI_PROXY_AUTH
+# if !EFSYS_OPT_MCDI
+# error "MCDI_PROXY_AUTH requires MCDI"
+# endif
+#endif /* EFSYS_OPT_MCDI_PROXY_AUTH */
+
/* Support LM87 monitor */
#if EFSYS_OPT_MON_LM87
# if !EFSYS_OPT_FALCON
OpenPOWER on IntegriCloud