Deleted Added
full compact
acpi_button.c (129783) acpi_button.c (129805)
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 129783 2004-05-27 18:38:45Z njl $
28 * $FreeBSD: head/sys/dev/acpica/acpi_button.c 129805 2004-05-28 07:04:09Z njl $
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"

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

170 acpi_sc = acpi_device_get_parent_softc(dev);
171 acpi_wake_sleep_prep(dev, acpi_sc->acpi_sstate);
172 return (0);
173}
174
175static int
176acpi_button_resume(device_t dev)
177{
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"

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

170 acpi_sc = acpi_device_get_parent_softc(dev);
171 acpi_wake_sleep_prep(dev, acpi_sc->acpi_sstate);
172 return (0);
173}
174
175static int
176acpi_button_resume(device_t dev)
177{
178 acpi_wake_run_prep(dev);
178 return (0);
179}
180
181static void
182acpi_button_notify_sleep(void *arg)
183{
184 struct acpi_button_softc *sc;
185 struct acpi_softc *acpi_sc;

--- 90 unchanged lines hidden ---
179 return (0);
180}
181
182static void
183acpi_button_notify_sleep(void *arg)
184{
185 struct acpi_button_softc *sc;
186 struct acpi_softc *acpi_sc;

--- 90 unchanged lines hidden ---