Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:40

0001 /*
0002  * This file contains the RTC driver table for Motorola shared BSPs.
0003  *
0004  * The license and distribution terms for this file may be
0005  * found in the file LICENSE in this distribution or at
0006  * http://www.rtems.org/license/LICENSE.
0007  */
0008 
0009 #include <bsp.h>
0010 #include <libchip/rtc.h>
0011 #include <libchip/mc146818a.h>
0012 
0013 /* The following table configures the RTC drivers used in this BSP */
0014 rtc_tbl RTC_Table[] = {
0015     {
0016         "/dev/rtc",                /* sDeviceName */
0017         RTC_MC146818A,             /* deviceType */
0018         &mc146818a_fns,            /* pDeviceFns */
0019         mc146818a_probe,           /* deviceProbe */
0020         NULL,                      /* pDeviceParams */
0021         0x70,                      /* ulCtrlPort1 */
0022         0x00,                      /* ulDataPort */
0023         mc146818a_get_register,    /* getRegister */
0024         mc146818a_set_register     /* setRegister */
0025     }
0026 };
0027 
0028 /* Some information used by the RTC driver */
0029 
0030 #define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))
0031 
0032 size_t RTC_Count = NUM_RTCS;