Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 PCIe FMC carrier SPEC - Software
Commits
3e282487
Commit
3e282487
authored
Jul 31, 2014
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: assign a name to the spec
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
9ae2ee65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
spec-pci.c
kernel/spec-pci.c
+3
-0
spec.h
kernel/spec.h
+4
-0
No files found.
kernel/spec-pci.c
View file @
3e282487
...
...
@@ -144,6 +144,9 @@ static int spec_probe(struct pci_dev *pdev,
if
(
ret
)
goto
out_unmap
;
snprintf
(
spec
->
name
,
SPEC_NAME_LEN
,
"spec-%04x"
,
spec
->
pdev
->
bus
->
number
<<
8
|
spec
->
pdev
->
devfn
);
/* Done */
pci_set_drvdata
(
pdev
,
spec
);
return
0
;
...
...
kernel/spec.h
View file @
3e282487
...
...
@@ -22,6 +22,8 @@
#define SPEC_DEFAULT_LM32_ADDR 0x80000
/* used if "1" is passed */
#define SPEC_NAME_LEN 10
/* Our device structure */
struct
spec_dev
{
struct
pci_dev
*
pdev
;
...
...
@@ -35,6 +37,8 @@ struct spec_dev {
struct
gpio_chip
*
gpio
;
struct
vic_irq_controller
*
vic
;
spinlock_t
irq_lock
;
char
name
[
SPEC_NAME_LEN
];
};
#define SPEC_FLAG_FAKE_EEPROM 0x00000001
...
...
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