[PATCH] pcmcia: new suspend core
[linux-2.6-block.git] / include / pcmcia / ds.h
index b707a603351b2217b6aecaeca3b7e81155b38d9e..020055199008c532952637aa43b3feb2b224177a 100644 (file)
@@ -137,6 +137,10 @@ struct pcmcia_driver {
        int (*event)            (event_t event, int priority,
                                 event_callback_args_t *);
        void                    (*detach)(dev_link_t *);
+
+       int (*suspend)          (struct pcmcia_device *dev);
+       int (*resume)           (struct pcmcia_device *dev);
+
        struct module           *owner;
        struct pcmcia_device_id *id_table;
        struct device_driver    drv;
@@ -151,6 +155,8 @@ struct pcmcia_device {
           uniquely define a pcmcia_device */
        struct pcmcia_socket    *socket;
 
+       char                    *devname;
+
        u8                      device_no;
 
        /* the hardware "function" device; certain subdevices can
@@ -191,6 +197,8 @@ struct pcmcia_device {
 #define handle_to_pdev(handle) (handle)
 #define handle_to_dev(handle) (handle->dev)
 
+#define dev_to_instance(dev) (dev->instance)
+
 /* error reporting */
 void cs_error(client_handle_t handle, int func, int ret);