source: rtems/c/src/lib/libbsp/i386/pc386/clock/todcfg.c @ 5fb56e6

4.104.114.84.95
Last change on this file since 5fb56e6 was 5fb56e6, checked in by Eric Norum <WENorum@…>, on 10/11/04 at 20:13:31

Don't get duplication rtc_probe() definitions.

  • Property mode set to 100644
File size: 1.1 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
34unsigned long RTC_Count = NUM_RTCS;
35
36rtems_device_minor_number RTC_Minor;
Note: See TracBrowser for help on using the repository browser.