Lines Matching refs:Gpio
33 * ACPI GPIO resource support.
36 #include "gpio.h"
43 #include <sys/gpio.h>
45 #include <dev/gpio/gpiovar.h>
103 if (res->Data.Gpio.PinTableLength != 1) {
107 res->Data.Gpio.PinTableLength);
113 &res->Data.Gpio, &gpiop);
187 /* Find the device node providing the GPIO resource. */
239 if (res->Data.Gpio.ConnectionType != ctx->conntype) {
243 ctx->res = &res->Data.Gpio;
259 ACPI_RESOURCE_GPIO *gpio;
266 gpio = ctx.res;
268 rv = acpi_gpio_translate(gpio, gpiop, pin);
275 if (gpio->Triggering == ACPI_LEVEL_SENSITIVE) {
276 *irqmode = gpio->Polarity == ACPI_ACTIVE_HIGH ?
279 KASSERT(gpio->Triggering == ACPI_EDGE_SENSITIVE);
280 if (gpio->Polarity == ACPI_ACTIVE_LOW) {
282 } else if (gpio->Polarity == ACPI_ACTIVE_HIGH) {
285 KASSERT(gpio->Polarity == ACPI_ACTIVE_BOTH);