Changeset 8e13ca61 in rtems
- Timestamp:
- 10/18/00 15:21:35 (22 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8c187427
- Parents:
- 3815a2b
- Location:
- c/src/lib/libcpu/powerpc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libcpu/powerpc/ChangeLog
r3815a2b r8e13ca61 1 2000-10-18 Joel Sherrill <joel@OARcorp.com> 2 3 * mpc6xx/clock/c_clock.c, mpc6xx/clock/c_clock.h: Removed use of 4 bsp.h and replaced it with use of proper interfaces or explicit 5 externs of required functions and data. 6 * mpc6xx/timer/timer.c: Ditto. 7 1 8 2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 9 -
c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c
r3815a2b r8e13ca61 27 27 #include <libcpu/cpu.h> 28 28 #include <libcpu/c_clock.h> 29 #include <bspIo.h> /* for printk() */ 29 30 30 31 /* … … 141 142 { 142 143 Clock_Decrementer_value = (BSP_bus_frequency/BSP_time_base_divisor)* 143 (BSP_Configuration.microseconds_per_tick/1000);144 (rtems_configuration_get_microseconds_per_tick()/1000); 144 145 145 146 if (!BSP_connect_clock_handler ()) { … … 183 184 184 185 Clock_Decrementer_value = (BSP_bus_frequency/BSP_time_base_divisor)* 185 ( BSP_Configuration.microseconds_per_tick/1000);186 (rtems_configuration_get_microseconds_per_tick()/1000); 186 187 187 188 if (args->command == rtems_build_name('I', 'S', 'R', ' ')) -
c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.h
r3815a2b r8e13ca61 25 25 26 26 #include <rtems.h> 27 #include <bsp.h> 27 /* #include <bsp.h> */ 28 28 29 29 /* 30 * Theses functions and variables represent the API exported by the CPU to the BSP 30 * These functions and variables represent the API exported by the 31 * CPU to the BSP. 31 32 */ 33 32 34 extern void clockOff (void* unused); 33 35 extern void clockOn (void* unused); 34 36 extern void clockIsr (void); 35 37 extern int clockIsOn (void* unused); 38 39 /* 40 * These functions and variables represent the assumptions of this 41 * driver on the BSP. 42 */ 43 44 extern int BSP_disconnect_clock_handler (void); 45 /* 46 * PCI Bus Frequency 47 */ 48 extern unsigned int BSP_bus_frequency; 49 /* 50 * processor clock frequency 51 */ 52 extern unsigned int BSP_processor_frequency; 53 /* 54 * Time base divisior (how many tick for 1 second). 55 */ 56 extern unsigned int BSP_time_base_divisor; 36 57 37 58 #endif -
c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c
r3815a2b r8e13ca61 20 20 21 21 #include <assert.h> 22 #include <rtems.h> 22 23 #include <libcpu/cpu.h> 23 #include <bsp.h> 24 /* #include <bsp.h> */ 24 25 25 26 rtems_unsigned64 Timer_driver_Start_time; … … 61 62 * Read_timer 62 63 */ 64 65 extern int BSP_Convert_decrementer( unsigned32 ); 66 63 67 int Read_timer() 64 68 {
Note: See TracChangeset
for help on using the changeset viewer.