habanalabs: make set_pci_regions asic function
authorOhad Sharabi <osharabi@habana.ai>
Thu, 15 Jul 2021 12:20:44 +0000 (15:20 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 1 Sep 2021 15:38:24 +0000 (18:38 +0300)
commitb9317d513098d0da45ea96deff19058d1d37ae4d
tree286d28c9ef9d1762250eb59654a68e38f0e1734a
parent932adf1645cd3917dfc5678b2c3ffc84e5fa65a1
habanalabs: make set_pci_regions asic function

In order to better support variants of the same ASIC
the set_pci_regions function is now an ASIC function which
allows each ASIC to implement it internally, thus keeping
all definitions static to the file.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c