diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-07-24 13:03:02 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-08-03 03:04:16 -0400 |
commit | 0ca724d37af370dbf2d55dc4d6359ead558e5756 (patch) | |
tree | 994685118202d9bf54f11ec9b39a654f6fb4f21f /include/pcmcia/ds.h | |
parent | b5cb259e7fac5536c4ddf350af6a3d6cc950e47e (diff) |
pcmcia: use struct resource for PCMCIA devices, part 2
Use struct resource * also for iomem resources.
CC: linux-mtd@lists.infradead.org
CC: netdev@vger.kernel.org
CC: linux-wireless@vger.kernel.org
CC: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/pcmcia/ds.h')
-rw-r--r-- | include/pcmcia/ds.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index a2bf3a702c08..70c58ed2278c 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -36,7 +36,7 @@ struct pcmcia_device; | |||
36 | struct config_t; | 36 | struct config_t; |
37 | struct net_device; | 37 | struct net_device; |
38 | 38 | ||
39 | typedef unsigned long window_handle_t; | 39 | typedef struct resource *window_handle_t; |
40 | 40 | ||
41 | /* dynamic device IDs for PCMCIA device drivers. See | 41 | /* dynamic device IDs for PCMCIA device drivers. See |
42 | * Documentation/pcmcia/driver.txt for details. | 42 | * Documentation/pcmcia/driver.txt for details. |
@@ -63,6 +63,17 @@ struct pcmcia_driver { | |||
63 | int pcmcia_register_driver(struct pcmcia_driver *driver); | 63 | int pcmcia_register_driver(struct pcmcia_driver *driver); |
64 | void pcmcia_unregister_driver(struct pcmcia_driver *driver); | 64 | void pcmcia_unregister_driver(struct pcmcia_driver *driver); |
65 | 65 | ||
66 | /* for struct resource * array embedded in struct pcmcia_device */ | ||
67 | enum { | ||
68 | PCMCIA_IOPORT_0, | ||
69 | PCMCIA_IOPORT_1, | ||
70 | PCMCIA_IOMEM_0, | ||
71 | PCMCIA_IOMEM_1, | ||
72 | PCMCIA_IOMEM_2, | ||
73 | PCMCIA_IOMEM_3, | ||
74 | PCMCIA_NUM_RESOURCES, | ||
75 | }; | ||
76 | |||
66 | struct pcmcia_device { | 77 | struct pcmcia_device { |
67 | /* the socket and the device_no [for multifunction devices] | 78 | /* the socket and the device_no [for multifunction devices] |
68 | uniquely define a pcmcia_device */ | 79 | uniquely define a pcmcia_device */ |
@@ -85,7 +96,7 @@ struct pcmcia_device { | |||
85 | 96 | ||
86 | /* device setup */ | 97 | /* device setup */ |
87 | unsigned int irq; | 98 | unsigned int irq; |
88 | struct resource *resource[MAX_IO_WIN]; | 99 | struct resource *resource[PCMCIA_NUM_RESOURCES]; |
89 | 100 | ||
90 | unsigned int io_lines; /* number of I/O lines */ | 101 | unsigned int io_lines; /* number of I/O lines */ |
91 | 102 | ||