Changeset 2d5e1ca in rtems


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

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

  • 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.
Location:
c/src/lib/libbsp/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/ChangeLog

    r2d4d710b r2d5e1ca  
     12008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * clockdrv_shell.c: The Shared Memory Driver no longer requires the
     4        special IOCTL in Clock_control. This was a hack which has existed
     5        since before the Classic API Timer Manager was implemented. All
     6        implementations of and references to Clock_control were removed.
     7
    182008-09-05      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • c/src/lib/libbsp/shared/clockdrv_shell.c

    r2d4d710b r2d5e1ca  
    229229  return RTEMS_SUCCESSFUL;
    230230}
    231 
    232 /*
    233  *  Clock_control
    234  *
    235  *  This routine is the clock device driver control entry point.
    236  *
    237  *  Input parameters:
    238  *    major - clock device major number
    239  *    minor - clock device minor number
    240  *    parg  - pointer to optional device driver arguments
    241  *
    242  *  Output parameters:  NONE
    243  *
    244  *  Return values:
    245  *    rtems_device_driver status code
    246  */
    247 
    248 rtems_device_driver Clock_control(
    249   rtems_device_major_number major,
    250   rtems_device_minor_number minor,
    251   void *pargp
    252 )
    253 {
    254     uint32_t         isrlevel;
    255     rtems_libio_ioctl_args_t *args = pargp;
    256     rtems_isr_entry  ignored_ticker;
    257 
    258     if (args == 0)
    259         goto done;
    260 
    261     /*
    262      * This is hokey, but until we get a defined interface
    263      * to do this, it will just be this simple...
    264      */
    265 
    266     if (args->command == rtems_build_name('I', 'S', 'R', ' '))
    267     {
    268 
    269         Clock_isr(CLOCK_VECTOR);
    270     }
    271     else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    272     {
    273       rtems_interrupt_disable( isrlevel );
    274        Clock_driver_support_install_isr( args->buffer, ignored_ticker );
    275       rtems_interrupt_enable( isrlevel );
    276     }
    277 
    278 done:
    279     return RTEMS_SUCCESSFUL;
    280 }
Note: See TracChangeset for help on using the changeset viewer.