Linux Kernel
3.7.1
|
#include <linux/bcd.h>
#include <linux/types.h>
#include <linux/time.h>
#include <asm/time.h>
#include <asm/addrspace.h>
#include <asm/io.h>
#include <asm/sibyte/sb1250.h>
#include <asm/sibyte/sb1250_regs.h>
#include <asm/sibyte/sb1250_smbus.h>
Go to the source code of this file.
Macros | |
#define | X1241REG_SR_BAT 0x80 /* currently on battery power */ |
#define | X1241REG_SR_RWEL 0x04 /* r/w latch is enabled, can write RTC */ |
#define | X1241REG_SR_WEL 0x02 /* r/w latch is unlocked, can enable r/w now */ |
#define | X1241REG_SR_RTCF 0x01 /* clock failed */ |
#define | X1241REG_BL_BP2 0x80 /* block protect 2 */ |
#define | X1241REG_BL_BP1 0x40 /* block protect 1 */ |
#define | X1241REG_BL_BP0 0x20 /* block protect 0 */ |
#define | X1241REG_BL_WD1 0x10 |
#define | X1241REG_BL_WD0 0x08 |
#define | X1241REG_HR_MIL 0x80 /* military time format */ |
#define | X1241REG_BL 0x10 /* block protect bits */ |
#define | X1241REG_INT 0x11 /* */ |
#define | X1241REG_SC 0x30 /* Seconds */ |
#define | X1241REG_MN 0x31 /* Minutes */ |
#define | X1241REG_HR 0x32 /* Hours */ |
#define | X1241REG_DT 0x33 /* Day of month */ |
#define | X1241REG_MO 0x34 /* Month */ |
#define | X1241REG_YR 0x35 /* Year */ |
#define | X1241REG_DW 0x36 /* Day of Week */ |
#define | X1241REG_Y2K 0x37 /* Year 2K */ |
#define | X1241REG_SR 0x3F /* Status register */ |
#define | X1241_CCR_ADDRESS 0x6F |
#define | SMB_CSR(reg) IOADDR(A_SMB_REGISTER(1, reg)) |
Functions | |
int | xicor_set_time (unsigned long t) |
unsigned long | xicor_get_time (void) |
int | xicor_probe (void) |
#define SMB_CSR | ( | reg | ) | IOADDR(A_SMB_REGISTER(1, reg)) |
Definition at line 60 of file rtc_xicor1241.c.
#define X1241_CCR_ADDRESS 0x6F |
Definition at line 58 of file rtc_xicor1241.c.
#define X1241REG_BL 0x10 /* block protect bits */ |
Definition at line 46 of file rtc_xicor1241.c.
#define X1241REG_BL_BP0 0x20 /* block protect 0 */ |
Definition at line 37 of file rtc_xicor1241.c.
#define X1241REG_BL_BP1 0x40 /* block protect 1 */ |
Definition at line 36 of file rtc_xicor1241.c.
#define X1241REG_BL_BP2 0x80 /* block protect 2 */ |
Definition at line 35 of file rtc_xicor1241.c.
#define X1241REG_BL_WD0 0x08 |
Definition at line 39 of file rtc_xicor1241.c.
#define X1241REG_BL_WD1 0x10 |
Definition at line 38 of file rtc_xicor1241.c.
#define X1241REG_DT 0x33 /* Day of month */ |
Definition at line 51 of file rtc_xicor1241.c.
#define X1241REG_DW 0x36 /* Day of Week */ |
Definition at line 54 of file rtc_xicor1241.c.
#define X1241REG_HR 0x32 /* Hours */ |
Definition at line 50 of file rtc_xicor1241.c.
#define X1241REG_HR_MIL 0x80 /* military time format */ |
Definition at line 40 of file rtc_xicor1241.c.
#define X1241REG_INT 0x11 /* */ |
Definition at line 47 of file rtc_xicor1241.c.
#define X1241REG_MN 0x31 /* Minutes */ |
Definition at line 49 of file rtc_xicor1241.c.
#define X1241REG_MO 0x34 /* Month */ |
Definition at line 52 of file rtc_xicor1241.c.
#define X1241REG_SC 0x30 /* Seconds */ |
Definition at line 48 of file rtc_xicor1241.c.
#define X1241REG_SR 0x3F /* Status register */ |
Definition at line 56 of file rtc_xicor1241.c.
#define X1241REG_SR_BAT 0x80 /* currently on battery power */ |
Definition at line 31 of file rtc_xicor1241.c.
#define X1241REG_SR_RTCF 0x01 /* clock failed */ |
Definition at line 34 of file rtc_xicor1241.c.
#define X1241REG_SR_RWEL 0x04 /* r/w latch is enabled, can write RTC */ |
Definition at line 32 of file rtc_xicor1241.c.
#define X1241REG_SR_WEL 0x02 /* r/w latch is unlocked, can enable r/w now */ |
Definition at line 33 of file rtc_xicor1241.c.
#define X1241REG_Y2K 0x37 /* Year 2K */ |
Definition at line 55 of file rtc_xicor1241.c.
#define X1241REG_YR 0x35 /* Year */ |
Definition at line 53 of file rtc_xicor1241.c.
Definition at line 171 of file rtc_xicor1241.c.
Definition at line 207 of file rtc_xicor1241.c.
Definition at line 112 of file rtc_xicor1241.c.