source: rtems-libbsd/rtemsbsd/src/rtems-bsd-nexus.c @ be8032d

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since be8032d was 6ad03bf, checked in by Joel Sherrill <joel.sherrill@…>, on 03/08/12 at 16:31:56

Remove rtems/ from includes of RTEMS specific files

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup rtems_bsd_rtems
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#include <freebsd/machine/rtems-bsd-config.h>
24#include <freebsd/machine/rtems-bsd-sysinit.h>
25
26#include <freebsd/sys/param.h>
27#include <freebsd/sys/types.h>
28#include <freebsd/sys/systm.h>
29#include <freebsd/sys/bus.h>
30#include <freebsd/sys/kernel.h>
31#include <freebsd/sys/module.h>
32
33static int
34nexus_probe(device_t dev)
35{
36        size_t unit = 0;
37
38        /* FIXME */
39        for (unit = 0; _bsd_nexus_devices [unit] != NULL; ++unit) {
40                device_add_child(dev, _bsd_nexus_devices [unit], unit);
41        }
42
43        device_set_desc(dev, "RTEMS Nexus device");
44
45        return (0);
46}
47
48static device_method_t nexus_methods [] = {
49        /* Device interface */
50        DEVMETHOD(device_probe, nexus_probe),
51        DEVMETHOD(device_attach, bus_generic_attach),
52        DEVMETHOD(device_detach, bus_generic_detach),
53        DEVMETHOD(device_shutdown, bus_generic_shutdown),
54        DEVMETHOD(device_suspend, bus_generic_suspend),
55        DEVMETHOD(device_resume, bus_generic_resume),
56
57        /* Bus interface */
58        DEVMETHOD(bus_print_child, bus_generic_print_child),
59
60        { 0, 0 }
61};
62
63static driver_t nexus_driver = {
64        .name = "nexus",
65        .methods = nexus_methods,
66        .size = 0
67};
68
69static devclass_t nexus_devclass;
70
71DRIVER_MODULE(nexus, root, nexus_driver, nexus_devclass, 0, 0);
Note: See TracBrowser for help on using the repository browser.