source: rtems-libbsd/testsuite/usb01/usb-sysinit.h @ f3b2913

4.115-freebsd-12freebsd-9.3
Last change on this file since f3b2913 was f3b2913, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 9, 2013 at 12:29:38 PM

Move core system initialization references

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup demo
5 *
6 * @brief USB system initialization.
7 */
8
9/*
10 * Copyright (c) 2009-2012 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 */
22
23#include <machine/rtems-bsd-sysinit.h>
24
25#include <bsp.h>
26
27#ifdef USB_SYSINIT_INIT
28
29#if defined(LIBBSP_ARM_LPC24XX_BSP_H) || defined(LIBBSP_ARM_LPC32XX_BSP_H)
30        #define NEED_USB_OHCI
31#elif defined(__GEN83xx_BSP_h) || defined(LIBBSP_POWERPC_QORIQ_BSP_H)
32        #define NEED_USB_EHCI
33#endif
34
35#if defined(LIBBSP_POWERPC_QORIQ_BSP_H)
36        #define NEED_SDHC
37#endif
38
39SYSINIT_NEED_USB_CORE;
40#ifdef NEED_USB_OHCI
41        SYSINIT_NEED_USB_OHCI;
42#endif
43#ifdef NEED_USB_EHCI
44        SYSINIT_NEED_USB_EHCI;
45#endif
46SYSINIT_NEED_USB_MASS_STORAGE;
47#ifdef NEED_SDHC
48        SYSINIT_NEED_SDHC;
49#endif
50
51const char *const _bsd_nexus_devices [] = {
52        #ifdef NEED_USB_OHCI
53                "ohci",
54        #endif
55        #ifdef NEED_USB_EHCI
56                "ehci",
57        #endif
58        #ifdef NEED_SDHC
59                "sdhci",
60        #endif
61        NULL
62};
63
64#endif /* USB_SYSINIT_INIT */
Note: See TracBrowser for help on using the repository browser.