From ad1064afb00fb606da6b385752cc055e8c17ca48 Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Thu, 29 Oct 2009 21:23:48 +0000 Subject: [PATCH] These defines were duplicated. Removing the second copy. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33835 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../acpi_embedded_controller.h | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/add-ons/kernel/drivers/power/acpi_embedded_controller/acpi_embedded_controller.h b/src/add-ons/kernel/drivers/power/acpi_embedded_controller/acpi_embedded_controller.h index b570247598..67367b8411 100644 --- a/src/add-ons/kernel/drivers/power/acpi_embedded_controller/acpi_embedded_controller.h +++ b/src/add-ons/kernel/drivers/power/acpi_embedded_controller/acpi_embedded_controller.h @@ -285,26 +285,6 @@ static status_t EcRead(struct acpi_ec_cookie *sc, uint8 address, 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