summaryrefslogtreecommitdiff
path: root/include/linux/com20020.h
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2014-09-29 11:55:36 +0200
committerDavid S. Miller <davem@davemloft.net>2014-09-29 14:36:26 -0400
commit8c14f9c70327a6fb75534c4c61d7ea9c82ccf78f (patch)
tree2a5afd10fce0687fbba979d6bf676bfb7ba336a7 /include/linux/com20020.h
parenta0d2e51390622e4dfd9d7bffb768e6fa22fb7daf (diff)
downloadlwn-8c14f9c70327a6fb75534c4c61d7ea9c82ccf78f.tar.gz
lwn-8c14f9c70327a6fb75534c4c61d7ea9c82ccf78f.zip
ARCNET: add com20020 PCI IDs with metadata
This patch adds metadata for the com20020 to prepare for devices with multiple io address areas with multi card interfaces. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/com20020.h')
-rw-r--r--include/linux/com20020.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/com20020.h b/include/linux/com20020.h
index 5dcfb944b6ce..6a1ceca61e7f 100644
--- a/include/linux/com20020.h
+++ b/include/linux/com20020.h
@@ -41,6 +41,22 @@ extern const struct net_device_ops com20020_netdev_ops;
#define BUS_ALIGN 1
#endif
+#define PLX_PCI_MAX_CARDS 1
+
+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;
+};
#define _INTMASK (ioaddr+BUS_ALIGN*0) /* writable */
#define _STATUS (ioaddr+BUS_ALIGN*0) /* readable */