mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-24 23:01:23 -04:00
13993f9917
* Fix select_occurence in diff.py * Use 1.2.5e and metroid prime decomp to match dlphin lib funcs * Fix FRANK_COMPILER WINE typo * Double WINE use removal * Organize dolphin compiler makefile names * Use inline auto instead of special inline where applicable I couldn't make CARDOpen work with the flag though
44 lines
791 B
C
44 lines
791 B
C
#ifndef ARQ_H
|
|
#define ARQ_H
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define ARQ_CHUNK_SIZE_DEFAULT 4096
|
|
|
|
typedef void (*ARQCallback)(u32 request_address);
|
|
|
|
typedef enum _ARamType {
|
|
ARAM_DIR_MRAM_TO_ARAM,
|
|
ARAM_DIR_ARAM_TO_MRAM,
|
|
} ARamType;
|
|
|
|
typedef enum _ArqPriotity {
|
|
ARQ_PRIORITY_LOW,
|
|
ARQ_PRIORITY_HIGH,
|
|
} ArqPriotity;
|
|
|
|
typedef struct ARQRequest {
|
|
struct ARQRequest* next;
|
|
u32 owner;
|
|
u32 type;
|
|
u32 priority;
|
|
u32 source;
|
|
u32 destination;
|
|
u32 length;
|
|
ARQCallback callback;
|
|
} ARQRequest;
|
|
|
|
void ARQInit(void);
|
|
void ARQPostRequest(ARQRequest* task, u32 owner, u32 type, u32 priority, u32 source,
|
|
u32 destination, u32 length, ARQCallback callback);
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
#endif /* ARQ_H */
|