The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/iicbus/pcf8563reg.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: pcf8563reg.h,v 1.1 2011/01/21 19:11:47 jakllsch Exp $  */
    2 
    3 /*-
    4  * Jonathan Kollasch, 2011
    5  *
    6  * This file is in the public domain.
    7  *
    8  * $FreeBSD$
    9  */
   10 
   11 /*
   12  * NXP (Philips) PCF8563 RTC registers
   13  */
   14 
   15 /* We only have clock mode registers here. */
   16 
   17 #ifndef _PCF8563REG_H_
   18 #define _PCF8563REG_H_
   19 
   20 /*
   21  * PCF8563 RTC I2C address:
   22  *
   23  *      101 0001
   24  */
   25 #define PCF8563_ADDR            0xa2
   26 
   27 #define PCF8563_R_CS1           0x00
   28 #define PCF8563_R_CS2           0x01
   29 #define PCF8563_R_SECOND        0x02
   30 #define PCF8563_R_MINUTE        0x03
   31 #define PCF8563_R_HOUR          0x04
   32 #define PCF8563_R_DAY           0x05
   33 #define PCF8563_R_WEEKDAY       0x06
   34 #define PCF8563_R_MONTH         0x07
   35 #define PCF8563_R_YEAR          0x08
   36 #define PCF8563_R_MINUTE_ALARM  0x09
   37 #define PCF8563_R_HOUR_ALARM    0x0a
   38 #define PCF8563_R_DAY_ALARM     0x0b
   39 #define PCF8563_R_WEEKDAY_ALARM 0x0c
   40 #define PCF8563_R_CLKOUT_CNTRL  0x0d
   41 #define PCF8563_R_TIMER_CNTRL   0x0e
   42 #define PCF8563_R_TIMER         0x0f
   43 
   44 #define PCF8563_R_SECOND_VL     0x80
   45 #define PCF8563_R_MONTH_C       0x80
   46 
   47 #define PCF8563_NREGS           0x10
   48 
   49 #define PCF8563_M_SECOND        0x7f
   50 #define PCF8563_M_MINUTE        0x7f
   51 #define PCF8563_M_HOUR          0x3f
   52 #define PCF8563_M_DAY           0x3f
   53 #define PCF8563_M_WEEKDAY       0x07
   54 #define PCF8563_M_MONTH         0x1f
   55 #define PCF8563_M_CENTURY       0x80
   56 #define PCF8563_M_YEAR          0xff
   57 
   58 #endif  /* _PCF8563REG_H_ */

Cache object: e8d0c05e6f194411e4d075bd97accee2


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.