Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b84cea0b
Commit
b84cea0b
authored
Mar 24, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Fix asm/rtc.h so drivers/char/genrtc.c compiles.
parent
e22059fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/asm-ppc/rtc.h
include/asm-ppc/rtc.h
+3
-3
No files found.
include/asm-ppc/rtc.h
View file @
b84cea0b
...
...
@@ -35,15 +35,14 @@
#define RTC_AIE 0x20
/* alarm interrupt enable */
#define RTC_UIE 0x10
/* update-finished interrupt enable */
extern
void
gen_rtc_interrupt
(
unsigned
long
);
/* some dummy definitions */
#define RTC_BATT_BAD 0x100
/* battery bad */
#define RTC_SQWE 0x08
/* enable square-wave output */
#define RTC_DM_BINARY 0x04
/* all time/date values are BCD if clear */
#define RTC_24H 0x02
/* 24 hour mode - else hours bit 7 means pm */
#define RTC_DST_EN 0x01
/* auto switch DST - works f. USA only */
static
inline
void
get_rtc_time
(
struct
rtc_time
*
time
)
static
inline
unsigned
int
get_rtc_time
(
struct
rtc_time
*
time
)
{
if
(
ppc_md
.
get_rtc_time
)
{
unsigned
long
nowtime
;
...
...
@@ -55,6 +54,7 @@ static inline void get_rtc_time(struct rtc_time *time)
time
->
tm_year
-=
1900
;
time
->
tm_mon
-=
1
;
/* Make sure userland has a 0-based month */
}
return
RTC_24H
;
}
/* Set the current date and time in the real time clock. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment