source: rtems/c/src/lib/libbsp/powerpc/dmv177/tod/todcfg.c @ 9968efb

4.104.114.84.95
Last change on this file since 9968efb was 9968efb, checked in by Joel Sherrill <joel.sherrill@…>, on 07/28/98 at 23:16:34

First cut at configuration table for libchip RTC. At this point, we
are pretending that the DMV177 has an M48T08.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  This file contains the RTC driver table for the DY-4 DMV177.
3 *
4 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1997.
5 *  On-Line Applications Research Corporation (OAR).
6 *  All rights assigned to U.S. Government, 1994.
7 *
8 *  $Id$
9 */
10
11#include <bsp.h>
12
13#include <libchip/rtc.h>
14#include <libchip/m48t08.h>
15
16/*
17 * Configuration specific probe routines
18 *
19 * NOTE:  There are no DMV177 specific configuration routines.  These
20 *        routines could be written to dynamically determine what type
21 *        of real-time clock is on this board.  This would be useful for
22 *        a BSP supporting multiple board models.
23 */
24
25/* NONE CURRENTLY PROVIDED */
26
27/*
28 * The following table configures the RTC drivers used in this BSP.
29 *
30 * The first entry which, when probed, is available, will be named /dev/rtc,
31 * all others being given the name indicated.
32 */
33
34rtc_tbl RTC_Table[] = {
35        {
36                "/dev/rtc0",                    /* sDeviceName */
37                RTC_M48T08,                     /* deviceType */
38                MC68681_FUNCTIONS,              /* pDeviceFns */
39                rtc_probe,                      /* deviceProbe */
40                NULL,                           /* pDeviceParams */
41                DMV170_RTC_ADDRESS,             /* ulCtrlPort1 */
42                NULL,                           /* ulCtrlPort2 */
43                NULL,                           /* ulDataPort */
44                m48t08_get_register,            /* getRegister */
45                m48t08_set_register,            /* setRegister */
46                NULL, /* unused */              /* setData */
47        }
48};
49
50/*
51 *  Declare some information used by the RTC driver
52 */
53
54#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))
55
56unsigned long  RTC_Count = NUM_RTCS;
57
58rtems_device_minor_number  RTC_Minor;
Note: See TracBrowser for help on using the repository browser.