rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-sysinit.h
Sebastian Huber e599318e91 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.
2013-10-10 09:08:23 +02:00

97 lines
2.3 KiB
C

/**
* @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 <sys/cdefs.h>
#include <sys/queue.h>
#include <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_PCIB \
SYSINIT_DRIVER_REFERENCE(legacy, nexus); \
SYSINIT_DRIVER_REFERENCE(pcib, legacy); \
SYSINIT_DRIVER_REFERENCE(pci, pcib);
#define SYSINIT_NEED_NET_IF_BFE \
SYSINIT_DRIVER_REFERENCE(bfe, pci)
#define SYSINIT_NEED_NET_IF_RE \
SYSINIT_DRIVER_REFERENCE(re, pci)
#define SYSINIT_NEED_NET_IF_EM \
SYSINIT_DRIVER_REFERENCE(em, pci)
#define SYSINIT_NEED_NET_IF_IGB \
SYSINIT_DRIVER_REFERENCE(igb, pci)
#define SYSINIT_NEED_NET_IF_LEM \
SYSINIT_DRIVER_REFERENCE(lem, pci)
#define SYSINIT_NEED_NET_IF_BCE \
SYSINIT_DRIVER_REFERENCE(bce, pci)
#define SYSINIT_NEED_NET_IF_BGE \
SYSINIT_DRIVER_REFERENCE(bge, pci)
#define SYSINIT_NEED_NET_IF_FXP \
SYSINIT_DRIVER_REFERENCE(fxp, pci)
#define SYSINIT_NEED_NET_IF_DC \
SYSINIT_DRIVER_REFERENCE(dc, pci)
/* FIXME */
extern const char *const _bsd_nexus_devices [];
#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSINIT_H_ */