Deleted Added
full compact
acpi.c (172153) acpi.c (172489)
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, 2001 Michael Smith
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, 2001 Michael Smith
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.c 172153 2007-09-13 01:37:17Z njl $");
31__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi.c 172489 2007-10-09 07:48:07Z njl $");
32
33#include "opt_acpi.h"
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/proc.h>
37#include <sys/fcntl.h>
38#include <sys/malloc.h>
39#include <sys/module.h>

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

504 * Call the ECDT probe function to provide EC functionality before
505 * the namespace has been evaluated.
506 *
507 * XXX This happens before the sysresource devices have been probed and
508 * attached so its resources come from nexus0. In practice, this isn't
509 * a problem but should be addressed eventually.
510 */
511 acpi_ec_ecdt_probe(dev);
32
33#include "opt_acpi.h"
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/proc.h>
37#include <sys/fcntl.h>
38#include <sys/malloc.h>
39#include <sys/module.h>

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

504 * Call the ECDT probe function to provide EC functionality before
505 * the namespace has been evaluated.
506 *
507 * XXX This happens before the sysresource devices have been probed and
508 * attached so its resources come from nexus0. In practice, this isn't
509 * a problem but should be addressed eventually.
510 */
511 acpi_ec_ecdt_probe(dev);
512 acpi_hpet_table_probe(dev);
513
514 /* Bring device objects and regions online. */
515 if (ACPI_FAILURE(status = AcpiInitializeObjects(flags))) {
516 device_printf(dev, "Could not initialize ACPI objects: %s\n",
517 AcpiFormatException(status));
518 goto out;
519 }
520

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

1589 break;
1590 }
1591 if (*search != NULL)
1592 break;
1593
1594 /*
1595 * Create a placeholder device for this node. Sort the placeholder
1596 * so that the probe/attach passes will run breadth-first. Orders
512
513 /* Bring device objects and regions online. */
514 if (ACPI_FAILURE(status = AcpiInitializeObjects(flags))) {
515 device_printf(dev, "Could not initialize ACPI objects: %s\n",
516 AcpiFormatException(status));
517 goto out;
518 }
519

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

1588 break;
1589 }
1590 if (*search != NULL)
1591 break;
1592
1593 /*
1594 * Create a placeholder device for this node. Sort the placeholder
1595 * so that the probe/attach passes will run breadth-first. Orders
1597 * less than 10 are reserved for special objects (i.e., system
1598 * resources). Larger values are used for all other devices.
1596 * less than ACPI_DEV_BASE_ORDER are reserved for special objects
1597 * (i.e., system resources). Larger values are used for all other
1598 * devices.
1599 */
1600 ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "scanning '%s'\n", handle_str));
1599 */
1600 ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "scanning '%s'\n", handle_str));
1601 order = (level + 1) * 10;
1601 order = (level + 1) * ACPI_DEV_BASE_ORDER;
1602 acpi_probe_order(handle, &order);
1603 child = BUS_ADD_CHILD(bus, order, NULL, -1);
1604 if (child == NULL)
1605 break;
1606
1607 /* Associate the handle with the device_t and vice versa. */
1608 acpi_set_handle(child, handle);
1609 AcpiAttachData(handle, acpi_fake_objhandler, child);

--- 1766 unchanged lines hidden ---
1602 acpi_probe_order(handle, &order);
1603 child = BUS_ADD_CHILD(bus, order, NULL, -1);
1604 if (child == NULL)
1605 break;
1606
1607 /* Associate the handle with the device_t and vice versa. */
1608 acpi_set_handle(child, handle);
1609 AcpiAttachData(handle, acpi_fake_objhandler, child);

--- 1766 unchanged lines hidden ---