Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/gpio/gpioc.c
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | case GPIOSETNAME: | ||||
bcopy(arg, &pin, sizeof(pin)); | bcopy(arg, &pin, sizeof(pin)); | ||||
dprintf("set name on pin %d\n", pin.gp_pin); | dprintf("set name on pin %d\n", pin.gp_pin); | ||||
res = GPIOBUS_PIN_SETNAME(bus, pin.gp_pin, | res = GPIOBUS_PIN_SETNAME(bus, pin.gp_pin, | ||||
pin.gp_name); | pin.gp_name); | ||||
break; | break; | ||||
case GPIOACCESS32: | case GPIOACCESS32: | ||||
a32 = (struct gpio_access_32 *)arg; | a32 = (struct gpio_access_32 *)arg; | ||||
res = GPIO_PIN_ACCESS_32(sc->sc_pdev, a32->first_pin, | res = GPIO_PIN_ACCESS_32(sc->sc_pdev, a32->first_pin, | ||||
a32->clear_pins, a32->orig_pins, &a32->orig_pins); | a32->clear_pins, a32->change_pins, &a32->orig_pins); | ||||
ian: I already committed this fix as r346713. | |||||
break; | break; | ||||
case GPIOCONFIG32: | case GPIOCONFIG32: | ||||
c32 = (struct gpio_config_32 *)arg; | c32 = (struct gpio_config_32 *)arg; | ||||
res = GPIO_PIN_CONFIG_32(sc->sc_pdev, c32->first_pin, | res = GPIO_PIN_CONFIG_32(sc->sc_pdev, c32->first_pin, | ||||
c32->num_pins, c32->pin_flags); | c32->num_pins, c32->pin_flags); | ||||
break; | break; | ||||
default: | default: | ||||
return (ENOTTY); | return (ENOTTY); | ||||
Show All 28 Lines |
I already committed this fix as r346713.