Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC - Software
Commits
884cf30a
Commit
884cf30a
authored
Sep 14, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr-nic-dio: use GET_HI32/SET_HI32
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
a6765644
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
wr-nic-dio.c
kernel/wr-nic-dio.c
+4
-5
No files found.
kernel/wr-nic-dio.c
View file @
884cf30a
...
...
@@ -55,8 +55,7 @@ static int wrn_dio_cmd_out(struct wrn_drvdata *drvdata,
if
(
h2
!=
h1
)
l
=
readl
(
&
ppsg
->
CNTR_UTCLO
);
now
=
l
;
if
(
sizeof
(
now
)
>
4
)
now
|=
h2
<<
32
;
SET_HI32
(
now
,
h2
);
ts
->
tv_sec
+=
now
;
printk
(
"relative: %li -> %li
\n
"
,
now
,
ts
->
tv_sec
);
}
...
...
@@ -66,11 +65,11 @@ static int wrn_dio_cmd_out(struct wrn_drvdata *drvdata,
/* not now: set relevant registers */
p
=
&
dio
->
TRIG0
;
p
+=
(
cmd
->
channel
*
12
);
printk
(
"%i -> %p
\n
"
,
GET_HI32
(
ts
->
tv_sec
),
p
+
4
);
writel
(
GET_HI32
(
ts
->
tv_sec
),
p
+
4
);
printk
(
"%li -> %p
\n
"
,
ts
->
tv_sec
,
p
);
writel
(
ts
->
tv_sec
,
p
);
if
(
sizeof
(
ts
->
tv_sec
)
>
4
)
writel
(
ts
->
tv_sec
>>
32
,
p
+
4
);
printk
(
"%li -> %p
\n
"
,
ts
->
tv_nsec
,
p
+
8
);
printk
(
"%li -> %p
\n
"
,
ts
->
tv_nsec
/
8
,
p
+
8
);
writel
(
ts
->
tv_nsec
/
8
,
p
+
8
);
}
...
...
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