Changeset 1e6aed25 in rtems


Ignore:
Timestamp:
Sep 5, 2008, 10:06:49 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
34ef6c7
Parents:
bd84f81
Message:

2008-09-05 Joel Sherrill <joel.sherrill@…>

  • mcf5206/clock/ckinit.c, mcf5272/clock/ckinit.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.
Location:
c/src/lib/libcpu/m68k
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/m68k/ChangeLog

    rbd84f81 r1e6aed25  
     12008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * mcf5206/clock/ckinit.c, mcf5272/clock/ckinit.c: The Shared Memory
     4        Driver no longer requires the special IOCTL in Clock_control. This
     5        was a hack which has existed since before the Classic API Timer
     6        Manager was implemented. All implementations of and references to
     7        Clock_control were removed.
     8
    192008-09-05      Ralf Corsépius <ralf.corsepius@rtems.org>
    210
  • c/src/lib/libcpu/m68k/mcf5206/clock/ckinit.c

    rbd84f81 r1e6aed25  
    174174    return RTEMS_SUCCESSFUL;
    175175}
    176  
    177 
    178 /* Clock_control --
    179  *     I/O control (IOCTL) function for Clock driver. At this moment this
    180  *     just runs the interrupt handler or re-registers the interrupt handler
    181  *     on request.
    182  *
    183  * PARAMETERS:
    184  *     major - clock major device number
    185  *     minor - clock minor device number
    186  *     pargp - pointer to IOCTL arguments
    187  *
    188  * RETURNS:
    189  *     RTEMS status code
    190  */
    191 rtems_device_driver
    192 Clock_control(rtems_device_major_number major,
    193               rtems_device_minor_number minor,
    194               void *pargp)
    195 {
    196     uint32_t   isrlevel;
    197     rtems_libio_ioctl_args_t *args = pargp;
    198 
    199     if (args)
    200     {
    201         /*
    202          * This is hokey, but until we get a defined interface
    203          * to do this, it will just be this simple...
    204          */
    205         if (args->command == rtems_build_name('I', 'S', 'R', ' '))
    206         {
    207             Clock_isr(BSP_INTVEC_TIMER1);
    208         }
    209         else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    210         {
    211             rtems_interrupt_disable( isrlevel );
    212             (void) set_vector( args->buffer, BSP_INTVEC_TIMER1, 1 );
    213             rtems_interrupt_enable( isrlevel );
    214         }
    215     }
    216     return RTEMS_SUCCESSFUL;
    217 }
  • c/src/lib/libcpu/m68k/mcf5272/clock/ckinit.c

    rbd84f81 r1e6aed25  
    182182    return RTEMS_SUCCESSFUL;
    183183}
    184  
    185 
    186 /* Clock_control --
    187  *     I/O control (IOCTL) function for Clock driver. At this moment this
    188  *     just runs the interrupt handler or re-registers the interrupt handler
    189  *     on request.
    190  *
    191  * PARAMETERS:
    192  *     major - clock major device number
    193  *     minor - clock minor device number
    194  *     pargp - pointer to IOCTL arguments
    195  *
    196  * RETURNS:
    197  *     RTEMS status code
    198  */
    199 rtems_device_driver
    200 Clock_control(rtems_device_major_number major,
    201               rtems_device_minor_number minor,
    202               void *pargp)
    203 {
    204     uint32_t isrlevel;
    205     rtems_libio_ioctl_args_t *args = pargp;
    206 
    207     if (args)
    208     {
    209         /*
    210          * This is hokey, but until we get a defined interface
    211          * to do this, it will just be this simple...
    212          */
    213         if (args->command == rtems_build_name('I', 'S', 'R', ' '))
    214         {
    215             Clock_isr(BSP_INTVEC_TMR1);
    216         }
    217         else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    218         {
    219             rtems_interrupt_disable( isrlevel );
    220             (void) set_vector( args->buffer, BSP_INTVEC_TMR1, 1 );
    221             rtems_interrupt_enable( isrlevel );
    222         }
    223     }
    224     return RTEMS_SUCCESSFUL;
    225 }
Note: See TracChangeset for help on using the changeset viewer.