History log of /haiku/src/add-ons/kernel/drivers/power/acpi_button/acpi_button.cpp
Revision Date Author Comments
# 215b685f 11-Dec-2022 X512 <danger_mail@list.ru>

kernel: Drop non-standard GNU inline assignment syntax

* We needed this previously due to our gcc2 compiled kernel.
* Now that our kernel is always latest gcc, we can move to the
c++20 syntax for inline assignment.
* Improves compatibility with clang, less GNU-specific stuff

Change-Id: Ib7272a0a52554a31e9a0e788fd3f031db9049795
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5898
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 959fdbd3 28-Feb-2018 Jérôme Duval <jerome.duval@gmail.com>

acpi_battery: use user_strlcpy in acpi_battery_read().

* also check for user addresses in acpi_battery_control().


# 6470e365 28-Feb-2018 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: use user_memcpy to write the user buffer.

* fix warning on x86_64.


# 74f76237 24-Aug-2014 Rene Gollent <rene@gollent.com>

acpi_button: Fix several issues with multiple devices.
- On some hardware, both the fixed function FADT as well as the
device-based power interfaces are present. In such a case we
would fail to publish one or the other, depending on which was
enumerated first, since we'd always attempt to publish the same
name regardless. Now we differentiate the device name for fixed vs
device.
- Only enable fixed function for actual fixed devices.
- Improve tracing.


# c9a4d524 11-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: fix build with gcc 4.9


# c9db30cd 13-Nov-2013 Jérôme Duval <jerome.duval@gmail.com>

power_daemon: use wait_for_objects() instead of polling.

* acpi_button and acpi_lid support select/deselect hooks.
* power_daemon now uses a thread waiting for lid or power button events.
* a power button event is still hardcoded to a shutdown.
* a lid event only displays a message.


# c9fb65f9 01-Nov-2013 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: improved traces


# e856422f 30-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: switch to fixed event and notify handlers.

* install a fixed event or notify handler depending on the device type.
* on handling, a non zero status is available for read.
* fixed #10154.


# c1da0e75 23-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: cleanup


# 1926af4f 23-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: migrated to the new driver API.

* HaikuImage: SYSTEM_ADD_ONS_DRIVERS_POWER is now used for new drivers.


# 74f7623716d7a4c3cf5f0a0cc81a9578c5557c5c 24-Aug-2014 Rene Gollent <rene@gollent.com>

acpi_button: Fix several issues with multiple devices.
- On some hardware, both the fixed function FADT as well as the
device-based power interfaces are present. In such a case we
would fail to publish one or the other, depending on which was
enumerated first, since we'd always attempt to publish the same
name regardless. Now we differentiate the device name for fixed vs
device.
- Only enable fixed function for actual fixed devices.
- Improve tracing.


# c9a4d5248388606d7c2150f6dc567f915de24592 11-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: fix build with gcc 4.9


# c9db30cd7f922e7a828f55c2f234d21e6bfa585a 13-Nov-2013 Jérôme Duval <jerome.duval@gmail.com>

power_daemon: use wait_for_objects() instead of polling.

* acpi_button and acpi_lid support select/deselect hooks.
* power_daemon now uses a thread waiting for lid or power button events.
* a power button event is still hardcoded to a shutdown.
* a lid event only displays a message.


# c9fb65f96183037ffd169d154a636dfc8f6c3cc8 01-Nov-2013 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: improved traces


# e856422f12cd6311a6c0b8b64b2e87b4c02e5b63 30-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: switch to fixed event and notify handlers.

* install a fixed event or notify handler depending on the device type.
* on handling, a non zero status is available for read.
* fixed #10154.


# c1da0e750b151b76bcdf17e5c32e041180626390 23-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: cleanup


# 1926af4fde4ff5510ee7ba89f03f739cc21f9e2f 23-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

acpi_button: migrated to the new driver API.

* HaikuImage: SYSTEM_ADD_ONS_DRIVERS_POWER is now used for new drivers.