Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
mc146818rtc.h File Reference
#include <linux/io.h>
#include <linux/kernel.h>

Go to the source code of this file.

Macros

#define RTC_IRQ   BUILD_BUG_ON(1)
 
#define RTC_PORT(x)   (0x70 + (x))
 
#define RTC_ALWAYS_BCD   1 /* RTC operates in binary mode */
 
#define CMOS_READ(addr)
 
#define CMOS_WRITE(val, addr)
 

Macro Definition Documentation

#define CMOS_READ (   addr)
Value:
({ \
outb_p((addr),RTC_PORT(0)); \
inb_p(RTC_PORT(1)); \
})

Definition at line 21 of file mc146818rtc.h.

#define CMOS_WRITE (   val,
  addr 
)
Value:
({ \
outb_p((addr),RTC_PORT(0)); \
outb_p((val),RTC_PORT(1)); \
})

Definition at line 25 of file mc146818rtc.h.

#define RTC_ALWAYS_BCD   1 /* RTC operates in binary mode */

Definition at line 14 of file mc146818rtc.h.

#define RTC_IRQ   BUILD_BUG_ON(1)

Definition at line 10 of file mc146818rtc.h.

#define RTC_PORT (   x)    (0x70 + (x))

Definition at line 13 of file mc146818rtc.h.