|
Linux Kernel
3.7.1
|
#include <linux/err.h>#include <linux/fs.h>#include <linux/init.h>#include <linux/ioport.h>#include <linux/interrupt.h>#include <linux/module.h>#include <linux/platform_device.h>#include <linux/rtc.h>#include <linux/spinlock.h>#include <linux/types.h>#include <linux/log2.h>#include <asm/div64.h>#include <asm/io.h>#include <asm/uaccess.h>Go to the source code of this file.
Macros | |
| #define | ETIMELREG 0x00 |
| #define | ETIMEMREG 0x02 |
| #define | ETIMEHREG 0x04 |
| #define | ECMPLREG 0x08 |
| #define | ECMPMREG 0x0a |
| #define | ECMPHREG 0x0c |
| #define | RTCL1LREG 0x10 |
| #define | RTCL1HREG 0x12 |
| #define | RTCL1CNTLREG 0x14 |
| #define | RTCL1CNTHREG 0x16 |
| #define | RTCL2LREG 0x18 |
| #define | RTCL2HREG 0x1a |
| #define | RTCL2CNTLREG 0x1c |
| #define | RTCL2CNTHREG 0x1e |
| #define | TCLKLREG 0x00 |
| #define | TCLKHREG 0x02 |
| #define | TCLKCNTLREG 0x04 |
| #define | TCLKCNTHREG 0x06 |
| #define | RTCINTREG 0x1e |
| #define | TCLOCK_INT 0x08 |
| #define | RTCLONG2_INT 0x04 |
| #define | RTCLONG1_INT 0x02 |
| #define | ELAPSEDTIME_INT 0x01 |
| #define | RTC_FREQUENCY 32768 |
| #define | MAX_PERIODIC_RATE 6553 |
| #define | rtc1_read(offset) readw(rtc1_base + (offset)) |
| #define | rtc1_write(offset, value) writew((value), rtc1_base + (offset)) |
| #define | rtc2_read(offset) readw(rtc2_base + (offset)) |
| #define | rtc2_write(offset, value) writew((value), rtc2_base + (offset)) |
Functions | |
| MODULE_AUTHOR ("Yoichi Yuasa <[email protected]>") | |
| MODULE_DESCRIPTION ("NEC VR4100 series RTC driver") | |
| MODULE_LICENSE ("GPL v2") | |
| MODULE_ALIAS ("platform:RTC") | |
| module_platform_driver (rtc_platform_driver) | |
| #define ECMPHREG 0x0c |
Definition at line 47 of file rtc-vr41xx.c.
| #define ECMPLREG 0x08 |
Definition at line 45 of file rtc-vr41xx.c.
| #define ECMPMREG 0x0a |
Definition at line 46 of file rtc-vr41xx.c.
| #define ELAPSEDTIME_INT 0x01 |
Definition at line 68 of file rtc-vr41xx.c.
| #define ETIMEHREG 0x04 |
Definition at line 43 of file rtc-vr41xx.c.
| #define ETIMELREG 0x00 |
Definition at line 41 of file rtc-vr41xx.c.
| #define ETIMEMREG 0x02 |
Definition at line 42 of file rtc-vr41xx.c.
| #define MAX_PERIODIC_RATE 6553 |
Definition at line 71 of file rtc-vr41xx.c.
Definition at line 76 of file rtc-vr41xx.c.
Definition at line 77 of file rtc-vr41xx.c.
Definition at line 79 of file rtc-vr41xx.c.
Definition at line 80 of file rtc-vr41xx.c.
| #define RTC_FREQUENCY 32768 |
Definition at line 70 of file rtc-vr41xx.c.
| #define RTCINTREG 0x1e |
Definition at line 64 of file rtc-vr41xx.c.
| #define RTCL1CNTHREG 0x16 |
Definition at line 52 of file rtc-vr41xx.c.
| #define RTCL1CNTLREG 0x14 |
Definition at line 51 of file rtc-vr41xx.c.
| #define RTCL1HREG 0x12 |
Definition at line 50 of file rtc-vr41xx.c.
| #define RTCL1LREG 0x10 |
Definition at line 49 of file rtc-vr41xx.c.
| #define RTCL2CNTHREG 0x1e |
Definition at line 56 of file rtc-vr41xx.c.
| #define RTCL2CNTLREG 0x1c |
Definition at line 55 of file rtc-vr41xx.c.
| #define RTCL2HREG 0x1a |
Definition at line 54 of file rtc-vr41xx.c.
| #define RTCL2LREG 0x18 |
Definition at line 53 of file rtc-vr41xx.c.
| #define RTCLONG1_INT 0x02 |
Definition at line 67 of file rtc-vr41xx.c.
| #define RTCLONG2_INT 0x04 |
Definition at line 66 of file rtc-vr41xx.c.
| #define TCLKCNTHREG 0x06 |
Definition at line 62 of file rtc-vr41xx.c.
| #define TCLKCNTLREG 0x04 |
Definition at line 61 of file rtc-vr41xx.c.
| #define TCLKHREG 0x02 |
Definition at line 60 of file rtc-vr41xx.c.
| #define TCLKLREG 0x00 |
Definition at line 59 of file rtc-vr41xx.c.
| #define TCLOCK_INT 0x08 |
Definition at line 65 of file rtc-vr41xx.c.
| MODULE_ALIAS | ( | "platform:RTC" | ) |
| MODULE_AUTHOR | ( | "Yoichi Yuasa <[email protected]>" | ) |
| MODULE_LICENSE | ( | "GPL v2" | ) |
| module_platform_driver | ( | rtc_platform_driver | ) |
1.8.2