source: rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-sysinit.h @ e599318

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since e599318 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: 2.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup rtems_bsd_machine
5 *
6 * @brief TODO.
7 */
8
9/*
10 * Copyright (c) 2009, 2010 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#ifndef _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSINIT_H_
24#define _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSINIT_H_
25
26#include <sys/cdefs.h>
27#include <sys/queue.h>
28#include <sys/kernel.h>
29
30#define SYSINIT_NEED_FREEBSD_CORE \
31        SYSINIT_REFERENCE(configure1); \
32        SYSINIT_REFERENCE(module); \
33        SYSINIT_REFERENCE(kobj); \
34        SYSINIT_REFERENCE(linker_kernel); \
35        SYSINIT_MODULE_REFERENCE(rootbus); \
36        SYSINIT_DRIVER_REFERENCE(nexus, root)
37
38#define SYSINIT_NEED_USB_CORE \
39        SYSINIT_REFERENCE(usb_quirk_init); \
40        SYSINIT_DRIVER_REFERENCE(uhub, usbus)
41
42#define SYSINIT_NEED_USB_OHCI \
43        SYSINIT_DRIVER_REFERENCE(ohci, nexus); \
44        SYSINIT_DRIVER_REFERENCE(usbus, ohci)
45
46#define SYSINIT_NEED_USB_EHCI \
47        SYSINIT_DRIVER_REFERENCE(ehci, nexus); \
48        SYSINIT_DRIVER_REFERENCE(usbus, ehci)
49
50#define SYSINIT_NEED_USB_MASS_STORAGE \
51        SYSINIT_DRIVER_REFERENCE(umass, uhub)
52
53#define SYSINIT_NEED_USB_MOUSE \
54        SYSINIT_DRIVER_REFERENCE(umass, uhub)
55
56#define SYSINIT_NEED_SDHC \
57        SYSINIT_DRIVER_REFERENCE(sdhci, nexus); \
58        SYSINIT_DRIVER_REFERENCE(mmc, sdhci); \
59        SYSINIT_DRIVER_REFERENCE(mmcsd, mmc)
60
61#define SYSINIT_NEED_PCIB \
62        SYSINIT_DRIVER_REFERENCE(legacy, nexus); \
63        SYSINIT_DRIVER_REFERENCE(pcib, legacy);  \
64        SYSINIT_DRIVER_REFERENCE(pci, pcib);
65
66#define SYSINIT_NEED_NET_IF_BFE \
67        SYSINIT_DRIVER_REFERENCE(bfe, pci)
68
69#define SYSINIT_NEED_NET_IF_RE \
70        SYSINIT_DRIVER_REFERENCE(re, pci)
71
72#define SYSINIT_NEED_NET_IF_EM \
73        SYSINIT_DRIVER_REFERENCE(em, pci)
74
75#define SYSINIT_NEED_NET_IF_IGB \
76        SYSINIT_DRIVER_REFERENCE(igb, pci)
77
78#define SYSINIT_NEED_NET_IF_LEM \
79        SYSINIT_DRIVER_REFERENCE(lem, pci)
80
81#define SYSINIT_NEED_NET_IF_BCE \
82        SYSINIT_DRIVER_REFERENCE(bce, pci)
83
84#define SYSINIT_NEED_NET_IF_BGE \
85        SYSINIT_DRIVER_REFERENCE(bge, pci)
86
87#define SYSINIT_NEED_NET_IF_FXP \
88        SYSINIT_DRIVER_REFERENCE(fxp, pci)
89
90#define SYSINIT_NEED_NET_IF_DC \
91        SYSINIT_DRIVER_REFERENCE(dc, pci)
92
93/* FIXME */
94extern const char *const _bsd_nexus_devices [];
95
96#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSINIT_H_ */
Note: See TracBrowser for help on using the repository browser.