diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-05 22:06:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-05 22:06:25 +0000 |
commit | 2d5e1ca04e3458647a9a17bf54fe3ab6b88ece2e (patch) | |
tree | 9219ebc47bf2b0439d7dde48c1de170043a3da97 /c/src | |
parent | 2008-09-05 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-2d5e1ca04e3458647a9a17bf54fe3ab6b88ece2e.tar.bz2 |
2008-09-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* clockdrv_shell.c: The Shared Memory Driver no longer requires the
special IOCTL in Clock_control. This was a hack which has existed
since before the Classic API Timer Manager was implemented. All
implementations of and references to Clock_control were removed.
Diffstat (limited to 'c/src')
-rw-r--r-- | c/src/lib/libbsp/shared/ChangeLog | 7 | ||||
-rw-r--r-- | c/src/lib/libbsp/shared/clockdrv_shell.c | 50 |
2 files changed, 7 insertions, 50 deletions
diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog index 7e04c26c25..68b6523315 100644 --- a/c/src/lib/libbsp/shared/ChangeLog +++ b/c/src/lib/libbsp/shared/ChangeLog @@ -1,3 +1,10 @@ +2008-09-05 Joel Sherrill <joel.sherrill@OARcorp.com> + + * clockdrv_shell.c: The Shared Memory Driver no longer requires the + special IOCTL in Clock_control. This was a hack which has existed + since before the Classic API Timer Manager was implemented. All + implementations of and references to Clock_control were removed. + 2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org> * timerstub.c, tod.c: Convert to "bool". diff --git a/c/src/lib/libbsp/shared/clockdrv_shell.c b/c/src/lib/libbsp/shared/clockdrv_shell.c index a211fa6a57..cf53f47154 100644 --- a/c/src/lib/libbsp/shared/clockdrv_shell.c +++ b/c/src/lib/libbsp/shared/clockdrv_shell.c @@ -228,53 +228,3 @@ rtems_device_driver Clock_initialize( return RTEMS_SUCCESSFUL; } - -/* - * Clock_control - * - * This routine is the clock device driver control entry point. - * - * Input parameters: - * major - clock device major number - * minor - clock device minor number - * parg - pointer to optional device driver arguments - * - * Output parameters: NONE - * - * Return values: - * rtems_device_driver status code - */ - -rtems_device_driver Clock_control( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) -{ - uint32_t isrlevel; - rtems_libio_ioctl_args_t *args = pargp; - rtems_isr_entry ignored_ticker; - - if (args == 0) - goto done; - - /* - * This is hokey, but until we get a defined interface - * to do this, it will just be this simple... - */ - - if (args->command == rtems_build_name('I', 'S', 'R', ' ')) - { - - Clock_isr(CLOCK_VECTOR); - } - else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) - { - rtems_interrupt_disable( isrlevel ); - Clock_driver_support_install_isr( args->buffer, ignored_ticker ); - rtems_interrupt_enable( isrlevel ); - } - -done: - return RTEMS_SUCCESSFUL; -} |