Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
FMC DEL 1ns 4cha - Software
Commits
d12c4247
Commit
d12c4247
authored
Jun 22, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compat: badly hack a div64 fix for 2.6.24
parent
fbf2007c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
acam.c
acam.c
+1
-1
calibrate.c
calibrate.c
+1
-1
fine-delay.h
fine-delay.h
+10
-0
No files found.
acam.c
View file @
d12c4247
...
...
@@ -14,7 +14,7 @@
#include <linux/jiffies.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/math64.h>
//
#include <linux/math64.h>
#include <linux/moduleparam.h>
#include "fine-delay.h"
#include "hw/fd_main_regs.h"
...
...
calibrate.c
View file @
d12c4247
...
...
@@ -15,7 +15,7 @@
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/math64.h>
//
#include <linux/math64.h>
#include "fine-delay.h"
#include "hw/fd_main_regs.h"
#include "hw/acam_gpx.h"
...
...
fine-delay.h
View file @
d12c4247
...
...
@@ -99,7 +99,17 @@ enum fd_output_mode {
#ifdef __KERNEL__
/* All the rest is only of kernel users */
#include <linux/spinlock.h>
#include <linux/timer.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
#include <linux/math64.h>
#else
/* Hack to compile under 2.6.24: this comes from 2418f4f2 (Roman Zippel) */
static
inline
u64
div_u64_rem
(
u64
dividend
,
u32
divisor
,
u32
*
remainder
)
{
*
remainder
=
do_div
(
dividend
,
divisor
);
return
dividend
;
}
#endif
struct
fd_calib
{
int64_t
frr_poly
[
3
];
/* SY89295 delay/temp poly coeffs */
...
...
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