all repos — mgba @ 1c93b75b7e22fbe1b00da0214305c1bf2a9d0890

mGBA Game Boy Advance Emulator

src/gba/dma.h (view raw)

 1/* Copyright (c) 2013-2016 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_DMA_H
 7#define GBA_DMA_H
 8
 9#include "util/common.h"
10
11struct GBA;
12void GBADMAInit(struct GBA* gba);
13void GBADMAReset(struct GBA* gba);
14
15uint32_t GBADMAWriteSAD(struct GBA* gba, int dma, uint32_t address);
16uint32_t GBADMAWriteDAD(struct GBA* gba, int dma, uint32_t address);
17void GBADMAWriteCNT_LO(struct GBA* gba, int dma, uint16_t count);
18uint16_t GBADMAWriteCNT_HI(struct GBA* gba, int dma, uint16_t control);
19
20struct GBADMA;
21void GBADMASchedule(struct GBA* gba, int number, struct GBADMA* info);
22void GBADMARunHblank(struct GBA* gba, int32_t cycles);
23void GBADMARunVblank(struct GBA* gba, int32_t cycles);
24void GBADMAUpdate(struct GBA* gba);
25
26#endif