Changeset bd84f81 in rtems


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

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

  • clock/clock.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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/unix/posix/ChangeLog

    r16bd644c rbd84f81  
     12008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * clock/clock.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/unix/posix/clock/clock.c

    r16bd644c rbd84f81  
    7878    return RTEMS_SUCCESSFUL;
    7979}
    80 
    81 rtems_device_driver Clock_control(
    82   rtems_device_major_number major,
    83   rtems_device_minor_number minor,
    84   void *pargp
    85 )
    86 {
    87     uint32_t         isrlevel;
    88     rtems_libio_ioctl_args_t *args = pargp;
    89 
    90     if (args == 0)
    91         goto done;
    92 
    93     /*
    94      * This is hokey, but until we get a defined interface
    95      * to do this, it will just be this simple...
    96      */
    97 
    98     if (args->command == rtems_build_name('I', 'S', 'R', ' '))
    99     {
    100         Clock_isr(Clock_driver_vector);
    101     }
    102     else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    103     {
    104       rtems_interrupt_disable( isrlevel );
    105        (void) set_vector( args->buffer, Clock_driver_vector, 1 );
    106       rtems_interrupt_enable( isrlevel );
    107     }
    108 
    109 done:
    110     return RTEMS_SUCCESSFUL;
    111 }
  • c/src/lib/libcpu/bfin/ChangeLog

    r16bd644c rbd84f81  
     12008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * clock/clock.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/libcpu/bfin/clock/clock.c

    r16bd644c rbd84f81  
    106106  return RTEMS_SUCCESSFUL;
    107107}
    108 
    109 /*
    110  *  Clock_control
    111  *
    112  *  This routine is the clock device driver control entry point.
    113  *
    114  *  Input parameters:
    115  *    major - clock device major number
    116  *    minor - clock device minor number
    117  *    parg  - pointer to optional device driver arguments
    118  *
    119  *  Output parameters:  NONE
    120  *
    121  *  Return values:
    122  *    rtems_device_driver status code
    123  */
    124 
    125 rtems_device_driver Clock_control(rtems_device_major_number major,
    126                                   rtems_device_minor_number minor,
    127                                   void *pargp) {
    128   rtems_interrupt_level isrLevel;
    129   rtems_libio_ioctl_args_t *args = pargp;
    130 
    131   if (args == 0)
    132     goto done;
    133 
    134   /*
    135    * This is hokey, but until we get a defined interface
    136    * to do this, it will just be this simple...
    137    */
    138 
    139   if (args->command == rtems_build_name('I', 'S', 'R', ' ')) {
    140     clockISR(CEC_CORE_TIMER_VECTOR);
    141   } else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) {
    142     rtems_interrupt_disable(isrLevel);
    143     set_vector(args->buffer, CEC_CORE_TIMER_VECTOR, 1);
    144     rtems_interrupt_enable(isrLevel);
    145   }
    146 
    147 done:
    148   return RTEMS_SUCCESSFUL;
    149 }
    150 
Note: See TracChangeset for help on using the changeset viewer.