mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-05-23 22:31:32 +01:00
6767861c48
Add the Tenstorrent Atlantis as a generic-platform. This initial support enables the single_fw_region option, and verifies and prints HART PMA CSR configuration. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260424062520.238403-1-npiggin@gmail.com Signed-off-by: Anup Patel <anup@brainfault.org>
18 lines
447 B
C
18 lines
447 B
C
/*
|
|
* SPDX-FileCopyrightText: (c) 2025-2026 Tenstorrent USA, Inc.
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#ifndef __TENSTORRENT_PMA_H__
|
|
#define __TENSTORRENT_PMA_H__
|
|
|
|
/* Max number of PMAs for devices (CPU, IOMMU) for Tenstorrent platforms. */
|
|
#define TT_MAX_PMAS 32
|
|
|
|
u64 tt_pma_get(unsigned int n);
|
|
void tt_pma_set(unsigned int n, u64 pma);
|
|
bool tt_pma_validate(unsigned int i, u64 pma);
|
|
void tt_pma_print(unsigned int i, u64 pma);
|
|
|
|
#endif
|