Changeset 1e6aed25 in rtems for c/src/lib/libcpu/m68k/mcf5272


Ignore:
Timestamp:
Sep 5, 2008, 10:06:49 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.