Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FPGA Configuration Space
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
FPGA Configuration Space
Commits
36fa80db
Commit
36fa80db
authored
8 years ago
by
Michael Reese
Committed by
Cesar Prados
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
vme_wb: fix init ADER values
parent
2bea7cb8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
legacy-vme64x-core
+1
-1
1 addition, 1 deletion
legacy-vme64x-core
vme-wb/vme_wb_external.c
+5
-5
5 additions, 5 deletions
vme-wb/vme_wb_external.c
with
6 additions
and
6 deletions
legacy-vme64x-core
@
324a005d
Subproject commit
101fdd4748028a526d082f97835151158ecf16e0
Subproject commit
324a005dd48954ad861516515e50c120ea78762a
This diff is collapsed.
Click to expand it.
vme-wb/vme_wb_external.c
+
5
−
5
View file @
36fa80db
...
...
@@ -342,7 +342,7 @@ void vme_setup_csr_fa0(void *base, u32 wb_vme, unsigned vector, unsigned level)
fa
[
0
]
=
(
wb_add
>>
24
)
&
0xFF
;
fa
[
1
]
=
(
wb_add
>>
16
)
&
0xFF
;
fa
[
2
]
=
(
wb_add
>>
8
)
&
0xFF
;
fa
[
3
]
=
(
VME_A32_USER_
MBL
T
&
0x3F
)
<<
2
;
/* or VME_A32_USER_DATA_SCT */
fa
[
3
]
=
(
VME_A32_USER_
DATA_SC
T
&
0x3F
)
<<
2
;
/* or VME_A32_USER_DATA_SCT */
vme_csr_write
(
fa
[
0
],
base
,
FUN0ADER
);
vme_csr_write
(
fa
[
1
],
base
,
FUN0ADER
+
4
);
...
...
@@ -353,7 +353,7 @@ void vme_setup_csr_fa0(void *base, u32 wb_vme, unsigned vector, unsigned level)
fa
[
0
]
=
(
wb_ctrl_add
>>
24
)
&
0xFF
;
fa
[
1
]
=
(
wb_ctrl_add
>>
16
)
&
0xFF
;
fa
[
2
]
=
(
wb_ctrl_add
>>
8
)
&
0xFF
;
fa
[
3
]
=
(
VME_A24_USER_
MBL
T
&
0x3F
)
<<
2
;
/* or VME_A24_USER_DATA_SCT */
fa
[
3
]
=
(
VME_A24_USER_
DATA_SC
T
&
0x3F
)
<<
2
;
/* or VME_A24_USER_DATA_SCT */
vme_csr_write
(
fa
[
0
],
base
,
FUN1ADER
);
vme_csr_write
(
fa
[
1
],
base
,
FUN1ADER
+
4
);
...
...
@@ -372,7 +372,7 @@ static int vme_remove(struct device *pdev, unsigned int ndev)
vme_unmap_window
(
dev
,
MAP_REG
);
vme_unmap_window
(
dev
,
MAP_CTRL
);
wishbone_unregister
(
&
dev
->
wb
);
vme_free_irq
(
vector
_num
);
vme_free_irq
(
dev
->
vme_res
.
vector
);
kfree
(
dev
);
dev_info
(
pdev
,
"removed
\n
"
);
...
...
@@ -485,7 +485,7 @@ static int vme_probe(struct device *pdev, unsigned int ndev)
}
/* register interrupt handler */
if
(
vme_request_irq
(
vector
_num
,
irq_handler
,
dev
,
"wb_irq"
)
!=
0
)
{
if
(
vme_request_irq
(
dev
->
vme_res
.
vector
,
irq_handler
,
dev
,
"wb_irq"
)
!=
0
)
{
printk
(
KERN_ALERT
VME_WB
": could not register interrupt handler
\n
"
);
goto
fail_irq
;
...
...
@@ -496,7 +496,7 @@ static int vme_probe(struct device *pdev, unsigned int ndev)
return
0
;
fail_irq:
{
vme_free_irq
(
vector
_num
);
vme_free_irq
(
dev
->
vme_res
.
vector
);
vme_unmap_window
(
dev
,
MAP_REG
);
vme_unmap_window
(
dev
,
MAP_CR_CSR
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment