diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-05 22:06:54 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-05 22:06:54 +0000 |
commit | dad34779e94a53240ca68660b1c7ebee9fa33280 (patch) | |
tree | 42f63c557756a98819b9ae29881dae45047217b8 /c/src/lib/libcpu/powerpc/ppc403/clock | |
parent | 2008-09-05 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-dad34779e94a53240ca68660b1c7ebee9fa33280.tar.bz2 |
2008-09-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* mpc5xx/clock/clock.c, mpc6xx/clock/c_clock.c, mpc8260/clock/clock.c,
mpc8xx/clock/clock.c, ppc403/clock/clock.c, ppc403/clock/clock_4xx.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 '')
-rw-r--r-- | c/src/lib/libcpu/powerpc/ppc403/clock/clock.c | 35 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/ppc403/clock/clock_4xx.c | 23 |
2 files changed, 0 insertions, 58 deletions
diff --git a/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c b/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c index 7c30022fab..c01abe07cd 100644 --- a/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c +++ b/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c @@ -449,38 +449,3 @@ rtems_device_driver Clock_initialize( return RTEMS_SUCCESSFUL; } - -rtems_device_driver Clock_control( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) -{ - rtems_libio_ioctl_args_t *args = pargp; - - 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', ' ')) - { -#if PPC_HAS_CLASSIC_EXCEPTIONS - Clock_isr(PPC_IRQ_PIT); -#elif defined(BSP_PPC403_CLOCK_HOOK_EXCEPTION) - Clock_isr(NULL, BSP_PPC403_CLOCK_HOOK_EXCEPTION); -#else - Clock_isr(NULL); -#endif - } - else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) - { - ReInstall_clock(args->buffer); - } - -done: - return RTEMS_SUCCESSFUL; -} diff --git a/c/src/lib/libcpu/powerpc/ppc403/clock/clock_4xx.c b/c/src/lib/libcpu/powerpc/ppc403/clock/clock_4xx.c index 890e75509d..1a6d91cafb 100644 --- a/c/src/lib/libcpu/powerpc/ppc403/clock/clock_4xx.c +++ b/c/src/lib/libcpu/powerpc/ppc403/clock/clock_4xx.c @@ -226,26 +226,3 @@ rtems_device_driver Clock_initialize( return RTEMS_SUCCESSFUL; } - - -rtems_device_driver Clock_control( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) -{ - rtems_libio_ioctl_args_t* args = pargp; - - if (args!=NULL) { - /* - * 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(NULL); - else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) - ReInstall_clock(args->buffer); - } - return RTEMS_SUCCESSFUL; -} |