Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
m48t59.h File Reference

Go to the source code of this file.

Data Structures

struct  m48t59_plat_data
 

Macros

#define M48T59_YEAR   0xf
 
#define M48T59_MONTH   0xe
 
#define M48T59_MDAY   0xd /* Day of Month */
 
#define M48T59_WDAY   0xc /* Day of Week */
 
#define M48T59_WDAY_CB   0x20 /* Century Bit */
 
#define M48T59_WDAY_CEB   0x10 /* Century Enable Bit */
 
#define M48T59_HOUR   0xb
 
#define M48T59_MIN   0xa
 
#define M48T59_SEC   0x9
 
#define M48T59_CNTL   0x8
 
#define M48T59_CNTL_READ   0x40
 
#define M48T59_CNTL_WRITE   0x80
 
#define M48T59_WATCHDOG   0x7
 
#define M48T59_INTR   0x6
 
#define M48T59_INTR_AFE   0x80 /* Alarm Interrupt Enable */
 
#define M48T59_INTR_ABE   0x20
 
#define M48T59_ALARM_DATE   0x5
 
#define M48T59_ALARM_HOUR   0x4
 
#define M48T59_ALARM_MIN   0x3
 
#define M48T59_ALARM_SEC   0x2
 
#define M48T59_UNUSED   0x1
 
#define M48T59_FLAGS   0x0
 
#define M48T59_FLAGS_WDT   0x80 /* watchdog timer expired */
 
#define M48T59_FLAGS_AF   0x40 /* alarm */
 
#define M48T59_FLAGS_BF   0x10 /* low battery */
 
#define M48T59RTC_TYPE_M48T59   0 /* to keep compatibility */
 
#define M48T59RTC_TYPE_M48T02   1
 
#define M48T59RTC_TYPE_M48T08   2
 

Macro Definition Documentation

#define M48T59_ALARM_DATE   0x5

Definition at line 37 of file m48t59.h.

#define M48T59_ALARM_HOUR   0x4

Definition at line 38 of file m48t59.h.

#define M48T59_ALARM_MIN   0x3

Definition at line 39 of file m48t59.h.

#define M48T59_ALARM_SEC   0x2

Definition at line 40 of file m48t59.h.

#define M48T59_CNTL   0x8

Definition at line 30 of file m48t59.h.

#define M48T59_CNTL_READ   0x40

Definition at line 31 of file m48t59.h.

#define M48T59_CNTL_WRITE   0x80

Definition at line 32 of file m48t59.h.

#define M48T59_FLAGS   0x0

Definition at line 42 of file m48t59.h.

#define M48T59_FLAGS_AF   0x40 /* alarm */

Definition at line 44 of file m48t59.h.

#define M48T59_FLAGS_BF   0x10 /* low battery */

Definition at line 45 of file m48t59.h.

#define M48T59_FLAGS_WDT   0x80 /* watchdog timer expired */

Definition at line 43 of file m48t59.h.

#define M48T59_HOUR   0xb

Definition at line 27 of file m48t59.h.

#define M48T59_INTR   0x6

Definition at line 34 of file m48t59.h.

#define M48T59_INTR_ABE   0x20

Definition at line 36 of file m48t59.h.

#define M48T59_INTR_AFE   0x80 /* Alarm Interrupt Enable */

Definition at line 35 of file m48t59.h.

#define M48T59_MDAY   0xd /* Day of Month */

Definition at line 23 of file m48t59.h.

#define M48T59_MIN   0xa

Definition at line 28 of file m48t59.h.

#define M48T59_MONTH   0xe

Definition at line 22 of file m48t59.h.

#define M48T59_SEC   0x9

Definition at line 29 of file m48t59.h.

#define M48T59_UNUSED   0x1

Definition at line 41 of file m48t59.h.

#define M48T59_WATCHDOG   0x7

Definition at line 33 of file m48t59.h.

#define M48T59_WDAY   0xc /* Day of Week */

Definition at line 24 of file m48t59.h.

#define M48T59_WDAY_CB   0x20 /* Century Bit */

Definition at line 25 of file m48t59.h.

#define M48T59_WDAY_CEB   0x10 /* Century Enable Bit */

Definition at line 26 of file m48t59.h.

#define M48T59_YEAR   0xf

Definition at line 21 of file m48t59.h.

#define M48T59RTC_TYPE_M48T02   1

Definition at line 48 of file m48t59.h.

#define M48T59RTC_TYPE_M48T08   2

Definition at line 49 of file m48t59.h.

#define M48T59RTC_TYPE_M48T59   0 /* to keep compatibility */

Definition at line 47 of file m48t59.h.