habanalabs: define ASIC-dependent interface for signal/wait
authorOmer Shpigelman <oshpigelman@habana.ai>
Thu, 7 May 2020 10:43:05 +0000 (13:43 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2020 11:48:41 +0000 (14:48 +0300)
commitec2f8a306ae96cba2a7437e783cc71f234789aa3
tree5ab93f8b54d1e8858819e64d3c8c8cc90e2d93d3
parentf9e5f29518c1821d794bb7ec7e7c91650f4ded14
habanalabs: define ASIC-dependent interface for signal/wait

This feature requires handling h/w resources which are a bit different from
one ASIC to the other. Therefore, we need to define a set of interfaces the
ASIC code provides to the common code to signal, wait, reset sync object
and to reset and init a queue.

As this feature is not supported in Goya, provide an empty implementation
of those functions.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/habanalabs.h