Linux Kernel
3.7.1
|
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/slab.h>
Go to the source code of this file.
Data Structures | |
struct | rp5c01_priv |
Macros | |
#define | RP5C01_12_24_SELECT_12 (0 << 0) |
#define | RP5C01_12_24_SELECT_24 (1 << 0) |
#define | RP5C01_10_HOUR_AM (0 << 1) |
#define | RP5C01_10_HOUR_PM (1 << 1) |
#define | RP5C01_MODE_TIMER_EN (1 << 3) /* timer enable */ |
#define | RP5C01_MODE_ALARM_EN (1 << 2) /* alarm enable */ |
#define | RP5C01_MODE_MODE_MASK (3 << 0) |
#define | RP5C01_MODE_MODE00 (0 << 0) /* time */ |
#define | RP5C01_MODE_MODE01 (1 << 0) /* alarm, 12h/24h, leap year */ |
#define | RP5C01_MODE_RAM_BLOCK10 (2 << 0) /* RAM 4 bits x 13 */ |
#define | RP5C01_MODE_RAM_BLOCK11 (3 << 0) /* RAM 4 bits x 13 */ |
#define | RP5C01_RESET_1HZ_PULSE (1 << 3) |
#define | RP5C01_RESET_16HZ_PULSE (1 << 2) |
#define | RP5C01_RESET_SECOND (1 << 1) /* reset divider stages for */ |
#define | RP5C01_RESET_ALARM (1 << 0) /* reset all alarm registers */ |
Enumerations | |
enum | { RP5C01_1_SECOND = 0x0, RP5C01_10_SECOND = 0x1, RP5C01_1_MINUTE = 0x2, RP5C01_10_MINUTE = 0x3, RP5C01_1_HOUR = 0x4, RP5C01_10_HOUR = 0x5, RP5C01_DAY_OF_WEEK = 0x6, RP5C01_1_DAY = 0x7, RP5C01_10_DAY = 0x8, RP5C01_1_MONTH = 0x9, RP5C01_10_MONTH = 0xa, RP5C01_1_YEAR = 0xb, RP5C01_10_YEAR = 0xc, RP5C01_12_24_SELECT = 0xa, RP5C01_LEAP_YEAR = 0xb, RP5C01_MODE = 0xd, RP5C01_TEST = 0xe, RP5C01_RESET = 0xf } |
Functions | |
module_init (rp5c01_rtc_init) | |
module_exit (rp5c01_rtc_fini) | |
MODULE_AUTHOR ("Geert Uytterhoeven <[email protected]>") | |
MODULE_LICENSE ("GPL") | |
MODULE_DESCRIPTION ("Ricoh RP5C01 RTC driver") | |
MODULE_ALIAS ("platform:rtc-rp5c01") | |
#define RP5C01_10_HOUR_AM (0 << 1) |
Definition at line 44 of file rtc-rp5c01.c.
#define RP5C01_10_HOUR_PM (1 << 1) |
Definition at line 45 of file rtc-rp5c01.c.
#define RP5C01_12_24_SELECT_12 (0 << 0) |
Definition at line 41 of file rtc-rp5c01.c.
#define RP5C01_12_24_SELECT_24 (1 << 0) |
Definition at line 42 of file rtc-rp5c01.c.
Definition at line 48 of file rtc-rp5c01.c.
#define RP5C01_MODE_MODE00 (0 << 0) /* time */ |
Definition at line 51 of file rtc-rp5c01.c.
#define RP5C01_MODE_MODE01 (1 << 0) /* alarm, 12h/24h, leap year */ |
Definition at line 52 of file rtc-rp5c01.c.
#define RP5C01_MODE_MODE_MASK (3 << 0) |
Definition at line 50 of file rtc-rp5c01.c.
Definition at line 53 of file rtc-rp5c01.c.
Definition at line 54 of file rtc-rp5c01.c.
Definition at line 47 of file rtc-rp5c01.c.
#define RP5C01_RESET_16HZ_PULSE (1 << 2) |
Definition at line 57 of file rtc-rp5c01.c.
#define RP5C01_RESET_1HZ_PULSE (1 << 3) |
Definition at line 56 of file rtc-rp5c01.c.
Definition at line 60 of file rtc-rp5c01.c.
Definition at line 58 of file rtc-rp5c01.c.
anonymous enum |
Definition at line 18 of file rtc-rp5c01.c.
MODULE_ALIAS | ( | "platform:rtc-rp5c01" | ) |
MODULE_AUTHOR | ( | "Geert Uytterhoeven <[email protected]>" | ) |
module_exit | ( | rp5c01_rtc_fini | ) |
module_init | ( | rp5c01_rtc_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |