// SPDX-License-Identifier: GPL-2.0 /* * Copyright 2016-2019 HabanaLabs, Ltd. * All Rights Reserved. */ #include "goyaP.h" #include "../include/goya/asic_reg/goya_regs.h" /* * goya_set_block_as_protected - set the given block as protected * * @hdev: pointer to hl_device structure * @block: block base address * */ static void goya_pb_set_block(struct hl_device *hdev, u64 base) { … } static void goya_init_mme_protection_bits(struct hl_device *hdev) { … } static void goya_init_dma_protection_bits(struct hl_device *hdev) { … } static void goya_init_tpc_protection_bits(struct hl_device *hdev) { … } /* * goya_init_protection_bits - Initialize protection bits for specific registers * * @hdev: pointer to hl_device structure * * All protection bits are 1 by default, means not protected. Need to set to 0 * each bit that belongs to a protected register. * */ static void goya_init_protection_bits(struct hl_device *hdev) { … } /* * goya_init_security - Initialize security model * * @hdev: pointer to hl_device structure * * Initialize the security model of the device * That includes range registers and protection bit per register * */ void goya_init_security(struct hl_device *hdev) { … } void goya_ack_protection_bits_errors(struct hl_device *hdev) { … }