RTEMS CPU Kit with SuperCore  4.10.99.0
rtems/rtc.h
Go to the documentation of this file.
00001 
00009 /*
00010  *  COPYRIGHT (c) 1989-2001.
00011  *  On-Line Applications Research Corporation (OAR).
00012  *
00013  *  The license and distribution terms for this file may be
00014  *  found in the file LICENSE in this distribution or at
00015  *  http://www.rtems.org/license/LICENSE.
00016  */
00017 
00018 #ifndef _RTEMS_RTC_H
00019 #define _RTEMS_RTC_H
00020 
00021 #include <rtems.h>
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00038 #define RTC_DEVICE_NAME "/dev/rtc"
00039 
00043 #define RTC_DRIVER_TABLE_ENTRY \
00044   { rtc_initialize, rtc_open, rtc_close, \
00045     rtc_read, rtc_write, rtc_control }
00046 
00054 rtems_device_driver rtc_initialize(
00055   rtems_device_major_number,
00056   rtems_device_minor_number,
00057   void *
00058 );
00059 
00063 rtems_device_driver rtc_open(
00064   rtems_device_major_number,
00065   rtems_device_minor_number,
00066   void *
00067 );
00068 
00072 rtems_device_driver rtc_close(
00073   rtems_device_major_number,
00074   rtems_device_minor_number,
00075   void *
00076 );
00077 
00083 rtems_device_driver rtc_read(
00084   rtems_device_major_number,
00085   rtems_device_minor_number,
00086   void *
00087 );
00088 
00094 rtems_device_driver rtc_write(
00095   rtems_device_major_number,
00096   rtems_device_minor_number,
00097   void *
00098 );
00099 
00103 rtems_device_driver rtc_control(
00104   rtems_device_major_number,
00105   rtems_device_minor_number,
00106   void *
00107 );
00108 
00111 #ifdef __cplusplus
00112 }
00113 #endif
00114 
00115 #endif