RTEMS 7.0-rc1
Loading...
Searching...
No Matches
c_clock.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
13/*
14 * Copyright (c) 1989-1997 On-Line Applications Research Corporation (OAR).
15 *
16 * Modified to support the MPC750.
17 * Modifications Copyright (c) 1999 Eric Valette <eric.valette@free.fr>
18 *
19 * Redistribution and use in source and binary forms, with or without
20 * modification, are permitted provided that the following conditions
21 * are met:
22 * 1. Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer.
24 * 2. Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in the
26 * documentation and/or other materials provided with the distribution.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
32 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
33 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
36 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 * POSSIBILITY OF SUCH DAMAGE.
39 */
40
41#ifndef _LIBCPU_C_CLOCK_H
42#define _LIBCPU_C_CLOCK_H
43
44#include <rtems.h>
45
46/*
47 * These functions and variables represent the API exported by the
48 * CPU to the BSP.
49 */
50
51extern void clockOff (void* unused);
52extern void clockOn (void* unused);
53extern void clockIsr (void* unused);
54/* bookE decrementer is slightly different */
55extern void clockIsrBookE (void *unused);
56extern int clockIsOn (void* unused);
57
58/*
59 * These functions and variables represent the assumptions of this
60 * driver on the BSP.
61 */
62
63extern int BSP_disconnect_clock_handler (void);
64/*
65 * PCI Bus Frequency
66 */
67extern unsigned int BSP_bus_frequency;
68/*
69 * processor clock frequency
70 */
71extern unsigned int BSP_processor_frequency;
72/*
73 * Time base divisior (how many tick for 1 second).
74 */
75extern unsigned int BSP_time_base_divisor;
76
77#endif
This header file defines the RTEMS Classic API.