Deleted Added
full compact
acpi_thermal.c (97274) acpi_thermal.c (102470)
1/*-
2 * Copyright (c) 2000, 2001 Michael Smith
3 * Copyright (c) 2000 BSDi
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 2000, 2001 Michael Smith
3 * Copyright (c) 2000 BSDi
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/acpica/acpi_thermal.c 97274 2002-05-25 11:18:03Z bde $
27 * $FreeBSD: head/sys/dev/acpica/acpi_thermal.c 102470 2002-08-27 07:53:55Z iwasaki $
28 */
29
30#include "opt_acpi.h"
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/kthread.h>
34#include <sys/lock.h>
35#include <sys/mutex.h>

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

531{
532 ACPI_HANDLE cooler;
533
534 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
535
536 ACPI_ASSERTLOCK;
537
538 switch(obj->Type) {
28 */
29
30#include "opt_acpi.h"
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/kthread.h>
34#include <sys/lock.h>
35#include <sys/mutex.h>

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

531{
532 ACPI_HANDLE cooler;
533
534 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
535
536 ACPI_ASSERTLOCK;
537
538 switch(obj->Type) {
539 case ACPI_TYPE_ANY:
540 ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "called to turn %s off\n", acpi_name(obj->Reference.Handle)));
541
542 acpi_pwr_switch_consumer(obj->Reference.Handle, ACPI_STATE_D3);
543 break;
544
539 case ACPI_TYPE_STRING:
540 ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "called to turn %s off\n", obj->String.Pointer));
541
542 /*
543 * Find the handle for the device and turn it off.
544 * The String object here seems to contain a fully-qualified path, so we
545 * don't have to search for it in our parents.
546 *

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

571 ACPI_HANDLE cooler;
572 ACPI_STATUS status;
573
574 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
575
576 ACPI_ASSERTLOCK;
577
578 switch(obj->Type) {
545 case ACPI_TYPE_STRING:
546 ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "called to turn %s off\n", obj->String.Pointer));
547
548 /*
549 * Find the handle for the device and turn it off.
550 * The String object here seems to contain a fully-qualified path, so we
551 * don't have to search for it in our parents.
552 *

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

577 ACPI_HANDLE cooler;
578 ACPI_STATUS status;
579
580 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
581
582 ACPI_ASSERTLOCK;
583
584 switch(obj->Type) {
585 case ACPI_TYPE_ANY:
586 ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "called to turn %s on\n", acpi_name(obj->Reference.Handle)));
587
588 if (ACPI_FAILURE(status = acpi_pwr_switch_consumer(obj->Reference.Handle, ACPI_STATE_D0))) {
589 ACPI_VPRINT(sc->tz_dev, acpi_device_get_parent_softc(sc->tz_dev),
590 "failed to activate %s - %s\n", acpi_name(obj->Reference.Handle),
591 AcpiFormatException(status));
592 }
593 break;
594
579 case ACPI_TYPE_STRING:
580 ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "called to turn %s on\n", obj->String.Pointer));
581
582 /*
583 * Find the handle for the device and turn it off.
584 * The String object here seems to contain a fully-qualified path, so we
585 * don't have to search for it in our parents.
586 *

--- 219 unchanged lines hidden ---
595 case ACPI_TYPE_STRING:
596 ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "called to turn %s on\n", obj->String.Pointer));
597
598 /*
599 * Find the handle for the device and turn it off.
600 * The String object here seems to contain a fully-qualified path, so we
601 * don't have to search for it in our parents.
602 *

--- 219 unchanged lines hidden ---