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

Go to the source code of this file.

Data Structures

struct  rtc_time
 

Macros

#define RTC_SECONDS   0
 
#define RTC_MINUTES   1
 
#define RTC_HOURS   2
 
#define RTC_DAY_OF_MONTH   3
 
#define RTC_MONTH   4
 
#define RTC_WEEKDAY   5
 
#define RTC_YEAR   6
 
#define RTC_CONTROL   7
 
#define RTC_CONTROL_WRITEPROTECT   0x80
 
#define RTC_TRICKLECHARGER   8
 
#define RTC_TCR_PATTERN   0xA0 /* 1010xxxx */
 
#define RTC_TCR_1DIOD   0x04 /* xxxx01xx */
 
#define RTC_TCR_2DIOD   0x08 /* xxxx10xx */
 
#define RTC_TCR_DISABLED   0x00 /* xxxxxx00 Disabled */
 
#define RTC_TCR_2KOHM   0x01 /* xxxxxx01 2KOhm */
 
#define RTC_TCR_4KOHM   0x02 /* xxxxxx10 4kOhm */
 
#define RTC_TCR_8KOHM   0x03 /* xxxxxx11 8kOhm */
 
#define CMOS_READ(x)   42
 
#define CMOS_WRITE(x, y)
 
#define RTC_INIT()   (-1)
 
#define RTC_MAGIC   'p'
 
#define RTC_RD_TIME   _IOR(RTC_MAGIC, 0x09, struct rtc_time) /* Read RTC time. */
 
#define RTC_SET_TIME   _IOW(RTC_MAGIC, 0x0a, struct rtc_time) /* Set RTC time. */
 
#define RTC_SET_CHARGE   _IOW(RTC_MAGIC, 0x0b, int)
 
#define RTC_MAX_IOCTL   0x0b
 

Macro Definition Documentation

#define CMOS_READ (   x)    42

Definition at line 36 of file rtc.h.

#define CMOS_WRITE (   x,
  y 
)

Definition at line 37 of file rtc.h.

#define RTC_CONTROL   7

Definition at line 12 of file rtc.h.

#define RTC_CONTROL_WRITEPROTECT   0x80

Definition at line 15 of file rtc.h.

#define RTC_DAY_OF_MONTH   3

Definition at line 8 of file rtc.h.

#define RTC_HOURS   2

Definition at line 7 of file rtc.h.

#define RTC_INIT ( )    (-1)

Definition at line 38 of file rtc.h.

#define RTC_MAGIC   'p'

Definition at line 59 of file rtc.h.

#define RTC_MAX_IOCTL   0x0b

Definition at line 63 of file rtc.h.

#define RTC_MINUTES   1

Definition at line 6 of file rtc.h.

#define RTC_MONTH   4

Definition at line 9 of file rtc.h.

#define RTC_RD_TIME   _IOR(RTC_MAGIC, 0x09, struct rtc_time) /* Read RTC time. */

Definition at line 60 of file rtc.h.

#define RTC_SECONDS   0

Definition at line 5 of file rtc.h.

#define RTC_SET_CHARGE   _IOW(RTC_MAGIC, 0x0b, int)

Definition at line 62 of file rtc.h.

#define RTC_SET_TIME   _IOW(RTC_MAGIC, 0x0a, struct rtc_time) /* Set RTC time. */

Definition at line 61 of file rtc.h.

#define RTC_TCR_1DIOD   0x04 /* xxxx01xx */

Definition at line 20 of file rtc.h.

#define RTC_TCR_2DIOD   0x08 /* xxxx10xx */

Definition at line 21 of file rtc.h.

#define RTC_TCR_2KOHM   0x01 /* xxxxxx01 2KOhm */

Definition at line 23 of file rtc.h.

#define RTC_TCR_4KOHM   0x02 /* xxxxxx10 4kOhm */

Definition at line 24 of file rtc.h.

#define RTC_TCR_8KOHM   0x03 /* xxxxxx11 8kOhm */

Definition at line 25 of file rtc.h.

#define RTC_TCR_DISABLED   0x00 /* xxxxxx00 Disabled */

Definition at line 22 of file rtc.h.

#define RTC_TCR_PATTERN   0xA0 /* 1010xxxx */

Definition at line 19 of file rtc.h.

#define RTC_TRICKLECHARGER   8

Definition at line 16 of file rtc.h.

#define RTC_WEEKDAY   5

Definition at line 10 of file rtc.h.

#define RTC_YEAR   6

Definition at line 11 of file rtc.h.