habanalabs: expose number of user interrupts
authorOded Gabbay <ogabbay@kernel.org>
Tue, 18 Jan 2022 12:58:30 +0000 (14:58 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Feb 2022 12:22:03 +0000 (14:22 +0200)
commitaa3766def7506e5d9bd6c8387dcfe3629eb2a1f2
tree2ae828a48864eff3a4a157e8d993300169ffa2cb
parent008255ec3d799e82a5aa3e913800d196bcc5393a
habanalabs: expose number of user interrupts

Currently we only expose to the user the ID of the first available
user interrupt. To make user interrupts allocation truly dynamic, we
need to also expose the number of user interrupts.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs_ioctl.c
include/uapi/misc/habanalabs.h