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>
This commit is contained in:
parent
a0d2e51390
commit
8c14f9c703
2 changed files with 197 additions and 35 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue