summaryrefslogtreecommitdiff
path: root/amalthea/iova.h
blob: 505e8954967a4a12ef2760c5c53194d28f5e3b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * GXP IOVAs. The list of addresses for fixed device-side IOVAs
 *
 * Copyright (C) 2021-2022 Google LLC
 */

#ifndef __AMALTHEA_IOVA_H__
#define __AMALTHEA_IOVA_H__

/*
 * No local access path.
 * Need to define GXP_IOVA_SYNC_BARRIERS and GXP_IOVA_AURORA_TOP in this
 * case.
 */
#define GXP_HAS_LAP 0

#define GXP_IOVA_SYNC_BARRIERS          (0x100000)
#define GXP_IOVA_MAILBOX(_x_)           (0x18390000 + (_x_) * 0x00020000)
#define GXP_IOVA_EXT_TPU_MBX            (0x1CEC0000)
#define GXP_IOVA_AURORA_TOP             (0x25C00000)
#define GXP_IOVA_FIRMWARE(_x_)          (0xFA000000 + (_x_) * 0x0100000)
#define GXP_IOVA_FW_DATA                (0xFA400000)
#define GXP_IOVA_PRIV_FW_DATA           (0xFA500000)
#define GXP_IOVA_TPU_MBX_BUFFER(_x_)    (0xFE100000 + (_x_) * 0x00040000)

#endif /* __AMALTHEA_IOVA_H__ */