Changeset e7fade3 in rtems
- Timestamp:
- 11/28/11 08:52:03 (12 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 1c5a7e5
- Parents:
- 02550220
- git-author:
- Daniel Hellstrom <daniel@…> (11/28/11 08:52:03)
- git-committer:
- Daniel Hellstrom <daniel@…> (04/16/15 23:10:16)
- Files:
-
- 28 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/shared/include/bootcard.h
r02550220 re7fade3 57 57 58 58 void bsp_predriver_hook(void); 59 60 void bsp_driver_level_hook( int level ); 59 61 60 62 void bsp_postdriver_hook(void); -
c/src/make/configure.ac
r02550220 re7fade3 21 21 RTEMS_ENABLE_NETWORKING 22 22 RTEMS_ENABLE_CXX 23 RTEMS_ENABLE_DRVMGR 23 24 24 25 RTEMS_ENV_RTEMSBSP -
configure.ac
r02550220 re7fade3 29 29 RTEMS_ENABLE_MULTILIB 30 30 RTEMS_ENABLE_PARAVIRT 31 RTEMS_ENABLE_DRVMGR 31 32 32 33 AC_ARG_ENABLE([docs], -
cpukit/Makefile.am
r02550220 re7fade3 9 9 SUBDIRS += libcrypt 10 10 SUBDIRS += libcsupport libblock libfs 11 SUBDIRS += libdrvmgr 11 12 SUBDIRS += libnetworking librpc 12 13 SUBDIRS += libpci … … 239 240 include_rtems_HEADERS += libmisc/fsmount/fsmount.h 240 241 242 ## Driver manager 243 include_drvmgrdir = $(includedir)/drvmgr 244 include_drvmgr_HEADERS = libdrvmgr/drvmgr.h 245 include_drvmgr_HEADERS += libdrvmgr/drvmgr_confdefs.h 246 include_drvmgr_HEADERS += libdrvmgr/drvmgr_list.h 247 241 248 ## HACK: doxygen filter. 242 249 EXTRA_DIST = doxy-filter -
cpukit/configure.ac
r02550220 re7fade3 18 18 RTEMS_ENABLE_PARAVIRT 19 19 RTEMS_ENABLE_PROFILING 20 RTEMS_ENABLE_DRVMGR 20 21 21 22 RTEMS_ENV_RTEMSCPU … … 229 230 [1], 230 231 [if networking is enabled]) 232 233 RTEMS_CPUOPT([RTEMS_DRVMGR_STARTUP], 234 [test x"$enable_drvmgr" = xyes], 235 [1], 236 [if driver manager api is supported]) 231 237 232 238 RTEMS_CPUOPT([RTEMS_VERSION], … … 454 460 posix/Makefile 455 461 libblock/Makefile 462 libdrvmgr/Makefile 456 463 libfs/Makefile 457 464 libfs/src/nfsclient/Makefile -
cpukit/preinstall.am
r02550220 re7fade3 528 528 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fsmount.h 529 529 530 $(PROJECT_INCLUDE)/drvmgr/$(dirstamp): 531 @$(MKDIR_P) $(PROJECT_INCLUDE)/drvmgr 532 @: > $(PROJECT_INCLUDE)/drvmgr/$(dirstamp) 533 PREINSTALL_DIRS += $(PROJECT_INCLUDE)/drvmgr/$(dirstamp) 534 535 $(PROJECT_INCLUDE)/drvmgr/drvmgr.h: libdrvmgr/drvmgr.h $(PROJECT_INCLUDE)/drvmgr/$(dirstamp) 536 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/drvmgr/drvmgr.h 537 PREINSTALL_FILES += $(PROJECT_INCLUDE)/drvmgr/drvmgr.h 538 539 $(PROJECT_INCLUDE)/drvmgr/drvmgr_confdefs.h: libdrvmgr/drvmgr_confdefs.h $(PROJECT_INCLUDE)/drvmgr/$(dirstamp) 540 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/drvmgr/drvmgr_confdefs.h 541 PREINSTALL_FILES += $(PROJECT_INCLUDE)/drvmgr/drvmgr_confdefs.h 542 543 $(PROJECT_INCLUDE)/drvmgr/drvmgr_list.h: libdrvmgr/drvmgr_list.h $(PROJECT_INCLUDE)/drvmgr/$(dirstamp) 544 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/drvmgr/drvmgr_list.h 545 PREINSTALL_FILES += $(PROJECT_INCLUDE)/drvmgr/drvmgr_list.h 546 -
cpukit/sapi/include/confdefs.h
r02550220 re7fade3 161 161 */ 162 162 #define CONFIGURE_LIBIO_POSIX_KEYS 1 163 164 /** 165 * Driver Manager Configuration 166 */ 167 #ifdef RTEMS_DRVMGR_STARTUP 168 #define CONFIGURE_DRVMGR_SEMAPHORES 1 169 #else 170 #define CONFIGURE_DRVMGR_SEMAPHORES 0 171 #endif 163 172 164 173 #ifdef CONFIGURE_INIT … … 2171 2180 CONFIGURE_TERMIOS_SEMAPHORES + CONFIGURE_LIBBLOCK_SEMAPHORES + \ 2172 2181 CONFIGURE_SEMAPHORES_FOR_FILE_SYSTEMS + \ 2173 CONFIGURE_NETWORKING_SEMAPHORES )2182 CONFIGURE_NETWORKING_SEMAPHORES + CONFIGURE_DRVMGR_SEMAPHORES) 2174 2183 2175 2184 /** -
cpukit/sapi/src/exinit.c
r02550220 re7fade3 57 57 #include <rtems/posix/posixapi.h> 58 58 59 #ifdef RTEMS_DRVMGR_STARTUP 60 #include <drvmgr/drvmgr.h> 61 #endif 62 59 63 Objects_Information *_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ]; 60 64 … … 162 166 void rtems_initialize_before_drivers(void) 163 167 { 168 #ifdef RTEMS_DRVMGR_STARTUP 169 _DRV_Manager_initialization(); 170 #endif 164 171 165 172 #if defined(RTEMS_MULTIPROCESSING) … … 183 190 */ 184 191 192 #ifdef RTEMS_DRVMGR_STARTUP 193 /* BSPs has already registered their "root bus" driver in the 194 * bsp_predriver hook or so. 195 * 196 * Init Drivers to Level 1, constraints: 197 * - Interrupts and system clock timer does not work. 198 * - malloc() work, however other memory services may not 199 * have been initialized yet. 200 * - initializes most basic stuff 201 * 202 * Typical setup in Level 1: 203 * - Find most devices in system, do PCI scan and configuration. 204 * - Reset hardware if needed. 205 * - Install IRQ driver 206 * - Install Timer driver 207 * - Install console driver and debug printk() 208 * - Install extra memory. 209 */ 210 _DRV_Manager_init_level(1); 211 bsp_driver_level_hook(1); 212 #endif 213 214 /* Initialize I/O drivers. 215 * 216 * Driver Manager note: 217 * All drivers may not be registered yet. Drivers will dynamically 218 * be initialized when registered in level 2,3 and 4. 219 */ 185 220 _IO_Initialize_all_drivers(); 221 222 #ifdef RTEMS_DRVMGR_STARTUP 223 /* Init Drivers to Level 2, constraints: 224 * - Interrupts can be registered and enabled. 225 * - System Clock is running 226 * - Console may be used. 227 * 228 * This is typically where drivers are initialized 229 * for the first time. 230 */ 231 _DRV_Manager_init_level(2); 232 bsp_driver_level_hook(2); 233 234 /* Init Drivers to Level 3 235 * 236 * This is typically where normal drivers are initialized 237 * for the second time, they may depend on other drivers 238 * API inited in level 2 239 */ 240 _DRV_Manager_init_level(3); 241 bsp_driver_level_hook(3); 242 243 /* Init Drivers to Level 4, 244 * Init drivers that depend on services initialized in Level 3 245 */ 246 _DRV_Manager_init_level(4); 247 bsp_driver_level_hook(4); 248 #endif 186 249 187 250 #if defined(RTEMS_MULTIPROCESSING) -
cpukit/wrapup/Makefile.am
r02550220 re7fade3 64 64 65 65 TMP_LIBS += ../libmisc/libuuid.a 66 67 66 TMP_LIBS += ../libi2c/libi2c.a 68 69 67 TMP_LIBS += ../libpci/libpci.a 68 TMP_LIBS += ../libdrvmgr/libdrvmgr.a 70 69 71 70 if LIBNETWORKING
Note: See TracChangeset
for help on using the changeset viewer.