include/mgba/internal/gba/matrix.h (view raw)
1/* Copyright (c) 2013-2018 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#ifndef GBA_MATRIX_H
7#define GBA_MATRIX_H
8
9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13struct GBAMatrix {
14 uint32_t cmd;
15 uint32_t paddr;
16 uint32_t vaddr;
17 uint32_t size;
18};
19
20struct GBA;
21struct GBAMemory;
22void GBAMatrixReset(struct GBA*);
23void GBAMatrixWrite(struct GBA*, uint32_t address, uint32_t value);
24void GBAMatrixWrite16(struct GBA*, uint32_t address, uint16_t value);
25
26CXX_GUARD_END
27
28#endif