Merge tag 'fscache-fixes-20141013' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / include / linux / com20020.h
index 5dcfb944b6ce11591f0623543ff48bb9e03be60d..85898995b234edc244b589415fd2c3391d8cd62d 100644 (file)
@@ -41,6 +41,35 @@ extern const struct net_device_ops com20020_netdev_ops;
 #define BUS_ALIGN  1
 #endif
 
+#define PLX_PCI_MAX_CARDS 2
+
+struct com20020_pci_channel_map {
+       u32 bar;
+       u32 offset;
+       u32 size;               /* 0x00 - auto, e.g. length of entire bar */
+};
+
+struct com20020_pci_card_info {
+       const char *name;
+       int devcount;
+
+       struct com20020_pci_channel_map chan_map_tbl[PLX_PCI_MAX_CARDS];
+
+       unsigned int flags;
+};
+
+struct com20020_priv {
+       struct com20020_pci_card_info *ci;
+       struct list_head list_dev;
+};
+
+struct com20020_dev {
+       struct list_head list;
+       struct net_device *dev;
+
+       struct com20020_priv *pci_priv;
+       int index;
+};
 
 #define _INTMASK  (ioaddr+BUS_ALIGN*0) /* writable */
 #define _STATUS   (ioaddr+BUS_ALIGN*0) /* readable */