Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC - 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
Simple VME FMC Carrier SVEC - Software
Commits
51351e3d
Commit
51351e3d
authored
Dec 10, 2013
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svec-drv: consistently name insmod parameters
Use the vme_<whatever> convention
parent
478d1903
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
svec-drv.c
kernel/svec-drv.c
+7
-7
No files found.
kernel/svec-drv.c
View file @
51351e3d
...
...
@@ -24,8 +24,8 @@ char *svec_fw_name = "fmc/svec-golden.bin";
/* Module parameters */
static
int
slot
[
SVEC_MAX_DEVICES
];
static
unsigned
int
slot_num
;
static
unsigned
int
vmebase
[
SVEC_MAX_DEVICES
]
=
SVEC_UNINITIALIZED_VME_BASE
;
static
unsigned
int
vmebase_num
;
static
unsigned
int
vme
_
base
[
SVEC_MAX_DEVICES
]
=
SVEC_UNINITIALIZED_VME_BASE
;
static
unsigned
int
vme
_
base_num
;
static
char
*
fw_name
[
SVEC_MAX_DEVICES
];
static
unsigned
int
fw_name_num
;
static
int
vector
[
SVEC_MAX_DEVICES
]
=
SVEC_UNINITIALIZED_IRQ_VECTOR
;
...
...
@@ -44,8 +44,8 @@ module_param_array(slot, int, &slot_num, S_IRUGO);
MODULE_PARM_DESC
(
slot
,
"Slot where SVEC card is installed"
);
module_param_array
(
lun
,
int
,
&
lun_num
,
S_IRUGO
);
MODULE_PARM_DESC
(
lun
,
"Index value for SVEC card"
);
module_param_array
(
vme
base
,
uint
,
&
vme
base_num
,
S_IRUGO
);
MODULE_PARM_DESC
(
vmebase
,
"VME Base address of the SVEC card registers"
);
module_param_array
(
vme
_base
,
uint
,
&
vme_
base_num
,
S_IRUGO
);
MODULE_PARM_DESC
(
vme
_
base
,
"VME Base address of the SVEC card registers"
);
module_param_array
(
vme_am
,
uint
,
&
vme_am_num
,
S_IRUGO
);
MODULE_PARM_DESC
(
vme_size
,
"VME Window size of the SVEC card registers"
);
module_param_array
(
vme_size
,
uint
,
&
vme_size_num
,
S_IRUGO
);
...
...
@@ -698,7 +698,7 @@ static int svec_probe(struct device *pdev, unsigned int ndev)
svec
->
cfg_cur
.
use_vic
=
1
;
svec
->
cfg_cur
.
use_fmc
=
1
;
svec
->
cfg_cur
.
vme_base
=
vmebase
[
ndev
];
svec
->
cfg_cur
.
vme_base
=
vme
_
base
[
ndev
];
svec
->
cfg_cur
.
vme_am
=
vme_am
[
ndev
];
svec
->
cfg_cur
.
vme_size
=
vme_size
[
ndev
];
svec
->
cfg_cur
.
interrupt_vector
=
vector
[
ndev
];
...
...
@@ -781,7 +781,7 @@ static int __init svec_init(void)
return
-
EINVAL
;
}
error
|=
(
vme
base_num
&&
vme
base_num
!=
slot_num
);
error
|=
(
vme
_base_num
&&
vme_
base_num
!=
slot_num
);
error
|=
(
vme_am_num
&&
vme_am_num
!=
slot_num
);
error
|=
(
vme_size_num
&&
vme_size_num
!=
slot_num
);
error
|=
(
level_num
&&
level_num
!=
slot_num
);
...
...
@@ -790,7 +790,7 @@ static int __init svec_init(void)
if
(
error
)
{
pr_err
(
"%s: The number of vmebase/vme_am/vme_size/level/vector/fw_name/use_vic/use_fmc parameters must be zero or equal to the number of cards.
\n
"
,
(
"%s: The number of vme
_
base/vme_am/vme_size/level/vector/fw_name/use_vic/use_fmc parameters must be zero or equal to the number of cards.
\n
"
,
__func__
);
return
-
EINVAL
;
}
...
...
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