[rtems-libbsd commit] Move config info into a .h file

Jennifer Averett jennifer at rtems.org
Fri Jun 29 18:06:40 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    8b588ff7b72d52d72345b9e7ca00ebba5fd5169c
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=8b588ff7b72d52d72345b9e7ca00ebba5fd5169c

Author:    Jennifer Averett <jennifer.averett at oarcorp.com>
Date:      Fri Jun 29 13:10:11 2012 -0500

Move config info into a .h file

---

 testsuite/link01/nic-sysinit.h |   89 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 89 insertions(+), 0 deletions(-)

diff --git a/testsuite/link01/nic-sysinit.h b/testsuite/link01/nic-sysinit.h
new file mode 100644
index 0000000..27ea316
--- /dev/null
+++ b/testsuite/link01/nic-sysinit.h
@@ -0,0 +1,89 @@
+/**
+ * @file
+ *
+ * @ingroup demo
+ *
+ * @brief TODO.
+ */
+
+/*
+ * COPYRIGHT (c) 2012. On-Line Applications Research Corporation (OAR).
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+
+#include <freebsd/machine/rtems-bsd-sysinit.h>
+
+#define CONFIGURE_NEED_NET
+#define CONFIGURE_NEED_PCIB
+#define CONFIGURE_NEED_NET_IF_FXP
+
+/*
+ *  We "read" that and generate references and nexus devices
+ */
+
+#if defined(CONFIGURE_NEED_NET)
+  SYSINIT_NEED_FREEBSD_CORE;
+#endif
+#if defined(CONFIGURE_NEED_USB)
+  SYSINIT_NEED_USB_CORE;
+#endif
+#if defined(CONFIGURE_NEED_PCIB)
+  SYSINIT_NEED_PCIB;
+#endif
+#if defined(CONFIGURE_NEED_NET_IF_FXP)
+  SYSINIT_NEED_NET_IF_FXP;
+#endif
+#if defined(CONFIGURE_NEED_NET_IF_DC)
+  SYSINIT_NEED_NET_IF_DC;
+#endif
+#if defined(CONFIGURE_NEED_NET_IF_BFE)
+  SYSINIT_NEED_NET_IF_BFE;
+#endif
+#if defined(CONFIGURE_NEED_NET_IF_RE)
+  SYSINIT_NEED_NET_IF_RE;
+#endif
+#if defined(CONFIGURE_NEED_NET_IF_EM)
+  SYSINIT_NEED_NET_IF_EM;
+#endif
+#if defined(CONFIGURE_NEED_NET_IF_IGB)
+  SYSINIT_NEED_NET_IF_IGB;
+#endif
+#if defined(CONFIGURE_NEED_NET_IF_BCE)
+  SYSINIT_NEED_NET_IF_BCE;
+#endif
+#if defined(CONFIGURE_NEED_NET_IF_LEM)
+  SYSINIT_NEED_NET_IF_LEM;
+#endif
+#if defined(CONFIGURE_NEED_NET_IF_BGE)
+  SYSINIT_NEED_NET_IF_BGE; // does not link 29 June 2012
+#endif
+
+const char *const _bsd_nexus_devices [] = {
+	#if defined(CONFIGURE_NEED_PCIB)
+		"legacy",
+	#endif
+	NULL
+};
+




More information about the vc mailing list