source: rtems/c/src/lib/libbsp/powerpc/shared/tod/todcfg.c @ 92049ab

4.104.114.84.9
Last change on this file since 92049ab was ab900436, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 4, 2005 at 11:29:40 PM

2005-01-04 Joel Sherrill <joel@…>

  • ChangeLog?, startup/bspstart.c, tod/todcfg.c: Remove warnings.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*
2 * This file contains the RTC driver table for Motorola shared BSPs.
3 *
4 * The license and distribution terms for this file may be
5 * found in the file LICENSE in this distribution or at
6 * http://www.rtems.com/license/LICENSE.
7 *
8 * $Id$
9 */
10
11#include <bsp.h>
12#include <libchip/rtc.h>
13#include <libchip/m48t08.h>
14
15/* Forward function declaration */
16#if !defined(mvme2100)
17unsigned32 mvmertc_get_register( unsigned32, unsigned8 );
18void mvmertc_set_register( unsigned32, unsigned8, unsigned32 );
19#endif
20
21/* The following table configures the RTC drivers used in this BSP */
22rtc_tbl RTC_Table[] = {
23    {
24        "/dev/rtc",                /* sDeviceName */
25        RTC_M48T08,                /* deviceType  -- actually M48T59 */
26        &m48t08_fns,               /* pDeviceFns */
27        rtc_probe,                 /* deviceProbe */
28        NULL,                      /* pDeviceParams */
29#if defined(mvme2100)
30        0xFFE81ff8,                /* ulCtrlPort1 */
31        0x00,                      /* ulDataPort */
32        m48t08_get_register,       /* getRegister */
33        m48t08_set_register        /* setRegister */
34#else
35        0xFFE81ff8,                /* ulCtrlPort1 */
36        0x00,                      /* ulDataPort */
37        mvmertc_get_register,      /* getRegister */
38        mvmertc_set_register       /* setRegister */
39#endif
40    }
41};
42
43/* Some information used by the RTC driver */
44
45#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))
46
47unsigned long RTC_Count = NUM_RTCS;
48
49rtems_device_minor_number RTC_Minor;
50
51#if !defined(mvme2100)
52#include <rtems/bspIo.h>
53void mvmertc_set_register(
54  unsigned32 base,
55  unsigned8  reg,
56  unsigned32 value
57)
58{
59  printk( "RTC SUPPORT NOT IMPLEMENTED ON THIS BOARD\n");
60}
61
62unsigned32 mvmertc_get_register(
63  unsigned32 base,
64  unsigned8  reg
65)
66{
67  printk( "RTC SUPPORT NOT IMPLEMENTED ON THIS BOARD\n");
68  return 0;
69}
70#endif
Note: See TracBrowser for help on using the repository browser.