1 | /* clock.h |
---|
2 | * |
---|
3 | * This file describes the Clock Driver for all boards. |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * All rights assigned to U.S. Government, 1994. |
---|
8 | * |
---|
9 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
10 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
11 | * notice must appear in all copies of this file and its derivatives. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef __CLOCK_DRIVER_h |
---|
17 | #define __CLOCK_DRIVER_h |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | /* variables */ |
---|
24 | |
---|
25 | extern volatile rtems_unsigned32 Clock_driver_ticks; |
---|
26 | extern rtems_device_major_number rtems_clock_major; |
---|
27 | extern rtems_device_minor_number rtems_clock_minor; |
---|
28 | |
---|
29 | /* default clock driver entry */ |
---|
30 | |
---|
31 | #define CLOCK_DRIVER_TABLE_ENTRY \ |
---|
32 | { Clock_initialize, NULL, NULL, NULL, NULL, Clock_control } |
---|
33 | |
---|
34 | rtems_device_driver Clock_initialize( |
---|
35 | rtems_device_major_number, |
---|
36 | rtems_device_minor_number, |
---|
37 | void * |
---|
38 | ); |
---|
39 | |
---|
40 | rtems_device_driver Clock_control( |
---|
41 | rtems_device_major_number major, |
---|
42 | rtems_device_minor_number minor, |
---|
43 | void *pargp |
---|
44 | ); |
---|
45 | |
---|
46 | #ifdef __cplusplus |
---|
47 | } |
---|
48 | #endif |
---|
49 | |
---|
50 | #endif |
---|
51 | /* end of include file */ |
---|