4.115
Last change
on this file since c499856 was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
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.org/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #include <bsp.h> |
---|
10 | #include <libchip/rtc.h> |
---|
11 | #include <libchip/mc146818a.h> |
---|
12 | |
---|
13 | /* The following table configures the RTC drivers used in this BSP */ |
---|
14 | rtc_tbl RTC_Table[] = { |
---|
15 | { |
---|
16 | "/dev/rtc", /* sDeviceName */ |
---|
17 | RTC_MC146818A, /* deviceType */ |
---|
18 | &mc146818a_fns, /* pDeviceFns */ |
---|
19 | mc146818a_probe, /* deviceProbe */ |
---|
20 | NULL, /* pDeviceParams */ |
---|
21 | 0x70, /* ulCtrlPort1 */ |
---|
22 | 0x00, /* ulDataPort */ |
---|
23 | mc146818a_get_register, /* getRegister */ |
---|
24 | mc146818a_set_register /* setRegister */ |
---|
25 | } |
---|
26 | }; |
---|
27 | |
---|
28 | /* Some information used by the RTC driver */ |
---|
29 | |
---|
30 | #define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl)) |
---|
31 | |
---|
32 | size_t RTC_Count = NUM_RTCS; |
---|
33 | |
---|
34 | rtems_device_minor_number RTC_Minor; |
---|
Note: See
TracBrowser
for help on using the repository browser.