Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC Bus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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 Bus
Commits
f0ea7350
Commit
f0ea7350
authored
Aug 02, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmc.h: added flags
parent
16ff2151
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
fmc.h
kernel/include/linux/fmc.h
+5
-0
No files found.
kernel/include/linux/fmc.h
View file @
f0ea7350
...
@@ -60,6 +60,7 @@ struct fmc_operations {
...
@@ -60,6 +60,7 @@ struct fmc_operations {
/* The device reports all information needed to access hw */
/* The device reports all information needed to access hw */
struct
fmc_device
{
struct
fmc_device
{
unsigned
long
flags
;
struct
fmc_device_id
id
;
/* for the match function */
struct
fmc_device_id
id
;
/* for the match function */
struct
fmc_operations
*
op
;
/* carrier-provided */
struct
fmc_operations
*
op
;
/* carrier-provided */
int
irq
;
/* according to host bus. 0 == none */
int
irq
;
/* according to host bus. 0 == none */
...
@@ -74,6 +75,10 @@ struct fmc_device {
...
@@ -74,6 +75,10 @@ struct fmc_device {
};
};
#define to_fmc_device(x) container_of((x), struct fmc_device, dev)
#define to_fmc_device(x) container_of((x), struct fmc_device, dev)
#define FMC_DEVICE_HAS_GOLDEN 1
#define FMC_DEVICE_HAS_CUSTOM 2
#define FMC_DEVICE_NO_MEZZANINE 4
/* If the carrier offers no readl/writel, use base address */
/* If the carrier offers no readl/writel, use base address */
static
inline
uint32_t
fmc_readl
(
struct
fmc_device
*
fmc
,
int
offset
)
static
inline
uint32_t
fmc_readl
(
struct
fmc_device
*
fmc
,
int
offset
)
{
{
...
...
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