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
60193b39
Commit
60193b39
authored
Aug 22, 2016
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: use only internal IO functions
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
f7ada4d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
fine-delay.h
kernel/fine-delay.h
+13
-2
onewire.c
kernel/onewire.c
+3
-2
No files found.
kernel/fine-delay.h
View file @
60193b39
...
...
@@ -230,13 +230,24 @@ static inline void fd_split_pico(uint64_t pico,
*
frac
=
(
*
frac
<<
12
)
/
8000
;
}
static
inline
u32
ft_ioread
(
struct
fmctdc_dev
*
ft
,
void
*
addr
)
{
return
fmc_readl
(
fd
->
fmc
,
addr
);
}
static
inline
void
ft_iowrite
(
struct
fmctdc_dev
*
ft
,
u32
value
,
void
*
addr
)
{
fmc_writel
(
fd
->
fmc
,
value
,
addr
);
}
static
inline
uint32_t
fd_readl
(
struct
fd_dev
*
fd
,
unsigned
long
reg
)
{
return
f
mc_readl
(
fd
->
fmc
,
fd
->
fd_regs_base
+
reg
);
return
f
t_ioread
(
fd
,
fd
->
fd_regs_base
+
reg
);
}
static
inline
void
fd_writel
(
struct
fd_dev
*
fd
,
uint32_t
v
,
unsigned
long
reg
)
{
f
mc_writel
(
fd
->
fmc
,
v
,
fd
->
fd_regs_base
+
reg
);
f
t_iowrite
(
fd
,
v
,
fd
->
fd_regs_base
+
reg
);
}
static
inline
void
__check_chan
(
int
x
)
...
...
kernel/onewire.c
View file @
60193b39
/*
* Access to 1w thermometer
*
...
...
@@ -56,12 +57,12 @@
static
void
ow_writel
(
struct
fd_dev
*
fd
,
uint32_t
val
,
unsigned
long
reg
)
{
f
mc_writel
(
fd
->
fmc
,
val
,
fd
->
fd_owregs_base
+
reg
);
f
t_iowrite
(
fd
,
val
,
fd
->
fd_owregs_base
+
reg
);
}
static
uint32_t
ow_readl
(
struct
fd_dev
*
fd
,
unsigned
long
reg
)
{
return
f
mc_readl
(
fd
->
fmc
,
fd
->
fd_owregs_base
+
reg
);
return
f
t_ioread
(
fd
,
fd
->
fd_owregs_base
+
reg
);
}
static
int
ow_reset
(
struct
fd_dev
*
fd
,
int
port
)
...
...
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