Changeset 34c33ff in rtems


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

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

  • sh7032/clock/ckinit.c, sh7045/clock/ckinit.c, sh7750/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/sh
Files:
4 edited

Legend:

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

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

    rdad34779 r34c33ff  
    324324  return RTEMS_SUCCESSFUL;
    325325}
    326 
    327 rtems_device_driver Clock_control(
    328   rtems_device_major_number major,
    329   rtems_device_minor_number minor,
    330   void *pargp
    331 )
    332 {
    333   uint32_t   isrlevel;
    334   rtems_libio_ioctl_args_t *args = pargp;
    335 
    336   if (args != 0)
    337     {
    338       /*
    339        * This is hokey, but until we get a defined interface
    340        * to do this, it will just be this simple...
    341        */
    342 
    343       if (args->command == rtems_build_name('I', 'S', 'R', ' '))
    344         {
    345           Clock_isr(CLOCK_VECTOR);
    346         }
    347       else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    348         {
    349           rtems_isr_entry       ignored ;
    350           rtems_interrupt_disable( isrlevel );
    351           rtems_interrupt_catch( args->buffer, CLOCK_VECTOR, &ignored );
    352 
    353           rtems_interrupt_enable( isrlevel );
    354         }
    355     }
    356   return RTEMS_SUCCESSFUL;
    357 }
  • c/src/lib/libcpu/sh/sh7045/clock/ckinit.c

    rdad34779 r34c33ff  
    267267  return RTEMS_SUCCESSFUL;
    268268}
    269 
    270 rtems_device_driver Clock_control(
    271   rtems_device_major_number major,
    272   rtems_device_minor_number minor,
    273   void *pargp
    274 )
    275 {
    276   uint32_t   isrlevel;
    277   rtems_libio_ioctl_args_t *args = pargp;
    278 
    279   if (args != 0)
    280     {
    281       /*
    282        * This is hokey, but until we get a defined interface
    283        * to do this, it will just be this simple...
    284        */
    285 
    286       if (args->command == rtems_build_name('I', 'S', 'R', ' '))
    287         {
    288           Clock_isr(CLOCK_VECTOR);
    289         }
    290       else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    291         {
    292           rtems_isr_entry       ignored ;
    293           rtems_interrupt_disable( isrlevel );
    294           rtems_interrupt_catch( args->buffer, CLOCK_VECTOR, &ignored );
    295 
    296           rtems_interrupt_enable( isrlevel );
    297         }
    298     }
    299   return RTEMS_SUCCESSFUL;
    300 }
  • c/src/lib/libcpu/sh/sh7750/clock/ckinit.c

    rdad34779 r34c33ff  
    281281    return RTEMS_SUCCESSFUL;
    282282}
    283 
    284 /* Clock_control --
    285  *     Device driver entry point for clock driver IOCTL functions.
    286  *
    287  * PARAMETERS:
    288  *     major - clock major device number
    289  *     minor - clock minor device number
    290  *     pargp - driver ioctl primitive argument, not used
    291  *
    292  * RETURNS:
    293  *     RTEMS_SUCCESSFUL
    294  */
    295 rtems_device_driver
    296 Clock_control(rtems_device_major_number major,
    297               rtems_device_minor_number minor,
    298               void *pargp)
    299 {
    300   uint32_t   isrlevel;
    301   rtems_libio_ioctl_args_t *args = pargp;
    302 
    303   if (args != 0)
    304     {
    305       /*
    306        * This is hokey, but until we get a defined interface
    307        * to do this, it will just be this simple...
    308        */
    309 
    310       if (args->command == rtems_build_name('I', 'S', 'R', ' '))
    311         {
    312           Clock_isr(CLOCK_VECTOR);
    313         }
    314       else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    315         {
    316           rtems_isr_entry       ignored ;
    317           rtems_interrupt_disable( isrlevel );
    318           rtems_interrupt_catch( args->buffer, CLOCK_VECTOR, &ignored );
    319 
    320           rtems_interrupt_enable( isrlevel );
    321         }
    322     }
    323   return RTEMS_SUCCESSFUL;
    324 }
Note: See TracChangeset for help on using the changeset viewer.