summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.h
blob: 15e3839b80378be8b80de1dffaa827ef91155553 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 *  Clock Tick Device Driver
 *
 *  This routine utilizes the Decrementer Register common to the PPC family.
 *
 *  The tick frequency is directly programmed to the configured number of
 *  microseconds per tick.
 *
 *  COPYRIGHT (c) 1989-1997.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may in
 *  the file LICENSE in this distribution or at
 *  http://www.rtems.com/license/LICENSE.
 *
 *  Modified to support the MPC750.
 *  Modifications Copyright (c) 1999 Eric Valette valette@crf.canon.fr
 */

#ifndef _LIBCPU_C_CLOCK_H
#define _LIBCPU_C_CLOCK_H

#include <rtems.h>

/*
 * These functions and variables represent the API exported by the
 * CPU to the BSP.
 */

extern void clockOff	(void* unused);
extern void clockOn	(void* unused);
extern void clockIsr	(void* unused);
/* bookE decrementer is slightly different */
extern void clockIsrBookE (void *unused);
extern int  clockIsOn	(void* unused);

/*
 *  These functions and variables represent the assumptions of this
 *  driver on the BSP.
 */

extern int BSP_disconnect_clock_handler (void);
/*
 * PCI Bus Frequency
 */
extern unsigned int BSP_bus_frequency;
/*
 * processor clock frequency
 */
extern unsigned int BSP_processor_frequency;
/*
 * Time base divisior (how many tick for 1 second).
 */
extern unsigned int BSP_time_base_divisor;

#endif