1// Copyright 2018 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#pragma once
6
7static aml_mailbox_block_t vim2_mailbox_block[] = {
8    // Mailbox 0
9    {
10        .set_offset     = 0x1,
11        .stat_offset    = 0x2,
12        .clr_offset     = 0x3,
13        .payload_offset = 0x200,
14    },
15    // Mailbox 1
16    {
17        .set_offset     = 0x4,
18        .stat_offset    = 0x5,
19        .clr_offset     = 0x6,
20        .payload_offset = 0x0,
21    },
22    // Mailbox 2
23    {
24        .set_offset     = 0x7,
25        .stat_offset    = 0x8,
26        .clr_offset     = 0x9,
27        .payload_offset = 0x100,
28    },
29    // Mailbox 3
30    {
31        .set_offset     = 0xA,
32        .stat_offset    = 0xB,
33        .clr_offset     = 0xC,
34        .payload_offset = 0x280,
35    },
36    // Mailbox 4
37    {
38        .set_offset     = 0xD,
39        .stat_offset    = 0xE,
40        .clr_offset     = 0xF,
41        .payload_offset = 0x80,
42    },
43    // Mailbox 5
44    {
45        .set_offset     = 0x10,
46        .stat_offset    = 0x11,
47        .clr_offset     = 0x12,
48        .payload_offset = 0x180,
49    },
50};
51