Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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 TDC 1ns 5cha - Software
Commits
05ddc0e4
Commit
05ddc0e4
authored
Oct 01, 2012
by
Miguel Gómez Sexto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move lun to tdc struct, and info_get will return it from there
Signed-off-by:
Miguel Gomez
<
magomez@igalia.com
>
parent
6e677109
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
tdc-fmc.c
drivers/tdc-fmc.c
+1
-0
tdc-zio.c
drivers/tdc-zio.c
+1
-1
tdc.h
drivers/tdc.h
+1
-0
No files found.
drivers/tdc-fmc.c
View file @
05ddc0e4
...
...
@@ -216,6 +216,7 @@ int tdc_fmc_probe(struct fmc_device *dev)
spec
=
dev
->
carrier_data
;
tdc
->
spec
=
spec
;
spec
->
sub_priv
=
tdc
;
tdc
->
lun
=
2
;
/* FIXME: this must be calculated from module params */
tdc
->
fmc
=
dev
;
tdc
->
base
=
dev
->
base
;
/* BAR 0 */
tdc
->
gn412x_regs
=
spec
->
remap
[
2
];
/* BAR 4 */
...
...
drivers/tdc-zio.c
View file @
05ddc0e4
...
...
@@ -195,7 +195,7 @@ static int tdc_zio_info_get(struct device *dev,
*
usr_val
=
tdc_get_circular_buffer_wr_pointer
(
tdc
);
break
;
case
TDC_ATTR_DEV_LUN
:
/* FIXME: add code to return real lun */
*
usr_val
=
tdc
->
lun
;
break
;
default:
...
...
drivers/tdc.h
View file @
05ddc0e4
...
...
@@ -53,6 +53,7 @@ enum tdc_zattr_dev_idx {
};
struct
spec_tdc
{
uint32_t
lun
;
struct
fmc_device
*
fmc
;
struct
spec_dev
*
spec
;
struct
zio_device
*
zdev
,
*
hwzdev
;
...
...
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