From 059a371409f8e35a635e412cd9061a41d4cf7c46 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Oct 2001 19:05:29 +0000 Subject: 2001-10-16 Chris Johns * include/confdefs.h, include/rtems/config.h, include/rtems/io.h, optman/no-io.c, src/exinit.c, src/io.c: Added a device driver register/unregister interface to allow device drivers to be installed and removed at runtime. This means you do not need devices present in the device table when you build. --- c/src/exec/sapi/include/confdefs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'c/src/exec/sapi/include/confdefs.h') diff --git a/c/src/exec/sapi/include/confdefs.h b/c/src/exec/sapi/include/confdefs.h index 0dda508462..75e6a23a19 100644 --- a/c/src/exec/sapi/include/confdefs.h +++ b/c/src/exec/sapi/include/confdefs.h @@ -299,6 +299,15 @@ rtems_driver_address_table Device_drivers[] = { #endif /* CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE */ +/* + * Default the number of drivers per node. This value may be + * overridden by the user. + */ + +#ifndef CONFIGURE_MAXIMUM_DRIVERS +#define CONFIGURE_MAXIMUM_DRIVERS 10 +#endif + /* * Default the number of devices per device driver. This value may be * overridden by the user. @@ -993,6 +1002,7 @@ rtems_configuration_table Configuration = { CONFIGURE_MICROSECONDS_PER_TICK, CONFIGURE_TICKS_PER_TIMESLICE, CONFIGURE_MAXIMUM_DEVICES, + CONFIGURE_MAXIMUM_DRIVERS, sizeof (Device_drivers)/ sizeof(rtems_driver_address_table), /* number of device drivers */ Device_drivers, /* pointer to driver table */ -- cgit v1.2.3