RTEMS  5.0.0
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 
38 #define RTC_DEVICE_NAME "/dev/rtc"
39 
43 #define RTC_DRIVER_TABLE_ENTRY \
44  { rtc_initialize, rtc_open, rtc_close, \
45  rtc_read, rtc_write, rtc_control }
46 
55  rtems_device_major_number,
56  rtems_device_minor_number,
57  void *
58 );
59 
64  rtems_device_major_number,
65  rtems_device_minor_number,
66  void *
67 );
68 
73  rtems_device_major_number,
74  rtems_device_minor_number,
75  void *
76 );
77 
84  rtems_device_major_number,
85  rtems_device_minor_number,
86  void *
87 );
88 
95  rtems_device_major_number,
96  rtems_device_minor_number,
97  void *
98 );
99 
104  rtems_device_major_number,
105  rtems_device_minor_number,
106  void *
107 );
108 
111 #ifdef __cplusplus
112 }
113 #endif
114 
115 #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