]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add userland access to at91 gpio functionality via ioctl calls. Also,
authorIan Lepore <ian@FreeBSD.org>
Fri, 29 Mar 2013 19:52:57 +0000 (19:52 +0000)
committerIan Lepore <ian@FreeBSD.org>
Fri, 29 Mar 2013 19:52:57 +0000 (19:52 +0000)
commit63cdf42e8caad800ecb7a81cfa5f4301ed84499e
tree6caeda89771ba106ad9fdfa220ea942a175c94ea
parent914421fa790fc57e49eca7dbe4db021d6264094c
Add userland access to at91 gpio functionality via ioctl calls.  Also,
add the ability for userland to be notified of changes on gpio pins via
a select(2)/read(2) interface.

Change the interrupt handler from filtered to threaded.

Because of the uiomove() calls in the new interface, change locking from
standard mutex to sx.

Add / restore the at91_gpio_high_z() function.

Reviewed by: imp (long ago)
sys/arm/at91/at91_pio.c
sys/arm/at91/at91_piovar.h
sys/arm/include/at91_gpio.h [new file with mode: 0644]