source: rtems/c/src/lib/libbsp/i386/pc386/clock/todcfg.c @ 441b90e

4.115
Last change on this file since 441b90e was dc2aadef, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 22, 2005 at 4:12:07 AM

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

  • clock/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/mc146818a.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_MC146818A,             /* deviceType */
20        &mc146818a_fns,            /* pDeviceFns */
21        mc146818a_probe,           /* deviceProbe */
22        NULL,                      /* pDeviceParams */
23        0x70,                      /* ulCtrlPort1 */
24        0x00,                      /* ulDataPort */
25        mc146818a_get_register,    /* getRegister */
26        mc146818a_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.