summaryrefslogtreecommitdiff
path: root/amalthea/mailbox-regs.h
blob: 0a2fb27b2a42888b138857c3d2fa5228a5892f24 (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
28
29
30
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * GXP mailbox registers.
 *
 * Copyright (C) 2022 Google LLC
 */

#ifndef __AMALTHEA_MAILBOX_REGS_H__
#define __AMALTHEA_MAILBOX_REGS_H__

/* Mailbox CSRs */
#define MBOX_MCUCTLR_OFFSET 0x0000

#define MBOX_INTGR0_OFFSET 0x0020
#define MBOX_INTMSR0_OFFSET 0x0030

#define MBOX_INTCR1_OFFSET 0x0044
#define MBOX_INTMR1_OFFSET 0x0048
#define MBOX_INTSR1_OFFSET 0x004C
#define MBOX_INTMSR1_OFFSET 0x0050

/* Mailbox Shared Data Registers  */
#define MBOX_DATA_REG_BASE 0x0080

#define MBOX_DATA_STATUS_OFFSET 0x00
#define MBOX_DATA_DESCRIPTOR_ADDR_OFFSET 0x04
#define MBOX_DATA_CMD_TAIL_RESP_HEAD_OFFSET 0x08
#define MBOX_DATA_CMD_HEAD_RESP_TAIL_OFFSET 0x0C

#endif /* __AMALTHEA_MAILBOX_REGS_H__ */