Deleted Added
full compact
acpi_button.c (100497) acpi_button.c (118049)
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

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
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

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/dev/acpica/acpi_button.c 100497 2002-07-22 12:52:54Z iwasaki $
28 * $FreeBSD: head/sys/dev/acpica/acpi_button.c 118049 2003-07-26 09:54:17Z takawata $
29 */
30
31#include "opt_acpi.h"
32#include <sys/param.h>
33#include <sys/kernel.h>
34#include <sys/bus.h>
35
36#include "acpi.h"

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

59static void acpi_button_notify_pressed_for_sleep(void *arg);
60static void acpi_button_notify_pressed_for_wakeup(void *arg);
61
62static device_method_t acpi_button_methods[] = {
63 /* Device interface */
64 DEVMETHOD(device_probe, acpi_button_probe),
65 DEVMETHOD(device_attach, acpi_button_attach),
66 DEVMETHOD(device_suspend, acpi_button_suspend),
29 */
30
31#include "opt_acpi.h"
32#include <sys/param.h>
33#include <sys/kernel.h>
34#include <sys/bus.h>
35
36#include "acpi.h"

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

59static void acpi_button_notify_pressed_for_sleep(void *arg);
60static void acpi_button_notify_pressed_for_wakeup(void *arg);
61
62static device_method_t acpi_button_methods[] = {
63 /* Device interface */
64 DEVMETHOD(device_probe, acpi_button_probe),
65 DEVMETHOD(device_attach, acpi_button_attach),
66 DEVMETHOD(device_suspend, acpi_button_suspend),
67 DEVMETHOD(device_shutdown, acpi_button_suspend),
67 DEVMETHOD(device_resume, acpi_button_resume),
68
69 {0, 0}
70};
71
72static driver_t acpi_button_driver = {
73 "acpi_button",
74 acpi_button_methods,

--- 150 unchanged lines hidden ---
68 DEVMETHOD(device_resume, acpi_button_resume),
69
70 {0, 0}
71};
72
73static driver_t acpi_button_driver = {
74 "acpi_button",
75 acpi_button_methods,

--- 150 unchanged lines hidden ---