RTEMS  5.1
drvmgr_confdefs.h
1 /* Driver Manager Configuration file.
2  *
3  * COPYRIGHT (c) 2009 Cobham Gaisler AB.
4  *
5  * The license and distribution terms for this file may be
6  * found in the file LICENSE in this distribution or at
7  * http://www.rtems.org/license/LICENSE.
8  */
9 
10 /*
11  * The configuration consist of an array with function pointers that
12  * register one or more drivers that will be used by the Driver Manger.
13  *
14  * The Functions are called in the order they are declared.
15  *
16  */
17 
18 #ifndef _DRIVER_MANAGER_CONFDEFS_H_
19 #define _DRIVER_MANAGER_CONFDEFS_H_
20 
21 #include "drvmgr.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 extern drvmgr_drv_reg_func drvmgr_drivers[];
28 
29 #ifdef CONFIGURE_INIT
30 
31 /*** AMBA Plug & Play Drivers ***/
32 extern void gptimer_register_drv(void);
33 extern void apbuart_cons_register_drv(void);
34 extern void greth_register_drv(void);
35 extern void grspw_register_drv(void);
36 extern void grspw2_register_drv(void);
37 extern void grcan_register_drv(void);
38 extern void occan_register_drv(void);
39 extern void gr1553_register(void);
40 extern void gr1553bc_register(void);
41 extern void gr1553bm_register(void);
42 extern void gr1553rt_register(void);
43 extern void b1553brm_register_drv(void);
44 extern void b1553rt_register_drv(void);
45 extern void grtm_register_drv(void);
46 extern void grtc_register_drv(void);
47 extern void pcif_register_drv(void);
48 extern void grpci_register_drv(void);
49 extern void mctrl_register_drv(void);
50 extern void l2cache_register_drv(void);
51 extern void griommu_register_drv(void);
52 extern void grpci2_register_drv(void);
53 extern void spictrl_register_drv(void);
54 extern void i2cmst_register_drv(void);
55 extern void grgpio_register_drv(void);
56 extern void grpwm_register_drv(void);
57 extern void gradcdac_register_drv(void);
58 extern void spwcuc_register(void);
59 extern void grctm_register(void);
60 extern void router_register_drv(void);
61 extern void ahbstat_register_drv(void);
62 extern void memscrub_register_drv(void);
63 extern void l4stat_register_drv(void);
64 extern void spwtdp_register_drv(void);
65 
66 
67 /*** LEON2 AMBA Hard coded bus Drivers ***/
68 extern void at697pci_register_drv(void);
69 extern void ambapp_leon2_register(void);
70 
71 
72 /*** PCI Bus Drivers (PCI Target drivers) ***/
73 extern void gr_rasta_adcdac_register_drv(void);
74 extern void gr_rasta_io_register_drv(void);
75 extern void gr_rasta_tmtc_register_drv(void);
76 extern void gr701_register_drv(void);
77 extern void gr_tmtc_1553_register_drv(void);
78 extern void gr_rasta_spw_router_register_drv(void);
79 extern void gr_cpci_leon4_n2x_register_drv(void);
80 extern void gr_cpci_gr740_register_drv(void);
81 
82 
83 /* CONFIGURE DRIVER MANAGER */
84 drvmgr_drv_reg_func drvmgr_drivers[] = {
85  /*** AMBA Plug & Play Drivers ***/
86 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GPTIMER
87  gptimer_register_drv,
88 #endif
89 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_APBUART
90  apbuart_cons_register_drv,
91 #endif
92 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRETH
93  greth_register_drv,
94 #endif
95 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRSPW
96  grspw_register_drv,
97 #endif
98 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRSPW2
99  grspw2_register_drv,
100 #endif
101 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRCAN
102  grcan_register_drv,
103 #endif
104 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_OCCAN
105  occan_register_drv,
106 #endif
107 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GR1553B
108  gr1553_register,
109 #endif
110 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GR1553BC
111  gr1553bc_register,
112 #endif
113 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GR1553BM
114  gr1553bm_register,
115 #endif
116 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GR1553RT
117  gr1553rt_register,
118 #endif
119 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_B1553BRM
120  b1553brm_register_drv,
121 #endif
122 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_B1553RT
123  b1553rt_register_drv,
124 #endif
125 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRTM
126  grtm_register_drv,
127 #endif
128 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRTC
129  grtc_register_drv,
130 #endif
131 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_PCIF
132  pcif_register_drv,
133 #endif
134 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRPCI
135  grpci_register_drv,
136 #endif
137 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRPCI2
138  grpci2_register_drv,
139 #endif
140 #ifdef CONFIGURE_DRIVER_AMBAPP_MCTRL
141  mctrl_register_drv,
142 #endif
143 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_L2CACHE
144  l2cache_register_drv,
145 #endif
146 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRIOMMU
147  griommu_register_drv,
148 #endif
149 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_SPICTRL
150  spictrl_register_drv,
151 #endif
152 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_I2CMST
153  i2cmst_register_drv,
154 #endif
155 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRGPIO
156  grgpio_register_drv,
157 #endif
158 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRPWM
159  grpwm_register_drv,
160 #endif
161 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRADCDAC
162  gradcdac_register_drv,
163 #endif
164 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_SPWCUC
165  spwcuc_register,
166 #endif
167 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRCTM
168  grctm_register,
169 #endif
170 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_SPW_ROUTER
171  router_register_drv,
172 #endif
173 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_AHBSTAT
174  ahbstat_register_drv,
175 #endif
176 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_MEMSCRUB
177  memscrub_register_drv,
178 #endif
179 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_L4STAT
180  l4stat_register_drv,
181 #endif
182 #ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_SPWTDP
183  spwtdp_register_drv,
184 #endif
185 
186  /*** LEON2 AMBA Drivers ***/
187 #ifdef CONFIGURE_DRIVER_LEON2_AT697PCI
188  at697pci_register_drv,
189 #endif
190 #ifdef CONFIGURE_DRIVER_LEON2_AMBAPP
191  ambapp_leon2_register,
192 #endif
193 
194  /*** PCI Target Drivers ***/
195 #ifdef CONFIGURE_DRIVER_PCI_GR_RASTA_ADCDAC
196  gr_rasta_adcdac_register_drv,
197 #endif
198 #ifdef CONFIGURE_DRIVER_PCI_GR_RASTA_IO
199  gr_rasta_io_register_drv,
200 #endif
201 #ifdef CONFIGURE_DRIVER_PCI_GR_RASTA_TMTC
202  gr_rasta_tmtc_register_drv,
203 #endif
204 #ifdef CONFIGURE_DRIVER_PCI_GR_701
205  gr701_register_drv,
206 #endif
207 #ifdef CONFIGURE_DRIVER_PCI_GR_TMTC_1553
208  gr_tmtc_1553_register_drv,
209 #endif
210 #ifdef CONFIGURE_DRIVER_PCI_GR_RASTA_SPW_ROUTER
211  gr_rasta_spw_router_register_drv,
212 #endif
213 #ifdef CONFIGURE_DRIVER_PCI_GR_LEON4_N2X
214  gr_cpci_leon4_n2x_register_drv,
215 #endif
216 #ifdef CONFIGURE_DRIVER_PCI_GR_CPCI_GR740
217  gr_cpci_gr740_register_drv,
218 #endif
219 
220 
221 /* Macros for adding custom drivers without needing to recompile
222  * kernel.
223  */
224 #ifdef CONFIGURE_DRIVER_CUSTOM1
225  DRIVER_CUSTOM1_REG,
226 #endif
227 #ifdef CONFIGURE_DRIVER_CUSTOM2
228  DRIVER_CUSTOM2_REG,
229 #endif
230 #ifdef CONFIGURE_DRIVER_CUSTOM3
231  DRIVER_CUSTOM3_REG,
232 #endif
233 #ifdef CONFIGURE_DRIVER_CUSTOM4
234  DRIVER_CUSTOM4_REG,
235 #endif
236 #ifdef CONFIGURE_DRIVER_CUSTOM5
237  DRIVER_CUSTOM5_REG,
238 #endif
239 #ifdef CONFIGURE_DRIVER_CUSTOM6
240  DRIVER_CUSTOM6_REG,
241 #endif
242 #ifdef CONFIGURE_DRIVER_CUSTOM7
243  DRIVER_CUSTOM7_REG,
244 #endif
245 #ifdef CONFIGURE_DRIVER_CUSTOM8
246  DRIVER_CUSTOM8_REG,
247 #endif
248 #ifdef CONFIGURE_DRIVER_CUSTOM9
249  DRIVER_CUSTOM9_REG,
250 #endif
251 
252  /* End array with NULL */
253  NULL
254 };
255 
256 #endif /* CONFIGURE_INIT */
257 
258 #ifdef __cplusplus
259 }
260 #endif
261 
262 #endif /* _DRIVER_MANAGER_CONFDEFS_H_ */
#define NULL
Requests a GPIO pin group configuration.
Definition: bestcomm_api.h:77