RTEMS  5.1
rtc.h
Go to the documentation of this file.
1 
9 /*
10  * COPYRIGHT (c) 1989-2001.
11  * On-Line Applications Research Corporation (OAR).
12  *
13  * The license and distribution terms for this file may be
14  * found in the file LICENSE in this distribution or at
15  * http://www.rtems.org/license/LICENSE.
16  */
17 
18 #ifndef _RTEMS_RTC_H
19 #define _RTEMS_RTC_H
20 
21 #include <rtems.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
40 #define RTC_DEVICE_NAME "/dev/rtc"
41 
45 #define RTC_DRIVER_TABLE_ENTRY \
46  { rtc_initialize, rtc_open, rtc_close, \
47  rtc_read, rtc_write, rtc_control }
48 
57  rtems_device_major_number,
58  rtems_device_minor_number,
59  void *
60 );
61 
66  rtems_device_major_number,
67  rtems_device_minor_number,
68  void *
69 );
70 
75  rtems_device_major_number,
76  rtems_device_minor_number,
77  void *
78 );
79 
86  rtems_device_major_number,
87  rtems_device_minor_number,
88  void *
89 );
90 
97  rtems_device_major_number,
98  rtems_device_minor_number,
99  void *
100 );
101 
106  rtems_device_major_number,
107  rtems_device_minor_number,
108  void *
109 );
110 
113 #ifdef __cplusplus
114 }
115 #endif
116 
117 #endif
rtems_device_driver rtc_read(rtems_device_major_number, rtems_device_minor_number, void *)
Definition: rtc.c:183
rtems_device_driver rtc_close(rtems_device_major_number, rtems_device_minor_number, void *)
Definition: rtc.c:242
rtems_status_code
Classic API Status.
Definition: status.h:43
rtems_device_driver rtc_initialize(rtems_device_major_number, rtems_device_minor_number, void *)
Definition: rtc.c:160
rtems_device_driver rtc_open(rtems_device_major_number, rtems_device_minor_number, void *)
Definition: rtc.c:233
rtems_device_driver rtc_control(rtems_device_major_number, rtems_device_minor_number, void *)
Definition: rtc.c:251
rtems_device_driver rtc_write(rtems_device_major_number, rtems_device_minor_number, void *)
Definition: rtc.c:206