Commit f0ea7350 authored by Alessandro Rubini's avatar Alessandro Rubini

fmc.h: added flags

parent 16ff2151
...@@ -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)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment