Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jun 2019 14:56:10 +0800
From:      Maverick Kuo <maverick.kuo@gmail.com>
To:        freebsd-arm@freebsd.org
Subject:   User space interface for GPIO interrupts
Message-ID:  <CAEKjv0BN%2BA16AeVfb0e0COS-8FH-bsXqd5MsS65U%2BFT=EW9gmw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

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

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

System startup process
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 that part??

Let users use kqueue/kevent to monitor gpio interrupt to reduce cpu load.

Regards,
Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEKjv0BN%2BA16AeVfb0e0COS-8FH-bsXqd5MsS65U%2BFT=EW9gmw>