4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change
on this file since 58c4fda8 was
e599318,
checked in by Sebastian Huber <sebastian.huber@…>, on 10/09/13 at 20:52:54
|
Update files to match FreeBSD layout
Add compatibility with Newlib header files. Some FreeBSD header files
are mapped by the translation script:
o rtems/bsd/sys/_types.h
o rtems/bsd/sys/errno.h
o rtems/bsd/sys/lock.h
o rtems/bsd/sys/param.h
o rtems/bsd/sys/resource.h
o rtems/bsd/sys/time.h
o rtems/bsd/sys/timespec.h
o rtems/bsd/sys/types.h
o rtems/bsd/sys/unistd.h
It is now possible to include <sys/socket.h> directly for example.
Generate one Makefile which builds everything including tests.
|
-
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 | |
---|
39 | SYSINIT_NEED_FREEBSD_CORE; |
---|
40 | SYSINIT_NEED_USB_CORE; |
---|
41 | #ifdef NEED_USB_OHCI |
---|
42 | SYSINIT_NEED_USB_OHCI; |
---|
43 | #endif |
---|
44 | #ifdef NEED_USB_EHCI |
---|
45 | SYSINIT_NEED_USB_EHCI; |
---|
46 | #endif |
---|
47 | SYSINIT_NEED_USB_MASS_STORAGE; |
---|
48 | #ifdef NEED_SDHC |
---|
49 | SYSINIT_NEED_SDHC; |
---|
50 | #endif |
---|
51 | |
---|
52 | const char *const _bsd_nexus_devices [] = { |
---|
53 | #ifdef NEED_USB_OHCI |
---|
54 | "ohci", |
---|
55 | #endif |
---|
56 | #ifdef NEED_USB_EHCI |
---|
57 | "ehci", |
---|
58 | #endif |
---|
59 | #ifdef NEED_SDHC |
---|
60 | "sdhci", |
---|
61 | #endif |
---|
62 | NULL |
---|
63 | }; |
---|
64 | |
---|
65 | #endif /* USB_SYSINIT_INIT */ |
---|
Note: See
TracBrowser
for help on using the repository browser.