source: rtems/c/src/libchip/rtc/icm7170.h @ d0e2fa3

4.104.115
Last change on this file since d0e2fa3 was ee4f57d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/23/04 at 09:59:52

2004-03-23 Ralf Corsepius <ralf_corsepius@…>

  • libchip/ide/ata.c, libchip/ide/ata_internal.h, libchip/ide/ide_controller.c, libchip/ide/ide_ctrl_cfg.h, libchip/ide/ide_ctrl_io.h, libchip/network/cs8900.c, libchip/network/dec21140.c, libchip/network/elnk.c, libchip/network/if_fxp.c, libchip/network/open_eth.c, libchip/network/open_eth.h, libchip/network/sonic.c, libchip/network/sonic.h, libchip/rtc/icm7170.c, libchip/rtc/icm7170.h, libchip/rtc/icm7170_reg.c, libchip/rtc/icm7170_reg2.c, libchip/rtc/icm7170_reg4.c, libchip/rtc/icm7170_reg8.c, libchip/rtc/m48t08.c, libchip/rtc/m48t08.h, libchip/rtc/m48t08_reg.c, libchip/rtc/m48t08_reg2.c, libchip/rtc/m48t08_reg4.c, libchip/rtc/m48t08_reg8.c, libchip/rtc/rtc.h, libchip/serial/mc68681.c, libchip/serial/mc68681.h, libchip/serial/mc68681_reg.c, libchip/serial/mc68681_reg2.c, libchip/serial/mc68681_reg4.c, libchip/serial/mc68681_reg8.c, libchip/serial/ns16550.c, libchip/serial/ns16550_p.h, libchip/serial/serial.h, libchip/serial/z85c30.c, libchip/serial/z85c30.h, libchip/serial/z85c30_p.h, libchip/serial/z85c30_reg.c, libchip/shmdr/addlq.c, libchip/shmdr/cnvpkt.c, libchip/shmdr/dump.c, libchip/shmdr/fatal.c, libchip/shmdr/getlq.c, libchip/shmdr/init.c, libchip/shmdr/initlq.c, libchip/shmdr/intr.c, libchip/shmdr/poll.c, libchip/shmdr/send.c, libchip/shmdr/shm_driver.h: Convert to using c99 fixed-size types.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1/*
2 *  This file contains the definitions for the following real-time clocks:
3 *
4 *    + Harris Semiconduction ICM7170
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef __LIBCHIP_ICM7170_h
17#define __LIBCHIP_ICM7170_h
18
19/*
20 *  Register indices
21 */
22
23#define ICM7170_CONTROL             0x11
24
25
26#define ICM7170_COUNTER_HUNDREDTHS  0x00
27#define ICM7170_HOUR                0x01
28#define ICM7170_MINUTE              0x02
29#define ICM7170_SECOND              0x03
30#define ICM7170_MONTH               0x04
31#define ICM7170_DATE                0x05
32#define ICM7170_YEAR                0x06
33#define ICM7170_DAY_OF_WEEK         0x07
34
35/*
36 *  Configuration information in the parameters field
37 */
38
39#define ICM7170_AT_32_KHZ  0x00
40#define ICM7170_AT_1_MHZ   0x01
41#define ICM7170_AT_2_MHZ   0x02
42#define ICM7170_AT_4_MHZ   0x03
43
44/*
45 *  Driver function table
46 */
47
48extern rtc_fns icm7170_fns;
49
50/*
51 * Default register access routines
52 */
53
54uint32_t   icm7170_get_register(    /* registers are at 1 byte boundaries */
55  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
56  uint8_t     ucRegNum
57);
58
59void  icm7170_set_register(
60  uint32_t    ulCtrlPort,
61  uint8_t     ucRegNum,
62  uint32_t    ucData
63);
64
65uint32_t   icm7170_get_register_2(  /* registers are at 2 byte boundaries */
66  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
67  uint8_t     ucRegNum
68);
69
70void  icm7170_set_register_2(
71  uint32_t    ulCtrlPort,
72  uint8_t     ucRegNum,
73  uint32_t    ucData
74);
75
76uint32_t   icm7170_get_register_4(  /* registers are at 4 byte boundaries */
77  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
78  uint8_t     ucRegNum
79);
80
81void  icm7170_set_register_4(
82  uint32_t    ulCtrlPort,
83  uint8_t     ucRegNum,
84  uint32_t    ucData
85);
86
87uint32_t   icm7170_get_register_8(  /* registers are at 8 byte boundaries */
88  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
89  uint8_t     ucRegNum
90);
91
92void  icm7170_set_register_8(
93  uint32_t    ulCtrlPort,
94  uint8_t     ucRegNum,
95  uint32_t    ucData
96);
97
98#endif
99/* end of include file */
Note: See TracBrowser for help on using the repository browser.