Lines Matching +full:acpi +full:- +full:based

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright © 2021-2022 Dmitry Salychev
31 * The DPAA2 Management Complex (MC) Bus Driver (ACPI-based).
35 * hardware objects used in network-oriented packet processing applications.
48 #include <contrib/dev/acpica/include/acpi.h>
80 if (s == -1)
99 s = acpi_GetInteger(h, "_UID", &sc->uid);
105 s = device_get_property(dev, "reg", &sc->reg, sizeof(sc->reg),
107 if (s == -1) {
112 s = device_get_property(dev, "managed", sc->managed,
113 sizeof(sc->managed), DEVICE_PROP_ANY);
114 s = device_get_property(dev, "phy-connection-type", sc->phy_conn_type,
115 sizeof(sc->phy_conn_type), DEVICE_PROP_ANY);
116 s = device_get_property(dev, "phy-mode", sc->phy_mode,
117 sizeof(sc->phy_mode), DEVICE_PROP_ANY);
118 s = device_get_property(dev, "phy-handle", &sc->phy_channel,
119 sizeof(sc->phy_channel), DEVICE_PROP_HANDLE);
123 "phy-connection-type '%s' phy-mode '%s' phy-handle '%s'\n",
124 sc->uid, sc->reg, sc->managed[0] != '\0' ? sc->managed : "",
125 sc->phy_conn_type[0] != '\0' ? sc->phy_conn_type : "",
126 sc->phy_mode[0] != '\0' ? sc->phy_mode : "",
127 sc->phy_channel != NULL ? acpi_name(sc->phy_channel) : "");
141 if (sc->uid == id)
156 if (sc->phy_channel == NULL)
159 return (acpi_get_device(sc->phy_channel));
213 ctx->count++;
216 device_printf(ctx->dev, "%s: %s level %d count %d\n", __func__,
217 acpi_name(h), level, ctx->count);
224 device_printf(ctx->dev, "%s: Found child Ports _UID %u\n",
232 child = device_add_child(ctx->dev, "dpaa2_mac_dev", -1);
237 ad->ad_handle = h;
238 ad->ad_cls_class = 0xffffff;
239 resource_list_init(&ad->ad_rl);
243 ctx->countok++;
253 sc->acpi_based = true;
271 * ACPI compat layer.
345 * read on parent(dev), dev and gets us here not to ACPI. Hence we
346 * need to keep child as-is and pass it to our parent which is ACPI.
368 /* Pseudo-PCIB interface */
383 /* ACPI compar layer. */
394 DRIVER_MODULE_ORDERED(dpaa2_mc, acpi, dpaa2_mc_acpi_driver, NULL, NULL,