patch-2.3.48 linux/include/linux/pm.h

Next file: linux/include/linux/prctl.h
Previous file: linux/include/linux/pci_ids.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/include/linux/pm.h linux/include/linux/pm.h
@@ -101,6 +101,7 @@
 
 	unsigned long	 flags;
 	int		 state;
+	int		 prev_state;
 
 	struct list_head entry;
 };
@@ -129,9 +130,14 @@
 void pm_unregister_all(pm_callback callback);
 
 /*
+ * Send a request to a single device
+ */
+int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data);
+
+/*
  * Send a request to all devices
  */
-int pm_send_request(pm_request_t rqst, void *data);
+int pm_send_all(pm_request_t rqst, void *data);
 
 /*
  * Find a device
@@ -156,7 +162,12 @@
 
 extern inline void pm_unregister_all(pm_callback callback) {}
 
-extern inline int pm_send_request(pm_request_t rqst, void *data)
+extern inline int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data)
+{
+	return 0;
+}
+
+extern inline int pm_send_all(pm_request_t rqst, void *data)
 {
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)