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

55-freebsd-12
Last change on this file since 8ae22c4 was 8ae22c4, checked in by Christian Mauderer <christian.mauderer@…>, on Dec 19, 2018 at 9:53:54 PM

freebsd/if_cpsw: Port.

  • Property mode set to 100644
File size: 5.4 KB
Line 
1/*
2 * Copyright (c) 2013, 2018 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 <rtems/bsd/modules.h>
41#include <machine/rtems-bsd-nexus-bus.h>
42
43
44#if defined(LIBBSP_ARM_REALVIEW_PBX_A9_BSP_H)
45
46#include <bsp/irq.h>
47
48RTEMS_BSD_DRIVER_SMC0(0x4e000000,  RVPBXA9_IRQ_ETHERNET);
49
50#elif defined(LIBBSP_ARM_BEAGLE_BSP_H)
51
52#include <bsp/irq.h>
53
54RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
55SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
56SYSINIT_DRIVER_REFERENCE(ti_scm, simplebus);
57SYSINIT_DRIVER_REFERENCE(am335x_prcm, simplebus);
58SYSINIT_DRIVER_REFERENCE(usbss, simplebus);
59SYSINIT_DRIVER_REFERENCE(musbotg, usbss);
60SYSINIT_DRIVER_REFERENCE(sdhci_ti, simplebus);
61SYSINIT_DRIVER_REFERENCE(mmcsd, mmc);
62SYSINIT_DRIVER_REFERENCE(cpsw, cpswss);
63SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
64#ifdef RTEMS_BSD_MODULE_NET80211
65SYSINIT_DRIVER_REFERENCE(rtwn_usb, uhub);
66SYSINIT_MODULE_REFERENCE(wlan_ratectl_none);
67SYSINIT_MODULE_REFERENCE(wlan_sta);
68SYSINIT_MODULE_REFERENCE(wlan_amrr);
69SYSINIT_MODULE_REFERENCE(wlan_wep);
70SYSINIT_MODULE_REFERENCE(wlan_tkip);
71SYSINIT_MODULE_REFERENCE(wlan_ccmp);
72SYSINIT_REFERENCE(rtwn_rtl8188eufw);
73#endif /* RTEMS_BSD_MODULE_NET80211 */
74
75RTEMS_BSD_DRIVER_USB;
76RTEMS_BSD_DRIVER_USB_MASS;
77
78#elif defined(LIBBSP_ARM_LPC32XX_BSP_H)
79
80#include <bsp/irq.h>
81
82RTEMS_BSD_DRIVER_LPC32XX_PWR;
83RTEMS_BSD_DRIVER_LPC32XX_LPE;
84RTEMS_BSD_DRIVER_LPC32XX_TSC;
85RTEMS_BSD_DRIVER_ICSPHY;
86RTEMS_BSD_DRIVER_LPC32XX_OHCI;
87SYSINIT_DRIVER_REFERENCE(usbus, ohci);
88RTEMS_BSD_DRIVER_USB;
89RTEMS_BSD_DRIVER_USB_MASS;
90
91#elif defined(LIBBSP_M68K_GENMCF548X_BSP_H)
92
93RTEMS_BSD_DRIVER_FEC;
94
95#elif defined(LIBBSP_ARM_XILINX_ZYNQ_BSP_H)
96
97#include <bsp/irq.h>
98
99RTEMS_BSD_DRIVER_XILINX_ZYNQ_SLCR;
100RTEMS_BSD_DRIVER_XILINX_ZYNQ_CGEM0(ZYNQ_IRQ_ETHERNET_0);
101RTEMS_BSD_DRIVER_E1000PHY;
102
103#elif defined(LIBBSP_ARM_ATSAM_BSP_H)
104
105RTEMS_BSD_DRIVER_USB;
106RTEMS_BSD_DRIVER_USB_MASS;
107RTEMS_BSD_DRIVER_IF_ATSAM;
108SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
109
110#elif defined(LIBBSP_ARM_ALTERA_CYCLONE_V_BSP_H)
111
112RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
113SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
114
115RTEMS_BSD_DRIVER_DW_ETH;
116RTEMS_BSD_DRIVER_PHY_MIC;
117
118RTEMS_BSD_DRIVER_DW_OTG;
119RTEMS_BSD_DRIVER_USB;
120RTEMS_BSD_DRIVER_USB_MASS;
121
122RTEMS_BSD_DRIVER_DW_MMC;
123RTEMS_BSD_DRIVER_MMC;
124
125#elif defined(LIBBSP_ARM_IMX_BSP_H)
126
127RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
128SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
129
130SYSINIT_DRIVER_REFERENCE(ffec, simplebus);
131SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
132
133SYSINIT_DRIVER_REFERENCE(imx51_gpio, simplebus);
134SYSINIT_DRIVER_REFERENCE(sdhci_fsl, simplebus);
135RTEMS_BSD_DRIVER_MMC;
136
137#elif defined(LIBBSP_ARM_LPC24XX_BSP_H)
138
139RTEMS_BSD_DEFINE_NEXUS_DEVICE(ohci, 0, 0, NULL);
140SYSINIT_DRIVER_REFERENCE(usbus, ohci);
141RTEMS_BSD_DRIVER_USB;
142RTEMS_BSD_DRIVER_USB_MASS;
143
144#elif defined(LIBBSP_I386_PC386_BSP_H)
145
146RTEMS_BSD_DRIVER_PC_LEGACY;
147RTEMS_BSD_DRIVER_PCI_LEM;
148RTEMS_BSD_DRIVER_PCI_IGB;
149RTEMS_BSD_DRIVER_PCI_EM;
150RTEMS_BSD_DRIVER_PCI_RE;
151RTEMS_BSD_DRIVER_REPHY;
152
153#elif defined(LIBBSP_POWERPC_QORIQ_BSP_H)
154
155#if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
156
157#include <bsp/irq.h>
158
159#ifdef QORIQ_IS_HYPERVISOR_GUEST
160
161RTEMS_BSD_DEFINE_NEXUS_DEVICE(dpaa_ml, 0, 0, NULL);
162
163#else /* !QORIQ_IS_HYPERVISOR_GUEST */
164
165RTEMS_BSD_DEFINE_NEXUS_DEVICE(fman, 0, 0, NULL);
166RTEMS_BSD_DEFINE_NEXUS_DEVICE(fman, 1, 0, NULL);
167
168SYSINIT_DRIVER_REFERENCE(fman_mac, fman);
169SYSINIT_DRIVER_REFERENCE(fman_port, fman_mac);
170SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
171
172#endif /* QORIQ_IS_HYPERVISOR_GUEST */
173
174#else /* QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT) */
175
176#include <bsp/irq.h>
177
178RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
179SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
180SYSINIT_DRIVER_REFERENCE(tsec, simplebus);
181SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
182
183#endif /* QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT) */
184
185#elif defined(LIBBSP_POWERPC_TQM8XX_BSP_H)
186
187RTEMS_BSD_DEFINE_NEXUS_DEVICE(fec, 0, 0, NULL);
188SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
189
190#endif
191
192#endif
Note: See TracBrowser for help on using the repository browser.