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

Go to the source code of this file.

Macros

#define RTC_PORT(x)   (cmos_regs + (x))
 
#define RTC_ALWAYS_BCD   0
 
#define CMOS_READ(addr)
 
#define CMOS_WRITE(val, addr)
 

Variables

unsigned long cmos_regs
 

Macro Definition Documentation

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

Definition at line 19 of file mc146818rtc_64.h.

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

Definition at line 23 of file mc146818rtc_64.h.

#define RTC_ALWAYS_BCD   0

Definition at line 12 of file mc146818rtc_64.h.

#define RTC_PORT (   x)    (cmos_regs + (x))

Definition at line 11 of file mc146818rtc_64.h.

Variable Documentation

unsigned long cmos_regs

Definition at line 410 of file time_64.c.