User space interface for GPIO interrupts

Hi,

i am running 12.0-STABLE r348448 arm64 zfs root on raspberry pi3 b+.

Look at the kernel source and it seems that all the functions related to gpio
interrupt are available.

System startup about the gpio interrupt part process follow by

Bcm_gpio_intr_attach =>> Bus_setup_intr
?? bcm_gpio_intr_bank[0,1]
?? bcm_gpio_intr_internal


It seems that BCM_GPIO_GPEDS (Event Status) will be read in the
bcm_gpio_intr_internal function but it is not executed there.

am I missed something ??

but it still lack user space interface (kqueue/kevent) part, hope it will finish to reduce cpu loading.

Regards,
Chris
 
Hi,

Good News !!

after cvs to 12.0-STABLE #0 r348527M GPIO Interrupt with kqueue Works !!!

Thanks to the developers :)

Regards,
Chris
 
Hello Maverick Kuo , this is very interesting. I remember we were talking here about this missing capability in the BeagleBone a few months ago.

I am running 12-RELEASE. As far as you know is GPIO interrupt available in STABLE ? Is there some code snippet to show how to use it ?

bye
Nicola
 
I just tried recompiling kernel with that patch, however, something is missing, I get many errors like:
Code:
/usr/src/sys/dev/gpio/gpioc.c:126:18: error: function 'gpioc_poll' has internal linkage but is not defined
 
I just tried recompiling kernel with that patch, however, something is missing, I get many errors like:
Code:
/usr/src/sys/dev/gpio/gpioc.c:126:18: error: function 'gpioc_poll' has internal linkage but is not defined

maybe you should try cd /usr/src make clean ; and buildworld and buildkernel
 
Back
Top