Changeset 34c33ff in rtems
- Timestamp:
- Sep 5, 2008, 10:06:56 PM (11 years ago)
- Branches:
- 4.10, 4.11, 4.9, master
- Children:
- c502aa3
- Parents:
- dad34779
- Location:
- c/src/lib/libcpu/sh
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libcpu/sh/ChangeLog
rdad34779 r34c33ff 1 2008-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 1 9 2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org> 2 10 -
c/src/lib/libcpu/sh/sh7032/clock/ckinit.c
rdad34779 r34c33ff 324 324 return RTEMS_SUCCESSFUL; 325 325 } 326 327 rtems_device_driver Clock_control(328 rtems_device_major_number major,329 rtems_device_minor_number minor,330 void *pargp331 )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 interface340 * 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 267 267 return RTEMS_SUCCESSFUL; 268 268 } 269 270 rtems_device_driver Clock_control(271 rtems_device_major_number major,272 rtems_device_minor_number minor,273 void *pargp274 )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 interface283 * 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 281 281 return RTEMS_SUCCESSFUL; 282 282 } 283 284 /* Clock_control --285 * Device driver entry point for clock driver IOCTL functions.286 *287 * PARAMETERS:288 * major - clock major device number289 * minor - clock minor device number290 * pargp - driver ioctl primitive argument, not used291 *292 * RETURNS:293 * RTEMS_SUCCESSFUL294 */295 rtems_device_driver296 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 interface307 * 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.