Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
d5584335
Commit
d5584335
authored
Jul 31, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added more mrmory regions from CMA
parent
ebeecb50
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
246 additions
and
123 deletions
+246
-123
elphel393-mem.c
src/drivers/elphel/elphel393-mem.c
+182
-61
histograms.c
src/drivers/elphel/histograms.c
+2
-2
imu_log393.c
src/drivers/elphel/imu_log393.c
+51
-60
elphel393-mem.h
src/include/elphel/elphel393-mem.h
+11
-0
No files found.
src/drivers/elphel/elphel393-mem.c
View file @
d5584335
This diff is collapsed.
Click to expand it.
src/drivers/elphel/histograms.c
View file @
d5584335
...
...
@@ -199,8 +199,8 @@ int histograms_init_hardware(void)
int
port
,
chn
;
x393_hist_saxi_addr_t
saxi_addr
;
// fpga_hist_data = (u32 [SENSOR_PORTS][MAX_SENSORS][PARS_FRAMES][4][256]) pElphel_buf->d2h_vaddr; // must be page-aligned!
fpga_hist_data
=
(
u32
*
)
pElphel_buf
->
d2h_vaddr
;
// must be page-aligned!
fpga_hist_phys
=
pElphel_buf
->
d2h_paddr
;
fpga_hist_data
=
(
u32
*
)
pElphel_buf
->
histograms_vaddr
;
//
d2h_vaddr; // must be page-aligned!
fpga_hist_phys
=
pElphel_buf
->
histograms_paddr
;
//
d2h_paddr;
for
(
port
=
0
;
port
<
SENSOR_PORTS
;
port
++
)
for
(
chn
=
0
;
chn
<
MAX_SENSORS
;
chn
++
)
{
saxi_addr
.
page
=
(
fpga_hist_phys
>>
PAGE_SHIFT
)
+
PARS_FRAMES
*
(
chn
+
MAX_SENSORS
*
port
);
// table for 4 colors is exactly 1 page;
set_x393_hist_saxi_addr
(
saxi_addr
,
chn
);
// Histogram DMA addresses (in 4096 byte pages)
...
...
src/drivers/elphel/imu_log393.c
View file @
d5584335
This diff is collapsed.
Click to expand it.
src/include/elphel/elphel393-mem.h
View file @
d5584335
...
...
@@ -38,6 +38,17 @@ struct elphel_buf_t
void
*
bidir_vaddr
;
dma_addr_t
bidir_paddr
;
ssize_t
bidir_size
;
// Device to host stream DMA buffer for histograms
void
*
histograms_vaddr
;
dma_addr_t
histograms_paddr
;
ssize_t
histograms_size
;
// Device to host stream DMA buffer for the logger
void
*
logger_vaddr
;
dma_addr_t
logger_paddr
;
ssize_t
logger_size
;
};
extern
struct
elphel_buf_t
*
pElphel_buf
;
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