habanalabs: add gaudi asic-dependent code
authorOded Gabbay <oded.gabbay@gmail.com>
Mon, 11 May 2020 07:29:27 +0000 (10:29 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2020 11:48:41 +0000 (14:48 +0300)
commitac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399
treed5285f4d57b1e88aaea03219aa0843fcd9244597
parent466c7822b054ffe5bb425c8f98d08676501836e8
habanalabs: add gaudi asic-dependent code

Add the ASIC-dependent code for GAUDI. Supply (almost) all of the function
callbacks that the driver's common code need to initialize, finalize and
submit workloads to the GAUDI ASIC.

It also contains the code to initialize the F/W of the GAUDI ASIC and to
receive events from the F/W.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/Makefile
drivers/misc/habanalabs/gaudi/Makefile [new file with mode: 0644]
drivers/misc/habanalabs/gaudi/gaudi.c [new file with mode: 0644]
drivers/misc/habanalabs/gaudi/gaudiP.h [new file with mode: 0644]
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/habanalabs_drv.c
drivers/misc/habanalabs/include/gaudi/gaudi_async_ids_map.h [new file with mode: 0644]