Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4fddcaeb
Commit
4fddcaeb
authored
Jul 05, 2011
by
Nicolas Pitre
Committed by
Nicolas Pitre
Jul 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: add dma_zone_size to the machine_desc structure
Signed-off-by:
Nicolas Pitre
<
nicolas.pitre@linaro.org
>
parent
65032018
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
arch/arm/include/asm/mach/arch.h
arch/arm/include/asm/mach/arch.h
+4
-0
arch/arm/kernel/setup.c
arch/arm/kernel/setup.c
+6
-0
No files found.
arch/arm/include/asm/mach/arch.h
View file @
4fddcaeb
...
...
@@ -23,6 +23,10 @@ struct machine_desc {
unsigned
int
nr_irqs
;
/* number of IRQs */
#ifdef CONFIG_ZONE_DMA
unsigned
long
dma_zone_size
;
/* size of DMA-able area */
#endif
unsigned
int
video_start
;
/* start of video RAM */
unsigned
int
video_end
;
/* end of video RAM */
...
...
arch/arm/kernel/setup.c
View file @
4fddcaeb
...
...
@@ -916,6 +916,12 @@ void __init setup_arch(char **cmdline_p)
cpu_init
();
tcm_init
();
#ifdef CONFIG_ZONE_DMA
if
(
mdesc
->
dma_zone_size
)
{
extern
unsigned
long
arm_dma_zone_size
;
arm_dma_zone_size
=
mdesc
->
dma_zone_size
;
}
#endif
#ifdef CONFIG_MULTI_IRQ_HANDLER
handle_arch_irq
=
mdesc
->
handle_irq
;
#endif
...
...
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