wut  v1.7.0
Wii U Toolchain
mem.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "sync.h"
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
16 typedef enum
17 {
26 } DMAESwapMode;
27 
47 DMAECopyMem(void *dst,
48  const void *src,
49  uint32_t wordCount,
50  DMAESwapMode swap);
51 
68 DMAEFillMem(void *dst,
69  uint32_t val,
70  uint32_t wordCount);
71 
88 DMAEFillMemPhys(void *dst,
89  uint32_t val,
90  uint32_t wordCount);
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 
DMAETimeStamp DMAEFillMemPhys(void *dst, uint32_t val, uint32_t wordCount)
Starts a DMAE fill operation for a physical address.
DMAESwapMode
DMAE Memory endian swappng mode.
Definition: mem.h:17
DMAETimeStamp DMAECopyMem(void *dst, const void *src, uint32_t wordCount, DMAESwapMode swap)
Starts a DMAE copy operation.
DMAETimeStamp DMAEFillMem(void *dst, uint32_t val, uint32_t wordCount)
Starts a DMAE fill operation.
@ DMAE_SWAP_64
64 bit memory swapping.
Definition: mem.h:25
@ DMAE_SWAP_16
16 bit memory swapping.
Definition: mem.h:21
@ DMAE_SWAP_NONE
No memory swapping.
Definition: mem.h:19
@ DMAE_SWAP_32
32 bit memory swapping.
Definition: mem.h:23
uint64_t DMAETimeStamp
Timestamp for a DMAE operation.
Definition: sync.h:15