source: rtems-libbsd/rtemsbsd/include/bsp/nexus-devices.h @ 8f2267b

5-freebsd-12
Last change on this file since 8f2267b was 8f2267b, checked in by Sichen Zhao <1473996754@…>, on Oct 12, 2017 at 12:16:07 PM

Port wpa supplicant to RTEMS.

Add wpa_supplicant lib support and shell command support in RTEMS.

  • Property mode set to 100644
File size: 4.9 KB
Line 
1/*
2 * Copyright (c) 2013-2015 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * Copyright (c) 2016 Chris Johns <chrisj@rtems.org> All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 *    notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright
18 *    notice, this list of conditions and the following disclaimer in the
19 *    documentation and/or other materials provided with the distribution.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#if !defined(BSP_NEXUS_DEVICES_h)
35#define BSP_NEXUS_DEVICES_h
36
37#include <bsp.h>
38
39#include <rtems/bsd/bsd.h>
40#include <machine/rtems-bsd-nexus-bus.h>
41
42
43#if defined(LIBBSP_ARM_REALVIEW_PBX_A9_BSP_H)
44
45#include <bsp/irq.h>
46
47RTEMS_BSD_DRIVER_SMC0(0x4e000000,  RVPBXA9_IRQ_ETHERNET);
48
49#elif defined(LIBBSP_ARM_BEAGLE_BSP_H)
50
51#include <bsp/irq.h>
52
53RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
54SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
55SYSINIT_DRIVER_REFERENCE(ti_scm, simplebus);
56SYSINIT_DRIVER_REFERENCE(am335x_prcm, simplebus);
57SYSINIT_DRIVER_REFERENCE(usbss, simplebus);
58SYSINIT_DRIVER_REFERENCE(musbotg, usbss);
59SYSINIT_DRIVER_REFERENCE(sdhci_ti, simplebus);
60SYSINIT_DRIVER_REFERENCE(mmcsd, mmc);
61SYSINIT_DRIVER_REFERENCE(rtwn_usb, uhub);
62SYSINIT_MODULE_REFERENCE(wlan_ratectl_none);
63SYSINIT_MODULE_REFERENCE(wlan_sta);
64SYSINIT_MODULE_REFERENCE(wlan_amrr);
65SYSINIT_MODULE_REFERENCE(wlan_wep);
66SYSINIT_MODULE_REFERENCE(wlan_tkip);
67SYSINIT_MODULE_REFERENCE(wlan_ccmp);
68SYSINIT_REFERENCE(rtwn_rtl8188eufw);
69
70RTEMS_BSD_DRIVER_USB;
71RTEMS_BSD_DRIVER_USB_MASS;
72
73#elif defined(LIBBSP_ARM_LPC32XX_BSP_H)
74
75#include <bsp/irq.h>
76
77RTEMS_BSD_DRIVER_LPC32XX_PWR;
78RTEMS_BSD_DRIVER_LPC32XX_LPE;
79RTEMS_BSD_DRIVER_LPC32XX_TSC;
80RTEMS_BSD_DRIVER_ICSPHY;
81RTEMS_BSD_DRIVER_LPC32XX_OHCI;
82SYSINIT_DRIVER_REFERENCE(usbus, ohci);
83RTEMS_BSD_DRIVER_USB;
84RTEMS_BSD_DRIVER_USB_MASS;
85
86#elif defined(LIBBSP_M68K_GENMCF548X_BSP_H)
87
88RTEMS_BSD_DRIVER_FEC;
89
90#elif defined(LIBBSP_ARM_XILINX_ZYNQ_BSP_H)
91
92#include <bsp/irq.h>
93
94RTEMS_BSD_DRIVER_XILINX_ZYNQ_SLCR;
95RTEMS_BSD_DRIVER_XILINX_ZYNQ_CGEM0(ZYNQ_IRQ_ETHERNET_0);
96RTEMS_BSD_DRIVER_E1000PHY;
97
98#elif defined(LIBBSP_ARM_ATSAM_BSP_H)
99
100RTEMS_BSD_DRIVER_USB;
101RTEMS_BSD_DRIVER_USB_MASS;
102RTEMS_BSD_DRIVER_IF_ATSAM;
103SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
104
105#elif defined(LIBBSP_ARM_ALTERA_CYCLONE_V_BSP_H)
106
107#include <bsp/socal/hps.h>
108#include <bsp/irq.h>
109
110RTEMS_BSD_DRIVER_DWC0((unsigned long) ALT_EMAC1_ADDR,
111                      ALT_INT_INTERRUPT_EMAC1_IRQ);
112RTEMS_BSD_DRIVER_MIPHY;
113RTEMS_BSD_DRIVER_DWCOTG0((unsigned long) ALT_USB1_ADDR,
114                         ALT_INT_INTERRUPT_USB1_IRQ);
115RTEMS_BSD_DRIVER_DWC_MMC;
116RTEMS_BSD_DRIVER_MMC;
117RTEMS_BSD_DRIVER_USB;
118RTEMS_BSD_DRIVER_USB_MASS;
119
120#elif defined(LIBBSP_ARM_IMX_BSP_H)
121
122RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
123SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
124SYSINIT_DRIVER_REFERENCE(ffec, simplebus);
125SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
126
127#elif defined(LIBBSP_ARM_LPC24XX_BSP_H)
128
129RTEMS_BSD_DEFINE_NEXUS_DEVICE(ohci, 0, 0, NULL);
130SYSINIT_DRIVER_REFERENCE(usbus, ohci);
131RTEMS_BSD_DRIVER_USB;
132RTEMS_BSD_DRIVER_USB_MASS;
133
134#elif defined(LIBBSP_I386_PC386_BSP_H)
135
136RTEMS_BSD_DRIVER_PC_LEGACY;
137RTEMS_BSD_DRIVER_PCI_LEM;
138RTEMS_BSD_DRIVER_PCI_IGB;
139RTEMS_BSD_DRIVER_PCI_EM;
140RTEMS_BSD_DRIVER_PCI_RE;
141RTEMS_BSD_DRIVER_REPHY;
142
143#elif defined(LIBBSP_POWERPC_QORIQ_BSP_H)
144
145#if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
146
147#include <bsp/irq.h>
148
149RTEMS_BSD_DEFINE_NEXUS_DEVICE(fman, 0, 0, NULL);
150RTEMS_BSD_DEFINE_NEXUS_DEVICE(fman, 1, 0, NULL);
151
152SYSINIT_DRIVER_REFERENCE(fman_mac, fman);
153SYSINIT_DRIVER_REFERENCE(fman_port, fman_mac);
154SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
155
156#else /* QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT) */
157
158#include <bsp/irq.h>
159
160RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
161SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
162SYSINIT_DRIVER_REFERENCE(tsec, simplebus);
163SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
164
165#endif /* QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT) */
166
167#endif
168
169#endif
Note: See TracBrowser for help on using the repository browser.