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

4.115-freebsd-12freebsd-9.3
Last change on this file since b87143f was b87143f, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 15, 2013 at 2:21:16 PM

usb01: Remove SDHC references

  • Property mode set to 100644
File size: 1.0 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
35SYSINIT_NEED_USB_CORE;
36#ifdef NEED_USB_OHCI
37        SYSINIT_NEED_USB_OHCI;
38#endif
39#ifdef NEED_USB_EHCI
40        SYSINIT_NEED_USB_EHCI;
41#endif
42SYSINIT_NEED_USB_MASS_STORAGE;
43
44const char *const _bsd_nexus_devices [] = {
45        #ifdef NEED_USB_OHCI
46                "ohci",
47        #endif
48        #ifdef NEED_USB_EHCI
49                "ehci",
50        #endif
51        NULL
52};
53
54#endif /* USB_SYSINIT_INIT */
Note: See TracBrowser for help on using the repository browser.