Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FPGA Configuration Space
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
FPGA Configuration Space
Commits
2ddf00b9
Commit
2ddf00b9
authored
Oct 11, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdbfs/kernel/sdbfs-int.h: map ino/offset and some more fields
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
aef174b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
sdbfs-int.h
sdbfs/kernel/sdbfs-int.h
+9
-0
No files found.
sdbfs/kernel/sdbfs-int.h
View file @
2ddf00b9
...
...
@@ -12,12 +12,18 @@
#include <linux/fs.h>
#include <linux/sdb.h>
/* This is our mapping of inode numbers */
#define SDBFS_ROOT 1
#define SDBFS_INO(offset) ((offset) + 2)
#define SDBFS_OFFSET(ino) ((ino) & ~15)
struct
sdbfs_info
{
/* unnamed union to save typing */
union
{
struct
sdb_device
s_d
;
struct
sdb_interconnect
s_i
;
struct
sdb_bridge
s_b
;
struct
sdb_empty
s_e
;
};
char
name
[
20
];
/* 19 + terminator */
int
namelen
;
...
...
@@ -28,6 +34,9 @@ struct sdbfs_inode {
int
nfiles
;
struct
sdbfs_info
*
files
;
/* for directories */
struct
inode
ino
;
/* below, the former is the base for relative addresses */
unsigned
long
base_data
;
unsigned
long
base_sdb
;
};
/* This is needed to convert endianness. Hoping it is not defined elsewhere */
...
...
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