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
7dbb2bc0
Commit
7dbb2bc0
authored
Mar 23, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make modules compile as three .ko objects, fix license
parent
6afee618
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
Makefile
src/drivers/elphel/Makefile
+4
-2
circbuf.c
src/drivers/elphel/circbuf.c
+1
-0
jpeghead.c
src/drivers/elphel/jpeghead.c
+2
-0
quantization_tables.c
src/drivers/elphel/quantization_tables.c
+2
-1
No files found.
src/drivers/elphel/Makefile
View file @
7dbb2bc0
...
...
@@ -12,7 +12,9 @@ obj-$(CONFIG_ELPHEL393_INIT) += elphel393-init.o
#obj-$(CONFIG_ELPHEL393) += quantization_tables.o
#obj-$(CONFIG_ELPHEL393) += circbuf.o jpeghead.o
framepars-objs
:=
sensor_common.o
sensor_common-objs
:=
quantization_tables.o
circbuf-objs
:=
jpeghead.o
obj-$(CONFIG_ELPHEL393_EXTERNAL)
+=
framepars.o
obj-$(CONFIG_ELPHEL393_EXTERNAL)
+=
sensor_common.o
obj-$(CONFIG_ELPHEL393_EXTERNAL)
+=
quantization_tables.o
obj-$(CONFIG_ELPHEL393_EXTERNAL)
+=
circbuf.o
jpeghead.o
\ No newline at end of file
obj-$(CONFIG_ELPHEL393_EXTERNAL)
+=
circbuf.o
\ No newline at end of file
src/drivers/elphel/circbuf.c
View file @
7dbb2bc0
...
...
@@ -683,6 +683,7 @@ unsigned int circbuf_poll (struct file *file, poll_table *wait) {
static
int
__init
circbuf_all_init
(
void
)
{
int
res
;
printk
(
KERN_DEBUG
"Loading %s"
,
__func__
);
MDF19
(
printk
(
"
\n
"
));
res
=
register_chrdev
(
CIRCBUF_MAJOR
,
"circbuf_operations"
,
&
circbuf_fops
);
if
(
res
<
0
)
{
...
...
src/drivers/elphel/jpeghead.c
View file @
7dbb2bc0
...
...
@@ -766,3 +766,5 @@ int jpeg_prep_htable (struct huffman_encoded_t * htable, struct huffman_fpga_cod
return
0
;
}
MODULE_LICENSE
(
"GPL"
);
src/drivers/elphel/quantization_tables.c
View file @
7dbb2bc0
...
...
@@ -198,7 +198,6 @@ void reset_qtables(void) {
qtable_cache_initialized
=
0
;
qtable_fpga_initialized
=
0
;
}
EXPORT_SYMBOL_GPL
(
reset_qtables
);
/**
...
...
@@ -955,3 +954,5 @@ void set_coring_fpga(int coring_number, int fpga_number) {
#endif
/* TEST_DISABLE_CODE */
MDF15
(
int
i
;
for
(
i
=
0
;
i
<
32
;
i
++
)
{
if
((
i
&
7
)
==
0
)
printk
(
"
\n
"
);
printk
(
" %08x"
,(
int
)
coring_tables
[
coring_number
*
CORING_SIZE
+
i
]);}
printk
(
"
\n
"
));
}
MODULE_LICENSE
(
"GPL"
);
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