OpenGrok
Cross Reference: gpioirq.c
xref
: /
src
/
sys
/
dev
/
gpio
/
gpioirq.c
Home
|
History
|
Annotate
|
Download
|
only in
gpio
History log of
/src/sys/dev/gpio/gpioirq.c
Revision
Date
Author
Comments
1.4
10-Feb-2024
andvar
fix various typos in comments and log messages.
1.3
10-Nov-2023
brad
For /dev/ reads against gpioirq(4) implement the following:
o O_NONBLOCK on reads
o Add a d_poll function and associated sel[init|notify|record|destroy]
calls to the driver so that select(2) and poll(2) work as expected.
With these in place async use cases work against /dev/gpioirqN
1.2
06-Nov-2023
brad
gpioirq(4) version 2
This update makes this driver more than just an example and allows for:
o More than one pin to be attached to a gpioirq instance. That is,
the mask parameter can be greater than 0x01 now.
o A /dev/gpioirqN device that allows GPIO pin interrupts to be
transported into userland. This is a device that can be opened for
reading with a simple fixed output indicating the device unit, pin
number and current pin state.
This update was used as part of a physical intrusion detection system
where multiple switches (i.e. window magnetic reed switches and etc.)
are tied to a bunch of GPIO inputs with userland software that reacts
to the pins changing state.
1.1
19-May-2018
thorpej
branches: 1.1.2; 1.1.36;
Add an example "gpioirq" driver that demonstrates interrupts on GPIO
pins. Will be enhanced in the future to support sending events to
user space on edge-triggered interrupt events.
Based on initial work by Brad Spencer.
PR kern/51676
1.1.36.2
26-Nov-2023
bouyer
Pull up following revision(s) (requested by brad in ticket #464):
sys/dev/gpio/gpioirq.c: revision 1.3
For /dev/ reads against gpioirq(4) implement the following:
o O_NONBLOCK on reads
o Add a d_poll function and associated sel[init|notify|record|destroy]
calls to the driver so that select(2) and poll(2) work as expected.
With these in place async use cases work against /dev/gpioirqN
1.1.36.1
26-Nov-2023
bouyer
Pull up following revision(s) (requested by brad in ticket #461):
sys/dev/gpio/gpiovar.h: revision 1.19
share/man/man4/gpioirq.4: revision 1.4 via patch
sys/dev/gpio/gpio.c: revision 1.73
etc/MAKEDEV.tmpl: revision 1.234
sys/conf/majors: revision 1.103
sys/dev/gpio/gpioirq.c: revision 1.2
gpioirq(4) version 2
This update makes this driver more than just an example and allows for:
o More than one pin to be attached to a gpioirq instance. That is,
the mask parameter can be greater than 0x01 now.
o A /dev/gpioirqN device that allows GPIO pin interrupts to be
transported into userland. This is a device that can be opened for
reading with a simple fixed output indicating the device unit, pin
number and current pin state.
This update was used as part of a physical intrusion detection system
where multiple switches (i.e. window magnetic reed switches and etc.)
are tied to a bunch of GPIO inputs with userland software that reacts
to the pins changing state.
1.1.2.2
21-May-2018
pgoyette
Sync with HEAD
1.1.2.1
19-May-2018
pgoyette
file gpioirq.c was added on branch pgoyette-compat on 2018-05-21 04:36:05 +0000
Indexes created Fri Sep 26 20:09:58 GMT 2025