OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-ppc/] [nvram.h] - Blame information for rev 1633

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 * PreP compliant NVRAM access
3
 */
4
 
5
#ifndef _PPC_NVRAM_H
6
#define _PPC_NVRAM_H
7
 
8
#define NVRAM_AS0  0x74
9
#define NVRAM_AS1  0x75
10
#define NVRAM_DATA 0x77
11
 
12
/* RTC Offsets */
13
 
14
#define RTC_SECONDS             0x1FF9
15
#define RTC_MINUTES             0x1FFA
16
#define RTC_HOURS               0x1FFB
17
#define RTC_DAY_OF_WEEK         0x1FFC
18
#define RTC_DAY_OF_MONTH        0x1FFD
19
#define RTC_MONTH               0x1FFE
20
#define RTC_YEAR                0x1FFF
21
 
22
#ifndef BCD_TO_BIN
23
#define BCD_TO_BIN(val) ((val)=((val)&15) + ((val)>>4)*10)
24
#endif
25
 
26
#ifndef BIN_TO_BCD
27
#define BIN_TO_BCD(val) ((val)=(((val)/10)<<4) + (val)%10)
28
#endif
29
 
30
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.