source: rtems/c/src/lib/libbsp/powerpc/qoriq/rtc/rtc-config.c @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup QorIQ
5 *
6 * @brief RTC configuration.
7 */
8
9/*
10 * Copyright (c) 2010 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 */
22
23#include <libchip/rtc.h>
24
25#define RTC_COUNT 1
26
27static void qoriq_rtc_initialize(int minor)
28{
29  /* FIXME */
30}
31
32static int qoriq_rtc_get_time(int minor, rtems_time_of_day *tod)
33{
34  return -1;
35}
36
37static int qoriq_rtc_set_time(int minor, const rtems_time_of_day *tod)
38{
39  return -1;
40}
41
42static bool qoriq_rtc_probe(int minor)
43{
44  return false;
45}
46
47const rtc_fns qoriq_rtc_ops = {
48  .deviceInitialize = qoriq_rtc_initialize,
49  .deviceGetTime = qoriq_rtc_get_time,
50  .deviceSetTime = qoriq_rtc_set_time
51};
52
53size_t RTC_Count = RTC_COUNT;
54
55rtems_device_minor_number RTC_Minor = 0;
56
57rtc_tbl RTC_Table [RTC_COUNT] = {
58  {
59    .sDeviceName = "/dev/rtc",
60    .deviceType = RTC_CUSTOM,
61    .pDeviceFns = &qoriq_rtc_ops,
62    .deviceProbe = qoriq_rtc_probe,
63    .pDeviceParams = NULL,
64    .ulCtrlPort1 = 0,
65    .ulDataPort = 0,
66    .getRegister = NULL,
67    .setRegister = NULL
68  }
69};
Note: See TracBrowser for help on using the repository browser.