Deleted Added
full compact
acpi_button.c (150003) acpi_button.c (167814)
1/*-
2 * Copyright (c) 2000 Mitsaru IWASAKI <iwasaki@jp.freebsd.org>
3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org>
4 * Copyright (c) 2000 BSDi
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 13 unchanged lines hidden (view full) ---

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000 Mitsaru IWASAKI <iwasaki@jp.freebsd.org>
3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org>
4 * Copyright (c) 2000 BSDi
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 13 unchanged lines hidden (view full) ---

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_button.c 150003 2005-09-11 18:39:03Z obrien $");
30__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_button.c 167814 2007-03-22 18:16:43Z jkim $");
31
32#include "opt_acpi.h"
33#include <sys/param.h>
34#include <sys/kernel.h>
35#include <sys/module.h>
36#include <sys/bus.h>
37
38#include <contrib/dev/acpica/acpi.h>

--- 204 unchanged lines hidden (view full) ---

243{
244 struct acpi_button_softc *sc;
245
246 ACPI_FUNCTION_TRACE_U32((char *)(uintptr_t)__func__, notify);
247
248 sc = (struct acpi_button_softc *)context;
249 switch (notify) {
250 case ACPI_NOTIFY_BUTTON_PRESSED_FOR_SLEEP:
31
32#include "opt_acpi.h"
33#include <sys/param.h>
34#include <sys/kernel.h>
35#include <sys/module.h>
36#include <sys/bus.h>
37
38#include <contrib/dev/acpica/acpi.h>

--- 204 unchanged lines hidden (view full) ---

243{
244 struct acpi_button_softc *sc;
245
246 ACPI_FUNCTION_TRACE_U32((char *)(uintptr_t)__func__, notify);
247
248 sc = (struct acpi_button_softc *)context;
249 switch (notify) {
250 case ACPI_NOTIFY_BUTTON_PRESSED_FOR_SLEEP:
251 AcpiOsQueueForExecution(OSD_PRIORITY_LO,
252 acpi_button_notify_sleep, sc);
251 AcpiOsExecute(OSL_NOTIFY_HANDLER, acpi_button_notify_sleep, sc);
253 break;
254 case ACPI_NOTIFY_BUTTON_PRESSED_FOR_WAKEUP:
252 break;
253 case ACPI_NOTIFY_BUTTON_PRESSED_FOR_WAKEUP:
255 AcpiOsQueueForExecution(OSD_PRIORITY_LO,
256 acpi_button_notify_wakeup, sc);
254 AcpiOsExecute(OSL_NOTIFY_HANDLER, acpi_button_notify_wakeup, sc);
257 break;
258 default:
259 device_printf(sc->button_dev, "unknown notify %#x\n", notify);
260 break;
261 }
262}
263
264static ACPI_STATUS

--- 13 unchanged lines hidden ---
255 break;
256 default:
257 device_printf(sc->button_dev, "unknown notify %#x\n", notify);
258 break;
259 }
260}
261
262static ACPI_STATUS

--- 13 unchanged lines hidden ---