aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mcb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mcb.h')
-rw-r--r--include/linux/mcb.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/linux/mcb.h b/include/linux/mcb.h
index ed06e15a36aa..ead13d233a97 100644
--- a/include/linux/mcb.h
+++ b/include/linux/mcb.h
@@ -15,22 +15,30 @@
15#include <linux/device.h> 15#include <linux/device.h>
16#include <linux/irqreturn.h> 16#include <linux/irqreturn.h>
17 17
18#define CHAMELEON_FILENAME_LEN 12
19
18struct mcb_driver; 20struct mcb_driver;
19struct mcb_device; 21struct mcb_device;
20 22
21/** 23/**
22 * struct mcb_bus - MEN Chameleon Bus 24 * struct mcb_bus - MEN Chameleon Bus
23 * 25 *
24 * @dev: pointer to carrier device 26 * @dev: bus device
25 * @children: the child busses 27 * @carrier: pointer to carrier device
26 * @bus_nr: mcb bus number 28 * @bus_nr: mcb bus number
27 * @get_irq: callback to get IRQ number 29 * @get_irq: callback to get IRQ number
30 * @revision: the FPGA's revision number
31 * @model: the FPGA's model number
32 * @filename: the FPGA's name
28 */ 33 */
29struct mcb_bus { 34struct mcb_bus {
30 struct list_head children;
31 struct device dev; 35 struct device dev;
32 struct device *carrier; 36 struct device *carrier;
33 int bus_nr; 37 int bus_nr;
38 u8 revision;
39 char model;
40 u8 minor;
41 char name[CHAMELEON_FILENAME_LEN + 1];
34 int (*get_irq)(struct mcb_device *dev); 42 int (*get_irq)(struct mcb_device *dev);
35}; 43};
36#define to_mcb_bus(b) container_of((b), struct mcb_bus, dev) 44#define to_mcb_bus(b) container_of((b), struct mcb_bus, dev)