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
04b6f91f
Commit
04b6f91f
authored
Jan 10, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
started implementing lseek
parent
b844e2fa
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
150 additions
and
99 deletions
+150
-99
x393_videomem.c
src/drivers/elphel/x393_videomem.c
+145
-99
x393_videomem.h
src/drivers/elphel/x393_videomem.h
+2
-0
c313a.h
src/include/uapi/elphel/c313a.h
+3
-0
No files found.
src/drivers/elphel/x393_videomem.c
View file @
04b6f91f
This diff is collapsed.
Click to expand it.
src/drivers/elphel/x393_videomem.h
View file @
04b6f91f
...
@@ -38,3 +38,5 @@ int frames_in_buffer_minus_one (int num_sensor);
...
@@ -38,3 +38,5 @@ int frames_in_buffer_minus_one (int num_sensor);
void
memchan_enable
(
int
chn
,
int
enable
);
void
memchan_enable
(
int
chn
,
int
enable
);
void
set_memchannel_priority
(
int
chn
,
u16
priority
);
void
set_memchannel_priority
(
int
chn
,
u16
priority
);
u16
get_memchannel_priority
(
int
chn
);
u16
get_memchannel_priority
(
int
chn
);
loff_t
videomem_lseek
(
struct
file
*
file
,
loff_t
offset
,
int
orig
);
src/include/uapi/elphel/c313a.h
View file @
04b6f91f
...
@@ -1552,6 +1552,9 @@ struct p_names_t {
...
@@ -1552,6 +1552,9 @@ struct p_names_t {
#define LSEEK_FSDRAM_RESET 0x01 // re-program FSDRAM (to be programmed again when accessed)
#define LSEEK_FSDRAM_RESET 0x01 // re-program FSDRAM (to be programmed again when accessed)
// Videomem/raw image commands
#define LSEEK_VIDEOMEM_START 0x10 // setup and start membridge transfer
#define JPEG_CTRL_MONOCHROME 0x400
#define JPEG_CTRL_MONOCHROME 0x400
#define JPEG_CTRL_MONOCHROME_BLOCKED 0x1000
#define JPEG_CTRL_MONOCHROME_BLOCKED 0x1000
#define JPEG_CTRL_NOMOSAIC 0x1000
#define JPEG_CTRL_NOMOSAIC 0x1000
...
...
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