FreeBSD/sys/arm/xilinx/zy7_gpio.c
static int
zy7_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps)
{

	if (!VALID_PIN(pin))
		return (EINVAL);

	*caps = (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE);

	return (0);
}
/* Get a specific pin's capabilities. */
Get a specific pin's capabilities.
Get a specific pin ' s capabilities .
static int
zy7_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps)
{
	if (!VALID_PIN(pin))
		return (EINVAL);
	*caps = (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE);
	return (0);
}
static int zy7_gpio_pin_getcaps ( device_t dev , uint32_t pin , uint32_t * caps ) { if ( ! VALID_PIN ( pin ) ) return ( EINVAL ) ; * caps = ( GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE ) ; return ( 0 ) ; }
Get a specific pin's capabilities.
Get a specific pin ' s capabilities .