Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:53

0001 /*
0002  *  Clock Tick Device Driver
0003  *
0004  *  This routine utilizes the Decrementer Register common to the PPC family.
0005  *
0006  *  The tick frequency is directly programmed to the configured number of
0007  *  microseconds per tick.
0008  *
0009  *  COPYRIGHT (c) 1989-1997.
0010  *  On-Line Applications Research Corporation (OAR).
0011  *
0012  *  The license and distribution terms for this file may in
0013  *  the file LICENSE in this distribution or at
0014  *  http://www.rtems.org/license/LICENSE.
0015  *
0016  *  Modified to support the MPC750.
0017  *  Modifications Copyright (c) 1999 Eric Valette valette@crf.canon.fr
0018  */
0019 
0020 #ifndef _LIBCPU_C_CLOCK_H
0021 #define _LIBCPU_C_CLOCK_H
0022 
0023 #include <rtems.h>
0024 
0025 /*
0026  * These functions and variables represent the API exported by the
0027  * CPU to the BSP.
0028  */
0029 
0030 extern void clockOff    (void* unused);
0031 extern void clockOn (void* unused);
0032 extern void clockIsr    (void* unused);
0033 /* bookE decrementer is slightly different */
0034 extern void clockIsrBookE (void *unused);
0035 extern int  clockIsOn   (void* unused);
0036 
0037 /*
0038  *  These functions and variables represent the assumptions of this
0039  *  driver on the BSP.
0040  */
0041 
0042 extern int BSP_disconnect_clock_handler (void);
0043 /*
0044  * PCI Bus Frequency
0045  */
0046 extern unsigned int BSP_bus_frequency;
0047 /*
0048  * processor clock frequency
0049  */
0050 extern unsigned int BSP_processor_frequency;
0051 /*
0052  * Time base divisior (how many tick for 1 second).
0053  */
0054 extern unsigned int BSP_time_base_divisor;
0055 
0056 #endif