diff options
Diffstat (limited to 'include/linux/com20020.h')
-rw-r--r-- | include/linux/com20020.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/com20020.h b/include/linux/com20020.h index 5dcfb944b6ce..85898995b234 100644 --- a/include/linux/com20020.h +++ b/include/linux/com20020.h | |||
@@ -41,6 +41,35 @@ extern const struct net_device_ops com20020_netdev_ops; | |||
41 | #define BUS_ALIGN 1 | 41 | #define BUS_ALIGN 1 |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | #define PLX_PCI_MAX_CARDS 2 | ||
45 | |||
46 | struct com20020_pci_channel_map { | ||
47 | u32 bar; | ||
48 | u32 offset; | ||
49 | u32 size; /* 0x00 - auto, e.g. length of entire bar */ | ||
50 | }; | ||
51 | |||
52 | struct com20020_pci_card_info { | ||
53 | const char *name; | ||
54 | int devcount; | ||
55 | |||
56 | struct com20020_pci_channel_map chan_map_tbl[PLX_PCI_MAX_CARDS]; | ||
57 | |||
58 | unsigned int flags; | ||
59 | }; | ||
60 | |||
61 | struct com20020_priv { | ||
62 | struct com20020_pci_card_info *ci; | ||
63 | struct list_head list_dev; | ||
64 | }; | ||
65 | |||
66 | struct com20020_dev { | ||
67 | struct list_head list; | ||
68 | struct net_device *dev; | ||
69 | |||
70 | struct com20020_priv *pci_priv; | ||
71 | int index; | ||
72 | }; | ||
44 | 73 | ||
45 | #define _INTMASK (ioaddr+BUS_ALIGN*0) /* writable */ | 74 | #define _INTMASK (ioaddr+BUS_ALIGN*0) /* writable */ |
46 | #define _STATUS (ioaddr+BUS_ALIGN*0) /* readable */ | 75 | #define _STATUS (ioaddr+BUS_ALIGN*0) /* readable */ |