|
0
|
1 #ifndef CYGONCE_PKGCONF_DEVS_H |
|
|
2 #define CYGONCE_PKGCONF_DEVS_H |
|
|
3 // ==================================================================== |
|
|
4 // |
|
|
5 // pkgconf/devs.h |
|
|
6 // |
|
|
7 // Device configuration file |
|
|
8 // |
|
|
9 // ==================================================================== |
|
|
10 //####COPYRIGHTBEGIN#### |
|
|
11 // |
|
|
12 // ------------------------------------------- |
|
|
13 // The contents of this file are subject to the Cygnus eCos Public License |
|
|
14 // Version 1.0 (the "License"); you may not use this file except in |
|
|
15 // compliance with the License. You may obtain a copy of the License at |
|
|
16 // http://sourceware.cygnus.com/ecos |
|
|
17 // |
|
|
18 // Software distributed under the License is distributed on an "AS IS" |
|
|
19 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
20 // License for the specific language governing rights and limitations under |
|
|
21 // the License. |
|
|
22 // |
|
|
23 // The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
24 // September 30, 1998. |
|
|
25 // |
|
|
26 // The Initial Developer of the Original Code is Cygnus. Portions created |
|
|
27 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. |
|
|
28 // ------------------------------------------- |
|
|
29 // |
|
|
30 //####COPYRIGHTEND#### |
|
|
31 // ==================================================================== |
|
|
32 //#####DESCRIPTIONBEGIN#### |
|
|
33 // |
|
|
34 // Author(s): proven |
|
|
35 // Contributors: proven |
|
|
36 // Date: 1998-04-24 |
|
|
37 // Purpose: To allow the user to edit device configuration options. |
|
|
38 // Description: |
|
|
39 // |
|
|
40 //####DESCRIPTIONEND#### |
|
|
41 // |
|
|
42 // ==================================================================== |
|
|
43 |
|
|
44 /* ---------------------------------------------------------------------------- |
|
|
45 {{CFG_DATA |
|
|
46 |
|
|
47 cdl_package CYGPKG_DEVICES { |
|
|
48 display "Device drivers" |
|
|
49 type bool |
|
|
50 requires CYGPKG_ERROR |
|
|
51 description " |
|
|
52 The eCos system is supplied with a number of different |
|
|
53 device drivers." |
|
|
54 doc ref/ecos-ref/ecos-device-drivers.html |
|
|
55 } |
|
|
56 |
|
|
57 }}CFG_DATA */ |
|
|
58 |
|
|
59 /* --------------------------------------------------------------------- |
|
|
60 * This file needs to know which HAL and device packages are in the |
|
|
61 * current configuration. |
|
|
62 */ |
|
|
63 |
|
|
64 #include <pkgconf/system.h> |
|
|
65 |
|
|
66 /* |
|
|
67 * This #include is spurious but avoids some problems in the current |
|
|
68 * sources. |
|
|
69 */ |
|
|
70 #ifdef CYGPKG_KERNEL |
|
|
71 #include <pkgconf/kernel.h> |
|
|
72 |
|
|
73 /* --------------------------------------------------------------------- |
|
|
74 * Define all the potential devices that the kernel can have. Then define |
|
|
75 * the configuration file that contains the specific configuration for |
|
|
76 * that device. Eventually all these configuration files will be generated |
|
|
77 * by a hardware configuration tool. |
|
|
78 */ |
|
|
79 |
|
|
80 #if defined(CYG_HAL_MN10300) && defined(CYGPKG_DEVICES_SERIAL_RS232_MN10300) |
|
|
81 |
|
|
82 # include <pkgconf/serial_mn10300.h> |
|
|
83 |
|
|
84 # ifdef CYGPKG_DEVICES_SERIAL_RS232_MN10300_1 |
|
|
85 # define CYG_DEVICE_SERIAL_RS232_MN10300_1 "pkgconf/serial_mn10300_1.h" |
|
|
86 # define CYG_DEVICE_SERIAL_RS232_MN10300_1_NAME CYG_DEVICE_NAME_1 |
|
|
87 # define CYG_DEVICE_SERIAL_RS232_MN10300_1_DECLARE |
|
|
88 # endif |
|
|
89 |
|
|
90 # ifdef CYGPKG_DEVICES_SERIAL_RS232_MN10300_2 |
|
|
91 # define CYG_DEVICE_SERIAL_RS232_MN10300_2 "pkgconf/serial_mn10300_2.h" |
|
|
92 # define CYG_DEVICE_SERIAL_RS232_MN10300_2_NAME CYG_DEVICE_NAME_2 |
|
|
93 // If we are the simulator then we want native output, |
|
|
94 // otherwise we want GDB output by default. These |
|
|
95 // all depend on the HAL --proven 19980906 |
|
|
96 # if defined(CYG_HAL_MN10300_SIM) || !defined(CYGPKG_DEVICES_GDB) |
|
|
97 # define CYG_DEVICE_SERIAL_RS232_MN10300_2_DECLARE |
|
|
98 # endif |
|
|
99 # endif |
|
|
100 |
|
|
101 /* |
|
|
102 * GDB is a pseudo device that wraps a real device. If this package |
|
|
103 * is required default it to the second serial port. |
|
|
104 */ |
|
|
105 #if defined(CYGPKG_DEVICES_GDB) \ |
|
|
106 && defined(CYGPKG_DEVICES_SERIAL_RS232_MN10300_2) |
|
|
107 #define CYG_DEVICE_GDB_1 "pkgconf/gdb_1.h" |
|
|
108 //#define CYG_DEVICE_GDB_1_NAME CYG_DEVICE_NAME_2 |
|
|
109 #ifndef CYG_HAL_MN10300_SIM |
|
|
110 #define CYG_DEVICE_GDB_1_NAME CYG_DEVICE_SERIAL_RS232_MN10300_2_NAME |
|
|
111 #endif |
|
|
112 |
|
|
113 // These last two fields I really don't like. |
|
|
114 // The should probably go in "pkgconf/gdb_1.h" but I'd rather they |
|
|
115 // went away completely --proven 19980630 |
|
|
116 // Note CYG_DEVICE_GDB_1_CLASS is different than CYG_CLASS_DEVICE_GDB_1 |
|
|
117 #define CYG_DEVICE_GDB_1_CLASS CYG_CLASS_DEVICE_SERIAL_RS232_MN10300_2 |
|
|
118 #define CYG_DEVICE_GDB_1_INCLUDE "cyg/devs/serial/rs232/mn10300/serial_mn10300_2.hxx" |
|
|
119 #endif |
|
|
120 |
|
|
121 #endif /* CYG_HAL_MN10300 */ |
|
|
122 |
|
|
123 #ifdef CYG_HAL_TX39 |
|
|
124 |
|
|
125 /* No serial drivers for simulator yet. */ |
|
|
126 #if defined(CYG_HAL_TX39_JMR3904) && defined(CYGPKG_DEVICES_SERIAL_RS232_TX39) |
|
|
127 #define CYG_DEVICE_SERIAL_RS232_TX39 "pkgconf/serial_tx39.h" |
|
|
128 #define CYG_DEVICE_SERIAL_RS232_TX39_NAME CYG_DEVICE_NAME_1 |
|
|
129 #define CYG_DEVICE_SERIAL_RS232_TX39_DECLARE |
|
|
130 #endif |
|
|
131 #endif |
|
|
132 |
|
|
133 /* --------------------------------------------------------------------- |
|
|
134 * Define the device that is to be used for outputing diag data. One is |
|
|
135 * required only if CYGDBG_INFRA_DIAG_USE_DEVICE is defined. Define the |
|
|
136 * name in terms of an above device name. |
|
|
137 */ |
|
|
138 #ifdef CYG_HAL_MN10300 |
|
|
139 // #ifdef on rom monitor |
|
|
140 // #define CYG_DEVICE_DIAG_CLASS CYG_CLASS_DEVICE_SERIAL_RS232_MN10300_1 |
|
|
141 // #define CYG_DEVICE_DIAG_NAME CYG_DEVICE_SERIAL_RS232_MN10300_1_NAME |
|
|
142 #define CYG_DEVICE_DIAG_CLASS CYG_CLASS_DEVICE_GDB_1 |
|
|
143 #define CYG_DEVICE_DIAG_NAME CYG_DEVICE_GDB_1_NAME |
|
|
144 |
|
|
145 #endif |
|
|
146 |
|
|
147 #ifdef CYG_HAL_TX39 |
|
|
148 #define CYG_DEVICE_DIAG_CLASS CYG_CLASS_DEVICE_SERIAL_RS232_TX39 |
|
|
149 #define CYG_DEVICE_DIAG_NAME CYG_DEVICE_SERIAL_RS232_TX39_NAME |
|
|
150 #endif |
|
|
151 |
|
|
152 /* --------------------------------------------------------------------- |
|
|
153 * Define the name of the device you wish to test. The test |
|
|
154 * infrastructure can only handle one. |
|
|
155 */ |
|
|
156 #define CYGVAR_DEVICE_TEST_NAME CYG_DEVICE_NAME_2 |
|
|
157 |
|
|
158 /* --------------------------------------------------------------------- |
|
|
159 * Define the names of the devices. These must be defined after the |
|
|
160 * device to device name mappings. |
|
|
161 */ |
|
|
162 #define CYG_DEVICE_NAME_1 cyg_serial1 |
|
|
163 #define CYG_DEVICE_NAME_2 cyg_serial2 |
|
|
164 |
|
|
165 #endif // ifdef CYGPKG_KERNEL |
|
|
166 |
|
|
167 /* --------------------------------------------------------------------- |
|
|
168 * Define for a device table. Necessary for the C library to access devices. |
|
|
169 */ |
|
|
170 #define CYG_DEVICE_TABLE |
|
|
171 |
|
|
172 #endif /* CYGONCE_PKGCONF_DEVS_H */ |
|
|
173 /* EOF devs.h */ |