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
01956c03
Commit
01956c03
authored
Aug 02, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on logger driver
parent
d5584335
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
478 additions
and
268 deletions
+478
-268
elphel393-mem.c
src/drivers/elphel/elphel393-mem.c
+6
-6
imu_log393.c
src/drivers/elphel/imu_log393.c
+327
-108
imu_log393.h
src/drivers/elphel/imu_log393.h
+4
-3
sensor_common.c
src/drivers/elphel/sensor_common.c
+136
-147
c313a.h
src/include/elphel/c313a.h
+2
-1
driver_numbers.h
src/include/elphel/driver_numbers.h
+3
-3
No files found.
src/drivers/elphel/elphel393-mem.c
View file @
01956c03
...
...
@@ -69,7 +69,7 @@ static struct elphel_buf_t _elphel_buf = {
// Device to host stream DMA buffer for the logger
.
logger_vaddr
=
NULL
,
.
logger_paddr
=
0
,
.
logger_size
=
1024
.
logger_size
=
1024
// should be 2**n !
};
...
...
@@ -523,23 +523,23 @@ static int elphel393_mem_probe(struct platform_device *pdev)
printk
(
"H2D stream buffer vaddr: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
h2d_vaddr
);
printk
(
"H2D stream buffer paddr: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
h2d_paddr
);
printk
(
"H2D stream buffer length: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
h2d_size
*
PAGE_SIZE
);
printk
(
"H2D stream buffer length: 0x%08
l
X
\n
"
,(
u32
)
pElphel_buf
->
h2d_size
*
PAGE_SIZE
);
printk
(
"D2H stream buffer vaddr: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
d2h_vaddr
);
printk
(
"D2H stream buffer paddr: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
d2h_paddr
);
printk
(
"D2H stream buffer length: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
d2h_size
*
PAGE_SIZE
);
printk
(
"D2H stream buffer length: 0x%08
l
X
\n
"
,(
u32
)
pElphel_buf
->
d2h_size
*
PAGE_SIZE
);
printk
(
"Bidirectional stream buffer vaddr: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
bidir_vaddr
);
printk
(
"Bidirectional stream buffer paddr: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
bidir_paddr
);
printk
(
"Bidirectional stream buffer length: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
bidir_size
*
PAGE_SIZE
);
printk
(
"Bidirectional stream buffer length: 0x%08
l
X
\n
"
,(
u32
)
pElphel_buf
->
bidir_size
*
PAGE_SIZE
);
printk
(
"HISTOGRAMS stream buffer vaddr: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
histograms_vaddr
);
printk
(
"HISTOGRAMS stream buffer paddr: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
histograms_paddr
);
printk
(
"HISTOGRAMS stream buffer length: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
histograms_size
*
PAGE_SIZE
);
printk
(
"HISTOGRAMS stream buffer length: 0x%08
l
X
\n
"
,(
u32
)
pElphel_buf
->
histograms_size
*
PAGE_SIZE
);
printk
(
"LOGGER stream buffer vaddr: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
logger_vaddr
);
printk
(
"LOGGER stream buffer paddr: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
logger_paddr
);
printk
(
"LOGGER stream buffer length: 0x%08X
\n
"
,(
u32
)
pElphel_buf
->
logger_size
*
PAGE_SIZE
);
printk
(
"LOGGER stream buffer length: 0x%08
l
X
\n
"
,(
u32
)
pElphel_buf
->
logger_size
*
PAGE_SIZE
);
return
0
;
}
...
...
src/drivers/elphel/imu_log393.c
View file @
01956c03
This diff is collapsed.
Click to expand it.
src/drivers/elphel/imu_log393.h
View file @
01956c03
...
...
@@ -17,7 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
void
x313_dma1
_start
(
void
);
int
x313_dma1
_stop
(
void
);
int
x313_is_dma1
_on
(
void
);
void
logger_dma
_start
(
void
);
int
logger_dma
_stop
(
void
);
int
logger_is_dma
_on
(
void
);
unsigned
long
x313_dma1_init
(
void
);
void
logger_irq_cmd
(
int
cmd
);
src/drivers/elphel/sensor_common.c
View file @
01956c03
This diff is collapsed.
Click to expand it.
src/include/elphel/c313a.h
View file @
01956c03
...
...
@@ -1552,11 +1552,12 @@ struct p_names_t {
* CCAM_MMAP_SIZE -- no. of bytes to mmap.
*/
// CCAM_DMA1_SIZE should be 2^N
#ifdef NC353
#define CCAM_CHUNK_PER_DMA1BUF 16
/* no. of 64Kbyte chunks per buffer */
#define CCAM_WORDS_PER_DMA1BUF (CCAM_CHUNK_PER_DMA1BUF<<14)
/*32bit words...*/
#define CCAM_BYTES_PER_DMA1BUF (CCAM_CHUNK_PER_DMA1BUF<<16)
#define CCAM_DMA1_SIZE CCAM_WORDS_PER_DMA1BUF
#endif
#define CCAM_MMAP_OFFSET_MMAP_HEADER 0
...
...
src/include/elphel/driver_numbers.h
View file @
01956c03
...
...
@@ -17,12 +17,12 @@
//#define IMAGERAW_MAJOR 139
#define IMAGERAW_MAJOR 131
#define IMAGEACQ_MAJOR 140
#define
IMU_MAJOR
141
#define
LOGGER_MAJOR
141
/// MINORS
#define
IMU
_MINOR 1
#define
IMU
_CTL_MINOR 2
#define
LOGGER
_MINOR 1
#define
LOGGER
_CTL_MINOR 2
#define IMAGERAW_MINOR_FRAME 1
#define IMAGERAW_MINOR_FPN 2
#define IMAGERAW_MINOR_UNLOCK 3
...
...
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