Changeset 8e13ca61 in rtems


Ignore:
Timestamp:
Oct 18, 2000, 3:21:35 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8c187427
Parents:
3815a2b
Message:

2000-10-18 Joel Sherrill <joel@…>

  • mpc6xx/clock/c_clock.c, mpc6xx/clock/c_clock.h: Removed use of bsp.h and replaced it with use of proper interfaces or explicit externs of required functions and data.
  • mpc6xx/timer/timer.c: Ditto.
Location:
c/src/lib/libcpu/powerpc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r3815a2b r8e13ca61  
     12000-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
    182000-09-04      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c

    r3815a2b r8e13ca61  
    2727#include <libcpu/cpu.h>
    2828#include <libcpu/c_clock.h>
     29#include <bspIo.h>                     /* for printk() */
    2930
    3031/*
     
    141142{
    142143  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);
    144145
    145146  if (!BSP_connect_clock_handler ()) {
     
    183184 
    184185    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);
    186187
    187188    if      (args->command == rtems_build_name('I', 'S', 'R', ' '))
  • c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.h

    r3815a2b r8e13ca61  
    2525
    2626#include <rtems.h>
    27 #include <bsp.h>
     27/* #include <bsp.h> */
    2828
    2929/*
    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.
    3132 */
     33
    3234extern void clockOff    (void* unused);
    3335extern void clockOn     (void* unused);
    3436extern void clockIsr    (void);
    3537extern int  clockIsOn   (void* unused);
     38
     39/*
     40 *  These functions and variables represent the assumptions of this
     41 *  driver on the BSP.
     42 */
     43
     44extern int BSP_disconnect_clock_handler (void);
     45/*
     46 * PCI Bus Frequency
     47 */
     48extern unsigned int BSP_bus_frequency;
     49/*
     50 * processor clock frequency
     51 */
     52extern unsigned int BSP_processor_frequency;
     53/*
     54 * Time base divisior (how many tick for 1 second).
     55 */
     56extern unsigned int BSP_time_base_divisor;
    3657
    3758#endif
  • c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c

    r3815a2b r8e13ca61  
    2020
    2121#include <assert.h>
     22#include <rtems.h>
    2223#include <libcpu/cpu.h>
    23 #include <bsp.h>
     24/* #include <bsp.h> */
    2425
    2526rtems_unsigned64 Timer_driver_Start_time;
     
    6162 *  Read_timer
    6263 */
     64
     65extern int BSP_Convert_decrementer( unsigned32 );
     66
    6367int Read_timer()
    6468{
Note: See TracChangeset for help on using the changeset viewer.