Home
last modified time | relevance | path

Searched refs:gpiobase (Results 1 – 3 of 3) sorted by relevance

/openbsd/sys/dev/acpi/
H A Dpchgpio.c46 int16_t gpiobase; member
593 if (pin >= sc->sc_device->groups[i].gpiobase && in pchgpio_find_group()
594 pin < sc->sc_device->groups[i].gpiobase + npads) in pchgpio_find_group()
679 reg |= (1 << (pin - group->gpiobase)); in pchgpio_intr_establish()
705 reg |= (1 << (pin - group->gpiobase)); in pchgpio_intr_enable()
731 reg &= ~(1 << (pin - group->gpiobase)); in pchgpio_intr_disable()
740 int gpiobase, pin, handled = 0; in pchgpio_intr_handle() local
745 gpiobase = sc->sc_device->groups[group].gpiobase; in pchgpio_intr_handle()
747 pin = gpiobase + bit; in pchgpio_intr_handle()
881 gpi_ie |= (1 << (pin - group->gpiobase)); in pchgpio_restore_pin()
[all …]
/openbsd/sys/arch/i386/pci/
H A Dgscpcib.c92 pcireg_t gpiobase; in gscpcib_attach() local
97 gpiobase = pci_conf_read(pa->pa_pc, pa->pa_tag, GSCGPIO_BASE); in gscpcib_attach()
99 if (PCI_MAPREG_IO_ADDR(gpiobase) == 0 || in gscpcib_attach()
100 bus_space_map(sc->sc_gpio_iot, PCI_MAPREG_IO_ADDR(gpiobase), in gscpcib_attach()
/openbsd/sys/arch/loongson/loongson/
H A Dyeeloong_machdep.c470 vaddr_t gpiobase; in fuloong_powerdown() local
472 gpiobase = BONITO_PCIIO_BASE + (rdmsr(DIVIL_LBAR_GPIO) & 0xff00); in fuloong_powerdown()
474 REGVAL(gpiobase + GPIOL_OUT_EN) = GPIO_ATOMIC_VALUE(13, 1); in fuloong_powerdown()
476 REGVAL(gpiobase + GPIOL_OUT_VAL) = GPIO_ATOMIC_VALUE(13, 0); in fuloong_powerdown()