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

Go to the source code of this file.

Macros

#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 18 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 22 of file mc146818rtc.h.

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

Definition at line 11 of file mc146818rtc.h.

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

Definition at line 10 of file mc146818rtc.h.