2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _DOLPHIN_ARQ
|
|
|
|
#define _DOLPHIN_ARQ
|
2022-09-13 04:26:54 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "dolphin/ar.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2023-01-14 09:26:24 +00:00
|
|
|
typedef struct ARQRequest ARQRequest;
|
|
|
|
typedef void (*ARQCallback)(u32 pointerToARQRequest);
|
|
|
|
|
|
|
|
struct ARQRequest {
|
|
|
|
ARQRequest* next;
|
|
|
|
u32 owner;
|
|
|
|
u32 type;
|
|
|
|
u32 priority;
|
|
|
|
u32 source;
|
|
|
|
u32 dest;
|
|
|
|
u32 length;
|
|
|
|
ARQCallback callback;
|
|
|
|
};
|
|
|
|
|
2022-09-13 04:26:54 +00:00
|
|
|
void ARQInit(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _DOLPHIN_ARQ
|