Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/rtc.h>
#include <linux/i2c.h>
#include <linux/bitrev.h>
#include <linux/bcd.h>
#include <linux/slab.h>
Go to the source code of this file.
Data Structures | |
struct | s35390a |
Macros | |
#define | S35390A_CMD_STATUS1 0 |
#define | S35390A_CMD_STATUS2 1 |
#define | S35390A_CMD_TIME1 2 |
#define | S35390A_CMD_TIME2 3 |
#define | S35390A_CMD_INT2_REG1 5 |
#define | S35390A_BYTE_YEAR 0 |
#define | S35390A_BYTE_MONTH 1 |
#define | S35390A_BYTE_DAY 2 |
#define | S35390A_BYTE_WDAY 3 |
#define | S35390A_BYTE_HOURS 4 |
#define | S35390A_BYTE_MINS 5 |
#define | S35390A_BYTE_SECS 6 |
#define | S35390A_ALRM_BYTE_WDAY 0 |
#define | S35390A_ALRM_BYTE_HOURS 1 |
#define | S35390A_ALRM_BYTE_MINS 2 |
#define | S35390A_FLAG_POC 0x01 |
#define | S35390A_FLAG_BLD 0x02 |
#define | S35390A_FLAG_24H 0x40 |
#define | S35390A_FLAG_RESET 0x80 |
#define | S35390A_FLAG_TEST 0x01 |
#define | S35390A_INT2_MODE_MASK 0xF0 |
#define | S35390A_INT2_MODE_NOINTR 0x00 |
#define | S35390A_INT2_MODE_FREQ 0x10 |
#define | S35390A_INT2_MODE_ALARM 0x40 |
#define | S35390A_INT2_MODE_PMIN_EDG 0x20 |
Functions | |
MODULE_DEVICE_TABLE (i2c, s35390a_id) | |
module_i2c_driver (s35390a_driver) | |
MODULE_AUTHOR ("Byron Bradley <[email protected]>") | |
MODULE_DESCRIPTION ("S35390A RTC driver") | |
MODULE_LICENSE ("GPL") | |
#define S35390A_ALRM_BYTE_HOURS 1 |
Definition at line 34 of file rtc-s35390a.c.
#define S35390A_ALRM_BYTE_MINS 2 |
Definition at line 35 of file rtc-s35390a.c.
#define S35390A_ALRM_BYTE_WDAY 0 |
Definition at line 33 of file rtc-s35390a.c.
#define S35390A_BYTE_DAY 2 |
Definition at line 27 of file rtc-s35390a.c.
#define S35390A_BYTE_HOURS 4 |
Definition at line 29 of file rtc-s35390a.c.
#define S35390A_BYTE_MINS 5 |
Definition at line 30 of file rtc-s35390a.c.
#define S35390A_BYTE_MONTH 1 |
Definition at line 26 of file rtc-s35390a.c.
#define S35390A_BYTE_SECS 6 |
Definition at line 31 of file rtc-s35390a.c.
#define S35390A_BYTE_WDAY 3 |
Definition at line 28 of file rtc-s35390a.c.
#define S35390A_BYTE_YEAR 0 |
Definition at line 25 of file rtc-s35390a.c.
#define S35390A_CMD_INT2_REG1 5 |
Definition at line 23 of file rtc-s35390a.c.
#define S35390A_CMD_STATUS1 0 |
Definition at line 19 of file rtc-s35390a.c.
#define S35390A_CMD_STATUS2 1 |
Definition at line 20 of file rtc-s35390a.c.
#define S35390A_CMD_TIME1 2 |
Definition at line 21 of file rtc-s35390a.c.
#define S35390A_CMD_TIME2 3 |
Definition at line 22 of file rtc-s35390a.c.
#define S35390A_FLAG_24H 0x40 |
Definition at line 39 of file rtc-s35390a.c.
#define S35390A_FLAG_BLD 0x02 |
Definition at line 38 of file rtc-s35390a.c.
#define S35390A_FLAG_POC 0x01 |
Definition at line 37 of file rtc-s35390a.c.
#define S35390A_FLAG_RESET 0x80 |
Definition at line 40 of file rtc-s35390a.c.
#define S35390A_FLAG_TEST 0x01 |
Definition at line 41 of file rtc-s35390a.c.
#define S35390A_INT2_MODE_ALARM 0x40 |
Definition at line 47 of file rtc-s35390a.c.
#define S35390A_INT2_MODE_FREQ 0x10 |
Definition at line 46 of file rtc-s35390a.c.
#define S35390A_INT2_MODE_MASK 0xF0 |
Definition at line 43 of file rtc-s35390a.c.
#define S35390A_INT2_MODE_NOINTR 0x00 |
Definition at line 45 of file rtc-s35390a.c.
#define S35390A_INT2_MODE_PMIN_EDG 0x20 |
Definition at line 48 of file rtc-s35390a.c.
MODULE_AUTHOR | ( | "Byron Bradley <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | i2c | , |
s35390a_id | |||
) |
module_i2c_driver | ( | s35390a_driver | ) |
MODULE_LICENSE | ( | "GPL" | ) |