Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Software
Commits
7d1b7ade
Commit
7d1b7ade
authored
Mar 06, 2014
by
Alessandro Rubini
Committed by
Federico Vaga
Apr 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: store base addresses in device structure
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
9805701f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
fa-core.c
kernel/fa-core.c
+8
-0
fmc-adc.h
kernel/fmc-adc.h
+12
-0
No files found.
kernel/fa-core.c
View file @
7d1b7ade
...
@@ -291,6 +291,14 @@ int fa_probe(struct fmc_device *fmc)
...
@@ -291,6 +291,14 @@ int fa_probe(struct fmc_device *fmc)
}
}
dev_info
(
fmc
->
hwdev
,
"Gateware successfully loaded
\n
"
);
dev_info
(
fmc
->
hwdev
,
"Gateware successfully loaded
\n
"
);
/* Mark base addresses (will come from sdb, later) */
//fa->fa_irq_vic_base -- not existent yet in this gateware
//fa->fa_adc_csr_base = CHx_GAIN;
//fa->fa_irq_adc_base = ENABLE_MASK;
fa
->
fa_utc_base
=
FA_UTC_MEM_OFF
;
fa
->
fa_spi_base
=
FA_SPI_MEM_OFF
;
fa
->
fa_ow_base
=
FA_OWI_MEM_OFF
;
/* init all subsystems */
/* init all subsystems */
for
(
i
=
0
,
m
=
mods
;
i
<
ARRAY_SIZE
(
mods
);
i
++
,
m
++
)
{
for
(
i
=
0
,
m
=
mods
;
i
<
ARRAY_SIZE
(
mods
);
i
++
,
m
++
)
{
dev_dbg
(
&
fmc
->
dev
,
"Calling init for
\"
%s
\"\n
"
,
m
->
name
);
dev_dbg
(
&
fmc
->
dev
,
"Calling init for
\"
%s
\"\n
"
,
m
->
name
);
...
...
kernel/fmc-adc.h
View file @
7d1b7ade
...
@@ -93,10 +93,22 @@ struct fa_dma_item {
...
@@ -93,10 +93,22 @@ struct fa_dma_item {
* @dma_list_item is a DMA address pointer to the fa_dma_item list
* @dma_list_item is a DMA address pointer to the fa_dma_item list
*/
*/
struct
fa_dev
{
struct
fa_dev
{
/* the pointer to the fmc_device generic structure */
struct
fmc_device
*
fmc
;
struct
fmc_device
*
fmc
;
/* the pointer to the real zio_device in use */
struct
zio_device
*
zdev
;
struct
zio_device
*
zdev
;
/* the pointer to the fake zio_device, used for init/remove */
struct
zio_device
*
hwzdev
;
struct
zio_device
*
hwzdev
;
/* carrier common base offset addresses obtained from SDB */
unsigned
int
fa_adc_csr_base
;
unsigned
int
fa_spi_base
;
unsigned
int
fa_ow_base
;
unsigned
int
fa_carrier_csr_base
;
unsigned
int
fa_irq_vic_base
;
unsigned
int
fa_irq_adc_base
;
unsigned
int
fa_utc_base
;
/* Acquisition */
/* Acquisition */
unsigned
int
n_shots
;
unsigned
int
n_shots
;
unsigned
int
n_fires
;
unsigned
int
n_fires
;
...
...
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