Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spec-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
fmc-projects
spec
spec-sw
Commits
569bf7b7
Commit
569bf7b7
authored
12 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
added <linux/fmc-sdb.h>
parent
eb40a806
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/include/linux/fmc-sdb.h
+33
-0
33 additions, 0 deletions
kernel/include/linux/fmc-sdb.h
with
33 additions
and
0 deletions
kernel/include/linux/fmc-sdb.h
0 → 100644
+
33
−
0
View file @
569bf7b7
/*
* This file is separate from sdb.h, because I want that one to remain
* unchanged (as far as possible) from the official sdb distribution
*
* This file and associated functionality are a playground for me to
* understand stuff which will later be implemented in more generic places.
*/
#include
<linux/sdb.h>
/* This is the union of all currently defined types */
union
sdb_record
{
struct
sdb_interconnect
ic
;
struct
sdb_device
dev
;
struct
sdb_bridge
bridge
;
struct
sdb_integration
integr
;
struct
sdb_empty
empty
;
};
struct
fmc_device
;
/* Every sdb table is turned into this structure */
struct
sdb_array
{
int
len
;
int
level
;
struct
fmc_device
*
fmc
;
/* the device that hosts it */
struct
sdb_array
*
parent
;
/* NULL at root */
union
sdb_record
*
record
;
/* copies of the struct */
struct
sdb_array
**
subtree
;
/* only valid for bridge items */
};
extern
int
fmc_scan_sdb_tree
(
struct
fmc_device
*
fmc
,
unsigned
long
address
);
extern
void
fmc_show_sdb_tree
(
struct
fmc_device
*
fmc
);
extern
unsigned
long
fmc_find_sdb_device
(
struct
sdb_array
*
tree
);
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment