source: rtems/c/src/lib/libbsp/powerpc/mvme5500/tod/todcfg.c @ 445f8cc

4.104.114.84.9
Last change on this file since 445f8cc was 445f8cc, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 22, 2005 at 4:13:41 AM

2005-01-22 Ralf Corsepius <ralf.corsepius@…>

  • tod/todcfg.c: size_t RTC_Count.
  • Property mode set to 100644
File size: 1.0 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/* The following table configures the RTC drivers used in this BSP */
16rtc_tbl RTC_Table[] = {
17    {
18        "/dev/rtc",                /* sDeviceName */
19        RTC_M48T08,                /* deviceType */
20        &m48t08_fns,               /* pDeviceFns */
21        rtc_probe,                 /* deviceProbe */
22        NULL,                      /* pDeviceParams */
23        0xF1117FF8,                /* ulCtrlPort1 */
24        0x00,                      /* ulDataPort */
25        m48t08_get_register,       /* getRegister */
26        m48t08_set_register        /* setRegister */
27    }
28};
29
30/* Some information used by the RTC driver */
31
32#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))
33
34size_t RTC_Count = NUM_RTCS;
35
36rtems_device_minor_number RTC_Minor;
Note: See TracBrowser for help on using the repository browser.