FreeBSD/sys/powerpc/mpc85xx/mpc85xx_gpio.c
/* Get a specific pin's capabilities. */
Get a specific pin's capabilities.
Get a specific pin ' s capabilities .
static int
mpc85xx_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);
	return (0);
}
static int mpc85xx_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 ) ; return ( 0 ) ; }
Get a specific pin's capabilities.
Get a specific pin ' s capabilities .