4.104.114.84.95
Rev | Line | |
---|
[7be6ad9] | 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 */ |
---|
| 16 | rtc_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 | |
---|
| 34 | unsigned long RTC_Count = NUM_RTCS; |
---|
| 35 | |
---|
| 36 | rtems_device_minor_number RTC_Minor; |
---|
Note: See
TracBrowser
for help on using the repository browser.