Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
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
Commits
eb8353c6
Commit
eb8353c6
authored
Aug 13, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv:dma: fix attribute field location
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
a1a8d2cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec-gn412x-dma.c
software/kernel/spec-gn412x-dma.c
+3
-3
No files found.
software/kernel/spec-gn412x-dma.c
View file @
eb8353c6
...
@@ -130,8 +130,8 @@ enum gn412x_dma_ctrl_swapping {
...
@@ -130,8 +130,8 @@ enum gn412x_dma_ctrl_swapping {
GN412X_DMA_CTRL_SWAPPING_32
,
GN412X_DMA_CTRL_SWAPPING_32
,
};
};
#define GN412X_DMA_ATTR_DIR_MEM_TO_DEV (1 <<
1
)
#define GN412X_DMA_ATTR_DIR_MEM_TO_DEV (1 <<
0
)
#define GN412X_DMA_ATTR_
MORE (1 << 0
)
#define GN412X_DMA_ATTR_
CHAIN (1 << 1
)
struct
gn412x_dma_tx
;
struct
gn412x_dma_tx
;
/**
/**
...
@@ -405,7 +405,7 @@ static void gn412x_dma_prep(struct gn412x_dma_tx_hw *tx_hw,
...
@@ -405,7 +405,7 @@ static void gn412x_dma_prep(struct gn412x_dma_tx_hw *tx_hw,
tx_hw
->
next_addr_h
=
0x00000000
;
tx_hw
->
next_addr_h
=
0x00000000
;
tx_hw
->
attribute
=
0x0
;
tx_hw
->
attribute
=
0x0
;
if
(
!
sg_is_last
(
sg
))
if
(
!
sg_is_last
(
sg
))
tx_hw
->
attribute
=
GN412X_DMA_ATTR_
MORE
;
tx_hw
->
attribute
=
GN412X_DMA_ATTR_
CHAIN
;
}
}
static
struct
dma_async_tx_descriptor
*
gn412x_dma_prep_slave_sg
(
static
struct
dma_async_tx_descriptor
*
gn412x_dma_prep_slave_sg
(
...
...
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