diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-05-28 15:51:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-05-28 15:51:01 +0000 |
commit | ff3f8c85c3f2098af3ffc8330b3a6cf636035edf (patch) | |
tree | 2e766ce877f4653a8146538493f464b8f622dea4 /cpukit/sapi/src/io.c | |
parent | 2007-05-28 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-ff3f8c85c3f2098af3ffc8330b3a6cf636035edf.tar.bz2 |
2007-05-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* libmisc/Makefile.am, libmisc/monitor/mon-object.c,
libmisc/monitor/monitor.h, sapi/include/confdefs.h,
sapi/include/rtems/config.h, sapi/include/rtems/io.h,
sapi/src/exinit.c, sapi/src/io.c: Eliminate maximum_drivers
configuration parameter since it was used to configure a no longer
used feature. Device names are now part of the filesystem not in a
table. This also eliminated the variables _IO_Number_of_devices and
_IO_Driver_name_table from RTEMS as well as the memory allocation
used to populate _IO_Driver_name_table.
* libmisc/monitor/mon-dname.c: Removed.
Diffstat (limited to 'cpukit/sapi/src/io.c')
-rw-r--r-- | cpukit/sapi/src/io.c | 71 |
1 files changed, 1 insertions, 70 deletions
diff --git a/cpukit/sapi/src/io.c b/cpukit/sapi/src/io.c index 62f058563b..3c943285bf 100644 --- a/cpukit/sapi/src/io.c +++ b/cpukit/sapi/src/io.c @@ -37,35 +37,14 @@ void _IO_Manager_initialization( rtems_driver_address_table *driver_table, uint32_t drivers_in_table, - uint32_t number_of_drivers, - uint32_t number_of_devices + uint32_t number_of_drivers ) { - void *tmp; - uint32_t index; - rtems_driver_name_t *np; - if ( number_of_drivers < drivers_in_table ) number_of_drivers = drivers_in_table; _IO_Driver_address_table = driver_table; _IO_Number_of_drivers = number_of_drivers; - _IO_Number_of_devices = number_of_devices; - - tmp = _Workspace_Allocate_or_fatal_error( - sizeof( rtems_driver_name_t ) * ( number_of_devices + 1 ) - ); - - _IO_Driver_name_table = (rtems_driver_name_t *) tmp; - - for( index=0, np = _IO_Driver_name_table ; - index < _IO_Number_of_devices ; - index++, np++ ) { - np->device_name = 0; - np->device_name_length = 0; - np->major = 0; - np->minor = 0; - } } /*PAGE @@ -176,54 +155,6 @@ rtems_status_code rtems_io_unregister_driver( /*PAGE * - * rtems_io_register_name - * - * Associate a name with a driver - * - * Input Paramters: - * device_name - pointer to name string to associate with device - * major - device major number to receive name - * minor - device minor number to receive name - * - * Output Parameters: - * RTEMS_SUCCESSFUL - if successful - * error code - if unsuccessful - */ - -#if 0 -rtems_status_code rtems_io_register_name( - const char *device_name, - rtems_device_major_number major, - rtems_device_minor_number minor - ) -{ - rtems_driver_name_t *np; - uint32_t level; - uint32_t index; - - /* find an empty slot */ - for( index=0, np = _IO_Driver_name_table ; - index < _IO_Number_of_devices ; - index++, np++ ) { - - _ISR_Disable(level); - if (np->device_name == 0) { - np->device_name = device_name; - np->device_name_length = strlen(device_name); - np->major = major; - np->minor = minor; - _ISR_Enable(level); - - return RTEMS_SUCCESSFUL; - } - _ISR_Enable(level); - } - return RTEMS_TOO_MANY; -} -#endif - -/*PAGE - * * rtems_io_initialize * * This routine is the initialization directive of the IO manager. |