summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/machine/rtems-bsd-sysinit.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-03-07 16:14:13 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-03-07 16:14:13 -0600
commitcbffdb7fdc50cbf0175fd5cb6ae32f6f115d6035 (patch)
tree2c5aa2ff0a7e9a24df6e098860675a8d3ff9e24e /rtemsbsd/include/machine/rtems-bsd-sysinit.h
parentAdd rmlock - almost links (diff)
downloadrtems-libbsd-cbffdb7fdc50cbf0175fd5cb6ae32f6f115d6035.tar.bz2
Separate RTEMS Specific Files from Those Direct from FreeBSD
Diffstat (limited to 'rtemsbsd/include/machine/rtems-bsd-sysinit.h')
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-sysinit.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-sysinit.h b/rtemsbsd/include/machine/rtems-bsd-sysinit.h
new file mode 100644
index 00000000..98de2b80
--- /dev/null
+++ b/rtemsbsd/include/machine/rtems-bsd-sysinit.h
@@ -0,0 +1,67 @@
+/**
+ * @file
+ *
+ * @ingroup rtems_bsd_machine
+ *
+ * @brief TODO.
+ */
+
+/*
+ * Copyright (c) 2009, 2010 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Obere Lagerstr. 30
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#ifndef _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSINIT_H_
+#define _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSINIT_H_
+
+#include <rtems/freebsd/sys/cdefs.h>
+#include <rtems/freebsd/sys/queue.h>
+#include <rtems/freebsd/sys/kernel.h>
+
+#define SYSINIT_NEED_FREEBSD_CORE \
+ SYSINIT_REFERENCE(configure1); \
+ SYSINIT_REFERENCE(module); \
+ SYSINIT_REFERENCE(kobj); \
+ SYSINIT_REFERENCE(linker_kernel); \
+ SYSINIT_MODULE_REFERENCE(rootbus); \
+ SYSINIT_DRIVER_REFERENCE(nexus, root)
+
+#define SYSINIT_NEED_USB_CORE \
+ SYSINIT_REFERENCE(usb_quirk_init); \
+ SYSINIT_DRIVER_REFERENCE(uhub, usbus)
+
+#define SYSINIT_NEED_USB_OHCI \
+ SYSINIT_DRIVER_REFERENCE(ohci, nexus); \
+ SYSINIT_DRIVER_REFERENCE(usbus, ohci)
+
+#define SYSINIT_NEED_USB_EHCI \
+ SYSINIT_DRIVER_REFERENCE(ehci, nexus); \
+ SYSINIT_DRIVER_REFERENCE(usbus, ehci)
+
+#define SYSINIT_NEED_USB_MASS_STORAGE \
+ SYSINIT_DRIVER_REFERENCE(umass, uhub)
+
+#define SYSINIT_NEED_USB_MOUSE \
+ SYSINIT_DRIVER_REFERENCE(umass, uhub)
+
+#define SYSINIT_NEED_SDHC \
+ SYSINIT_DRIVER_REFERENCE(sdhci, nexus); \
+ SYSINIT_DRIVER_REFERENCE(mmc, sdhci); \
+ SYSINIT_DRIVER_REFERENCE(mmcsd, mmc)
+
+#define SYSINIT_NEED_NET_MII \
+ SYSINIT_DRIVER_REFERENCE(icsphy, miibus);
+
+/* FIXME */
+extern const char *const _bsd_nexus_devices [];
+
+#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSINIT_H_ */