summaryrefslogtreecommitdiffstats
path: root/include/pcmcia/ds.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-07-24 13:14:44 +0200
committerDominik Brodowski <linux@dominikbrodowski.net>2010-08-03 09:02:44 +0200
commit2ce4905e4da9f512b38f56a53ece9da2072dd164 (patch)
tree64ca3ecc0dea9b4fbdca2c9b1353ee282e9afc82 /include/pcmcia/ds.h
parent3dace8cf15ae1dd7c9384758b3a29556b441a90a (diff)
downloadtalos-obmc-linux-2ce4905e4da9f512b38f56a53ece9da2072dd164.tar.gz
talos-obmc-linux-2ce4905e4da9f512b38f56a53ece9da2072dd164.zip
pcmcia: use struct resource for PCMCIA devices
Introduce a new field into struct pcmcia_device named "resource" and of type struct resource *, which contains the IO port ranges allocated for this device. Memory window ranges and registration with the resource trees will follow at a later date. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/pcmcia/ds.h')
-rw-r--r--include/pcmcia/ds.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h
index d494ce417b4f..3dafd7db34df 100644
--- a/include/pcmcia/ds.h
+++ b/include/pcmcia/ds.h
@@ -80,13 +80,13 @@ struct pcmcia_device {
struct list_head socket_device_list;
/* deprecated, will be cleaned up soon */
- u_int open;
io_req_t io;
config_req_t conf;
window_handle_t win;
/* device setup */
unsigned int irq;
+ struct resource *resource[MAX_IO_WIN];
/* Is the device suspended? */
u16 suspended:1;
@@ -120,6 +120,7 @@ struct pcmcia_device {
/* data private to drivers */
void *priv;
+ unsigned int open;
};
#define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev)
OpenPOWER on IntegriCloud