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
61ff7f09
Commit
61ff7f09
authored
Jul 20, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temporary old versions
parent
11f189d3
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1631 additions
and
0 deletions
+1631
-0
circbuf-jtag.c
src/drivers/elphel/circbuf-jtag.c
+779
-0
circbuf-jtag.h
src/drivers/elphel/circbuf-jtag.h
+45
-0
sensor_common-jtag.c
src/drivers/elphel/sensor_common-jtag.c
+807
-0
No files found.
src/drivers/elphel/circbuf-jtag.c
0 → 100644
View file @
61ff7f09
This diff is collapsed.
Click to expand it.
src/drivers/elphel/circbuf-jtag.h
0 → 100644
View file @
61ff7f09
// FILE NAME : cxsdma.h
// read/write image and FPN buffers from SDRAM
#ifndef _CIRCBUF_H
#define _CIRCBUF_H
#include <linux/poll.h>
int
circbuf_all_open
(
struct
inode
*
inode
,
struct
file
*
filp
);
// set filesize
int
circbuf_all_release
(
struct
inode
*
inode
,
struct
file
*
filp
);
loff_t
circbuf_all_lseek
(
struct
file
*
file
,
loff_t
offset
,
int
orig
);
ssize_t
circbuf_all_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
off
);
ssize_t
circbuf_all_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
off
);
int
circbuf_all_mmap
(
struct
file
*
file
,
struct
vm_area_struct
*
vma
);
unsigned
int
circbuf_all_poll
(
struct
file
*
file
,
poll_table
*
wait
);
//!just to notify it is not implemented
int
circbuf_all_ioctl
(
struct
inode
*
inode
,
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
);
int
circbuf_open
(
struct
inode
*
inode
,
struct
file
*
filp
);
// set filesize
loff_t
circbuf_lseek
(
struct
file
*
file
,
loff_t
offset
,
int
orig
);
ssize_t
circbuf_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
off
);
ssize_t
circbuf_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
off
);
int
circbuf_mmap
(
struct
file
*
file
,
struct
vm_area_struct
*
vma
);
unsigned
int
circbuf_poll
(
struct
file
*
file
,
poll_table
*
wait
);
//int init_ccam_dma_buf_ptr(void);
/*!======================================================================================
*! Wait queue for the processes waiting for a new frame to appear in the circular buffer
*!======================================================================================*/
extern
wait_queue_head_t
circbuf_wait_queue
;
extern
unsigned
long
*
ccam_dma_buf_ptr
;
//unsigned long *circbuf_get_ccam_ptr(void);
// private data
struct
circbuf_priv_t
{
int
minor
;
unsigned
long
*
buf_ptr
;
dma_addr_t
phys_addr
;
};
extern
struct
circbuf_priv_t
*
circbuf_priv_ptr
;
#endif
/* _CIRCBUF_H */
src/drivers/elphel/sensor_common-jtag.c
0 → 100644
View file @
61ff7f09
This diff is collapsed.
Click to expand it.
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