Lines Matching +full:acpi +full:- +full:hid
4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/acpi/acpi.h>
42 int soc_acpi_gpio_resource_get(int bank_idx, char *hid, char *uid, struct gpio_acpi_res *res) in soc_acpi_gpio_resource_get() argument
52 acpi_child = acpi_device_get(hid, uid); in soc_acpi_gpio_resource_get()
55 return -EIO; in soc_acpi_gpio_resource_get()
74 res->irq = irq_res.irqs[0]; in soc_acpi_gpio_resource_get()
75 res->irq_flags = irq_res.flags; in soc_acpi_gpio_resource_get()
86 res->reg_base = ACPI_MMIO_GET(&mmio_res) & (~0x0FFFFFF); in soc_acpi_gpio_resource_get()
87 res->reg_base += field_val[0]; in soc_acpi_gpio_resource_get()
88 res->len = ACPI_RESOURCE_SIZE_GET(&mmio_res); in soc_acpi_gpio_resource_get()
89 res->num_pins = field_val[1]; in soc_acpi_gpio_resource_get()
90 res->pad_base = field_val[2]; in soc_acpi_gpio_resource_get()
91 res->host_owner_reg = field_val[3]; in soc_acpi_gpio_resource_get()
92 res->pad_owner_reg = field_val[4]; in soc_acpi_gpio_resource_get()
93 res->intr_stat_reg = field_val[5] - 0x40; in soc_acpi_gpio_resource_get()
94 res->base_num = field_val[6]; in soc_acpi_gpio_resource_get()
97 return -ENODEV; in soc_acpi_gpio_resource_get()