diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c b/c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c index e08be577a8..5015453a00 100644 --- a/c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c +++ b/c/src/lib/libbsp/powerpc/ppcn_60x/clock/clock.c @@ -43,11 +43,11 @@ uint32_t Clock_Decrementer_value; rtems_isr_entry Old_ticker; void Clock_exit( void ); - + /* * These are set by clock driver during its init */ - + rtems_device_major_number rtems_clock_major = ~0; rtems_device_minor_number rtems_clock_minor; @@ -139,11 +139,11 @@ void Install_clock( void Clock_exit( void ) { - /* nothing to do */; + /* nothing to do */; /* do not restore old vector */ } - + /* * Clock_initialize * @@ -170,17 +170,17 @@ rtems_device_driver Clock_initialize( (BSP_Configuration.microseconds_per_tick/1000); Install_clock((rtems_isr_entry)Clock_isr); - + /* * make major/minor avail to others such as shared memory driver */ - + rtems_clock_major = major; rtems_clock_minor = minor; - + return RTEMS_SUCCESSFUL; } - + /* * Clock_control * @@ -205,15 +205,15 @@ rtems_device_driver Clock_control( { uint32_t isrlevel; rtems_libio_ioctl_args_t *args = pargp; - + if (args == 0) goto done; - + /* * This is hokey, but until we get a defined interface * to do this, it will just be this simple... */ - + if (args->command == rtems_build_name('I', 'S', 'R', ' ')) { Clock_isr( CLOCK_VECTOR, pargp ); @@ -224,7 +224,7 @@ rtems_device_driver Clock_control( (void) set_vector( args->buffer, CLOCK_VECTOR, 1 ); rtems_interrupt_enable( isrlevel ); } - + done: return RTEMS_SUCCESSFUL; } |