mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-11-23 22:19:53 +00:00
2332f63f5a
Co-authored-by: Louis <35883445+louist103@users.noreply.github.com> Co-authored-by: Nicholas Estelami <NEstelami@users.noreply.github.com> Co-authored-by: Random06457 <28494085+Random06457@users.noreply.github.com>
27 lines
676 B
C
27 lines
676 B
C
#ifndef IRQMGR_H
|
|
#define IRQMGR_H
|
|
|
|
#include "ultra64.h"
|
|
#include "PR/os_sched.h"
|
|
|
|
typedef struct IrqMgrClient {
|
|
/* 0x0 */ struct IrqMgrClient* next;
|
|
/* 0x4 */ OSMesgQueue* queue;
|
|
} IrqMgrClient; // size = 0x8
|
|
|
|
typedef struct {
|
|
/* 0x000 */ OSScMsg verticalRetraceMesg;
|
|
/* 0x020 */ OSScMsg prenmiMsg;
|
|
/* 0x040 */ OSScMsg nmiMsg;
|
|
/* 0x060 */ OSMesgQueue irqQueue;
|
|
/* 0x078 */ OSMesg irqBuffer[8];
|
|
/* 0x098 */ OSThread thread;
|
|
/* 0x248 */ IrqMgrClient* callbacks;
|
|
/* 0x24C */ u8 prenmiStage;
|
|
/* 0x250 */ OSTime lastPrenmiTime;
|
|
/* 0x258 */ OSTimer prenmiTimer;
|
|
/* 0x278 */ OSTime lastFrameTime;
|
|
} IrqMgr; // size = 0x280
|
|
|
|
#endif
|