acpi_lid.c (129783) | acpi_lid.c (129805) |
---|---|
1/*- 2 * Copyright (c) 2000 Takanori Watanabe <takawata@jp.freebsd.org> 3 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * Copyright (c) 2000 Michael Smith <msmith@freebd.org> 5 * Copyright (c) 2000 BSDi 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Takanori Watanabe <takawata@jp.freebsd.org> 3 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * Copyright (c) 2000 Michael Smith <msmith@freebd.org> 5 * Copyright (c) 2000 BSDi 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_lid.c 129783 2004-05-27 18:38:45Z njl $"); | 31__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_lid.c 129805 2004-05-28 07:04:09Z njl $"); |
32 33#include "opt_acpi.h" 34#include <sys/param.h> 35#include <sys/kernel.h> 36#include <sys/bus.h> 37#include <sys/proc.h> 38 39#include "acpi.h" --- 83 unchanged lines hidden (view full) --- 123 acpi_sc = acpi_device_get_parent_softc(dev); 124 acpi_wake_sleep_prep(dev, acpi_sc->acpi_sstate); 125 return (0); 126} 127 128static int 129acpi_lid_resume(device_t dev) 130{ | 32 33#include "opt_acpi.h" 34#include <sys/param.h> 35#include <sys/kernel.h> 36#include <sys/bus.h> 37#include <sys/proc.h> 38 39#include "acpi.h" --- 83 unchanged lines hidden (view full) --- 123 acpi_sc = acpi_device_get_parent_softc(dev); 124 acpi_wake_sleep_prep(dev, acpi_sc->acpi_sstate); 125 return (0); 126} 127 128static int 129acpi_lid_resume(device_t dev) 130{ |
131 acpi_wake_run_prep(dev); |
|
131 return (0); 132} 133 134static void 135acpi_lid_notify_status_changed(void *arg) 136{ 137 struct acpi_lid_softc *sc; 138 struct acpi_softc *acpi_sc; --- 55 unchanged lines hidden --- | 132 return (0); 133} 134 135static void 136acpi_lid_notify_status_changed(void *arg) 137{ 138 struct acpi_lid_softc *sc; 139 struct acpi_softc *acpi_sc; --- 55 unchanged lines hidden --- |