Add basic interrupt management code to gpiobus and ofw_gpiobus.
authorloos <loos@FreeBSD.org>
Tue, 18 Nov 2014 01:38:39 +0000 (01:38 +0000)
committerloos <loos@FreeBSD.org>
Tue, 18 Nov 2014 01:38:39 +0000 (01:38 +0000)
commitf6e40bf83523cc4300cfae4f3e9e2c37146ff612
tree8218e996f780109209d86fab190c65a3584505cb
parent3b8560b96524208c042013355ce68add2f05f8b0
Add basic interrupt management code to gpiobus and ofw_gpiobus.

This is the general support to allow the use of GPIO pins as interrupt
sources for direct gpiobus children.

The use of GPIO pins as generic interrupt sources (for an ethernet driver
for example) will only be possible when arm/intrng is complete.  Then, most
of this code will need to be rewritten, but it works for now, is better
than what we have and will allow further developments.

Tested on: ar71xx (RSPRO), am335x (BBB), bcm2835 (Raspberry pi)
Differential Revision: https://reviews.freebsd.org/D999
Reviewed by: rpaulo
sys/dev/gpio/gpiobus.c
sys/dev/gpio/gpiobusvar.h
sys/dev/gpio/ofw_gpiobus.c