Files
opensbi/platform/generic/include/tenstorrent/pma.h
T
Nicholas Piggin 6767861c48 platform: generic: Tenstorrent Atlantis support
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>
2026-05-09 20:57:50 +05:30

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