MV_GPIO_MAX_NPINS
sc->pin_num = MIN(pincnt, MV_GPIO_MAX_NPINS);
struct intr_event * gpio_events[MV_GPIO_MAX_NPINS];
struct gpio_pin gpio_setup[MV_GPIO_MAX_NPINS];
struct gpio_pin gpio_pins[MV_GPIO_MAX_NPINS];
sc->gpio_npins = MIN(pincnt, MV_GPIO_MAX_NPINS);