From 8b588ff7b72d52d72345b9e7ca00ebba5fd5169c Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Fri, 29 Jun 2012 13:10:11 -0500 Subject: Move config info into a .h file --- testsuite/link01/nic-sysinit.h | 89 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 testsuite/link01/nic-sysinit.h diff --git a/testsuite/link01/nic-sysinit.h b/testsuite/link01/nic-sysinit.h new file mode 100644 index 00000000..27ea316f --- /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 + +#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 +}; + -- cgit v1.2.3