|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/i2c.h>#include <linux/bcd.h>#include <linux/rtc.h>#include <linux/log2.h>Go to the source code of this file.
Macros | |
| #define | DRV_VERSION "0.1" |
| #define | RX8581_REG_SC 0x00 /* Second in BCD */ |
| #define | RX8581_REG_MN 0x01 /* Minute in BCD */ |
| #define | RX8581_REG_HR 0x02 /* Hour in BCD */ |
| #define | RX8581_REG_DW 0x03 /* Day of Week */ |
| #define | RX8581_REG_DM 0x04 /* Day of Month in BCD */ |
| #define | RX8581_REG_MO 0x05 /* Month in BCD */ |
| #define | RX8581_REG_YR 0x06 /* Year in BCD */ |
| #define | RX8581_REG_RAM 0x07 /* RAM */ |
| #define | RX8581_REG_AMN 0x08 /* Alarm Min in BCD*/ |
| #define | RX8581_REG_AHR 0x09 /* Alarm Hour in BCD */ |
| #define | RX8581_REG_ADM 0x0A |
| #define | RX8581_REG_ADW 0x0A |
| #define | RX8581_REG_TMR0 0x0B |
| #define | RX8581_REG_TMR1 0x0C |
| #define | RX8581_REG_EXT 0x0D /* Extension Register */ |
| #define | RX8581_REG_FLAG 0x0E /* Flag Register */ |
| #define | RX8581_REG_CTRL 0x0F /* Control Register */ |
| #define | RX8581_FLAG_UF 0x20 /* Update */ |
| #define | RX8581_FLAG_TF 0x10 /* Timer */ |
| #define | RX8581_FLAG_AF 0x08 /* Alarm */ |
| #define | RX8581_FLAG_VLF 0x02 /* Voltage Low */ |
| #define | RX8581_CTRL_UIE 0x20 /* Update Interrupt Enable */ |
| #define | RX8581_CTRL_TIE 0x10 /* Timer Interrupt Enable */ |
| #define | RX8581_CTRL_AIE 0x08 /* Alarm Interrupt Enable */ |
| #define | RX8581_CTRL_STOP 0x02 /* STOP bit */ |
| #define | RX8581_CTRL_RESET 0x01 /* RESET bit */ |
Functions | |
| MODULE_DEVICE_TABLE (i2c, rx8581_id) | |
| module_i2c_driver (rx8581_driver) | |
| MODULE_AUTHOR ("Martyn Welch <[email protected]>") | |
| MODULE_DESCRIPTION ("Epson RX-8581 RTC driver") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_VERSION (DRV_VERSION) | |
| #define DRV_VERSION "0.1" |
Definition at line 21 of file rtc-rx8581.c.
| #define RX8581_CTRL_AIE 0x08 /* Alarm Interrupt Enable */ |
Definition at line 51 of file rtc-rx8581.c.
| #define RX8581_CTRL_RESET 0x01 /* RESET bit */ |
Definition at line 53 of file rtc-rx8581.c.
| #define RX8581_CTRL_STOP 0x02 /* STOP bit */ |
Definition at line 52 of file rtc-rx8581.c.
| #define RX8581_CTRL_TIE 0x10 /* Timer Interrupt Enable */ |
Definition at line 50 of file rtc-rx8581.c.
| #define RX8581_CTRL_UIE 0x20 /* Update Interrupt Enable */ |
Definition at line 49 of file rtc-rx8581.c.
| #define RX8581_FLAG_AF 0x08 /* Alarm */ |
Definition at line 45 of file rtc-rx8581.c.
| #define RX8581_FLAG_TF 0x10 /* Timer */ |
Definition at line 44 of file rtc-rx8581.c.
| #define RX8581_FLAG_UF 0x20 /* Update */ |
Definition at line 43 of file rtc-rx8581.c.
| #define RX8581_FLAG_VLF 0x02 /* Voltage Low */ |
Definition at line 46 of file rtc-rx8581.c.
| #define RX8581_REG_ADM 0x0A |
Definition at line 33 of file rtc-rx8581.c.
| #define RX8581_REG_ADW 0x0A |
Definition at line 34 of file rtc-rx8581.c.
| #define RX8581_REG_AHR 0x09 /* Alarm Hour in BCD */ |
Definition at line 32 of file rtc-rx8581.c.
| #define RX8581_REG_AMN 0x08 /* Alarm Min in BCD*/ |
Definition at line 31 of file rtc-rx8581.c.
| #define RX8581_REG_CTRL 0x0F /* Control Register */ |
Definition at line 39 of file rtc-rx8581.c.
| #define RX8581_REG_DM 0x04 /* Day of Month in BCD */ |
Definition at line 27 of file rtc-rx8581.c.
| #define RX8581_REG_DW 0x03 /* Day of Week */ |
Definition at line 26 of file rtc-rx8581.c.
| #define RX8581_REG_EXT 0x0D /* Extension Register */ |
Definition at line 37 of file rtc-rx8581.c.
| #define RX8581_REG_FLAG 0x0E /* Flag Register */ |
Definition at line 38 of file rtc-rx8581.c.
| #define RX8581_REG_HR 0x02 /* Hour in BCD */ |
Definition at line 25 of file rtc-rx8581.c.
| #define RX8581_REG_MN 0x01 /* Minute in BCD */ |
Definition at line 24 of file rtc-rx8581.c.
| #define RX8581_REG_MO 0x05 /* Month in BCD */ |
Definition at line 28 of file rtc-rx8581.c.
| #define RX8581_REG_RAM 0x07 /* RAM */ |
Definition at line 30 of file rtc-rx8581.c.
| #define RX8581_REG_SC 0x00 /* Second in BCD */ |
Definition at line 23 of file rtc-rx8581.c.
| #define RX8581_REG_TMR0 0x0B |
Definition at line 35 of file rtc-rx8581.c.
| #define RX8581_REG_TMR1 0x0C |
Definition at line 36 of file rtc-rx8581.c.
| #define RX8581_REG_YR 0x06 /* Year in BCD */ |
Definition at line 29 of file rtc-rx8581.c.
| MODULE_AUTHOR | ( | "Martyn Welch <[email protected]>" | ) |
| MODULE_DEVICE_TABLE | ( | i2c | , |
| rx8581_id | |||
| ) |
| module_i2c_driver | ( | rx8581_driver | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| MODULE_VERSION | ( | DRV_VERSION | ) |
1.8.2