]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - include/linux/via-core.h
viafb: General power management infrastructure
[~shefty/rdma-dev.git] / include / linux / via-core.h
index 7ffb521e1a7aa536ba01972289afd42f8b997684..a4327a0c8efcbcbba9486d95094998fc980f5849 100644 (file)
@@ -59,6 +59,21 @@ struct via_port_cfg {
        u8                      ioport_index;
 };
 
+/*
+ * Allow subdevs to register suspend/resume hooks.
+ */
+#ifdef CONFIG_PM
+struct viafb_pm_hooks {
+       struct list_head list;
+       int (*suspend)(void *private);
+       int (*resume)(void *private);
+       void *private;
+};
+
+void viafb_pm_register(struct viafb_pm_hooks *hooks);
+void viafb_pm_unregister(struct viafb_pm_hooks *hooks);
+#endif /* CONFIG_PM */
+
 /*
  * This is the global viafb "device" containing stuff needed by
  * all subdevs.