Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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 ADC 100M 14b 4cha - Software
Commits
e5c2291e
Commit
e5c2291e
authored
Jul 23, 2012
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmc-adc.h: add functions to split 64bit address and UTC core enum
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
fb8fb72a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
fmc-adc.h
fmc-adc.h
+16
-0
No files found.
fmc-adc.h
View file @
e5c2291e
...
...
@@ -11,6 +11,7 @@
/* ADC register offset */
#define FA_DMA_MEM_OFF 0x00000
#define FA_UTC_MEM_OFF 0x40000
#define FA_IRQ_MEM_OFF 0x50000
#define FA_ADC_MEM_OFF 0x90000
...
...
@@ -18,6 +19,7 @@ struct spec_fa {
struct
spec_dev
*
spec
;
struct
zio_device
*
hwzdev
;
struct
sg_table
sgt
;
/* scatter/gather table */
unsigned
char
__iomem
*
base
;
/* regs files are byte-oriented */
};
...
...
@@ -137,6 +139,20 @@ enum zfat_irq {
#include <linux/zio.h>
#include <linux/zio-trigger.h>
#include <linux/dma-mapping.h>
#include <linux/scatterlist.h>
static
inline
uint32_t
sg_dma_address_l
(
struct
scatterlist
*
sg
)
{
return
((
uint32_t
)
(
sg_dma_address
(
sg
)
&
0xFFFFFFFF
));
}
static
inline
uint32_t
sg_dma_address_h
(
struct
scatterlist
*
sg
)
{
return
((
uint32_t
)
(
32
>>
(
sg_dma_address
(
sg
)
&
(
~
0xFFFFFFFF
))));
}
static
inline
struct
spec_fa
*
get_zfadc
(
struct
device
*
dev
)
{
switch
(
to_zio_head
(
dev
)
->
zobj_type
)
{
...
...
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