summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386
diff options
context:
space:
mode:
authorcvs2git <rtems-devel@rtems.org>2004-10-11 20:13:32 +0000
committercvs2git <rtems-devel@rtems.org>2004-10-11 20:13:32 +0000
commit361d58eef6ce79dbd6079da8d469a2b407a013f2 (patch)
tree3f7aeb219472e1b55bf14401fe0f8524c70a7a51 /c/src/lib/libbsp/i386/pc386
parent2004-09-30 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-361d58eef6ce79dbd6079da8d469a2b407a013f2.tar.bz2
This commit was manufactured by cvs2svn to create branch 'rtems-4-6-branch'.
Cherrypick from master 2004-10-11 20:13:31 UTC Eric Norum <WENorum@lbl.gov> 'Don't get duplication rtc_probe() definitions.': c/src/lib/libbsp/i386/pc386/clock/todcfg.c c/src/libchip/rtc/README.mc146818a c/src/libchip/rtc/mc146818a.c c/src/libchip/rtc/mc146818a.h c/src/libchip/rtc/mc146818a_ioreg.c
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386')
-rw-r--r--c/src/lib/libbsp/i386/pc386/clock/todcfg.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/clock/todcfg.c b/c/src/lib/libbsp/i386/pc386/clock/todcfg.c
new file mode 100644
index 0000000000..a0a15de7cd
--- /dev/null
+++ b/c/src/lib/libbsp/i386/pc386/clock/todcfg.c
@@ -0,0 +1,36 @@
+/*
+ * This file contains the RTC driver table for Motorola shared BSPs.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#include <bsp.h>
+#include <libchip/rtc.h>
+#include <libchip/mc146818a.h>
+
+/* The following table configures the RTC drivers used in this BSP */
+rtc_tbl RTC_Table[] = {
+ {
+ "/dev/rtc", /* sDeviceName */
+ RTC_MC146818A, /* deviceType */
+ &mc146818a_fns, /* pDeviceFns */
+ mc146818a_probe, /* deviceProbe */
+ NULL, /* pDeviceParams */
+ 0x70, /* ulCtrlPort1 */
+ 0x00, /* ulDataPort */
+ mc146818a_get_register, /* getRegister */
+ mc146818a_set_register /* setRegister */
+ }
+};
+
+/* Some information used by the RTC driver */
+
+#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))
+
+unsigned long RTC_Count = NUM_RTCS;
+
+rtems_device_minor_number RTC_Minor;