OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libcpu/] [powerpc/] [mpc6xx/] [clock/] [c_clock.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  Clock Tick Device Driver
3
 *
4
 *  This routine utilizes the Decrementer Register common to the PPC family.
5
 *
6
 *  The tick frequency is directly programmed to the configured number of
7
 *  microseconds per tick.
8
 *
9
 *  COPYRIGHT (c) 1989-1997.
10
 *  On-Line Applications Research Corporation (OAR).
11
 *
12
 *  The license and distribution terms for this file may in
13
 *  the file LICENSE in this distribution or at
14
 *  http://www.OARcorp.com/rtems/license.html.
15
 *
16
 *  Modified to support the MPC750.
17
 *  Modifications Copyright (c) 1999 Eric Valette valette@crf.canon.fr
18
 *
19
 *  c_clock.h,v 1.4 2001/10/12 21:03:52 joel Exp
20
 */
21
 
22
#ifndef _LIB_LIBCPU_C_CLOCK_H
23
#define _LIB_LIBCPU_C_CLOCK_H
24
 
25
#include <rtems.h>
26
 
27
/*
28
 * These functions and variables represent the API exported by the
29
 * CPU to the BSP.
30
 */
31
 
32
extern void clockOff    (void* unused);
33
extern void clockOn     (void* unused);
34
extern void clockIsr    (void);
35
extern int  clockIsOn   (void* unused);
36
 
37
/*
38
 *  These functions and variables represent the assumptions of this
39
 *  driver on the BSP.
40
 */
41
 
42
extern int BSP_disconnect_clock_handler (void);
43
/*
44
 * PCI Bus Frequency
45
 */
46
extern unsigned int BSP_bus_frequency;
47
/*
48
 * processor clock frequency
49
 */
50
extern unsigned int BSP_processor_frequency;
51
/*
52
 * Time base divisior (how many tick for 1 second).
53
 */
54
extern unsigned int BSP_time_base_divisor;
55
 
56
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.