[haiku-commits] r33835 - haiku/trunk/src/add-ons/kernel/drivers/power/acpi_embedded_controller

  • From: fredrik.holmqvist@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 29 Oct 2009 22:23:48 +0100 (CET)

Author: tqh
Date: 2009-10-29 22:23:48 +0100 (Thu, 29 Oct 2009)
New Revision: 33835
Changeset: http://dev.haiku-os.org/changeset/33835/haiku

Modified:
   
haiku/trunk/src/add-ons/kernel/drivers/power/acpi_embedded_controller/acpi_embedded_controller.h
Log:
These defines were duplicated. Removing the second copy.



Modified: 
haiku/trunk/src/add-ons/kernel/drivers/power/acpi_embedded_controller/acpi_embedded_controller.h
===================================================================
--- 
haiku/trunk/src/add-ons/kernel/drivers/power/acpi_embedded_controller/acpi_embedded_controller.h
    2009-10-29 19:43:57 UTC (rev 33834)
+++ 
haiku/trunk/src/add-ons/kernel/drivers/power/acpi_embedded_controller/acpi_embedded_controller.h
    2009-10-29 21:23:48 UTC (rev 33835)
@@ -285,26 +285,6 @@
                                 uint8 *readData);
 static status_t                        EcWrite(struct acpi_ec_cookie *sc, 
uint8 address,
                                 uint8 *writeData);
-                                
-                                
-/*
- * XXX njl
- * I couldn't find it in the spec but other implementations also use a
- * value of 1 ms for the time to acquire global lock.
- */
-#define EC_LOCK_TIMEOUT 1000
 
-/* Default delay in microseconds between each run of the status polling loop. 
*/
-#define EC_POLL_DELAY   5
 
-/* Total time in ms spent waiting for a response from EC. */
-#define EC_TIMEOUT      750
-
-#define EVENT_READY(event, status)                      \
-        (((event) == EC_EVENT_OUTPUT_BUFFER_FULL &&     \
-         ((status) & EC_FLAG_OUTPUT_BUFFER) != 0) ||    \
-         ((event) == EC_EVENT_INPUT_BUFFER_EMPTY &&     \
-         ((status) & EC_FLAG_INPUT_BUFFER) == 0))
-
-
 #endif // ACPI_EMBEDDED_CONTROLLER_H


Other related posts:

  • » [haiku-commits] r33835 - haiku/trunk/src/add-ons/kernel/drivers/power/acpi_embedded_controller - fredrik . holmqvist