mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-11-27 00:00:32 +00:00
21 lines
418 B
C
21 lines
418 B
C
#ifndef SYS_FLASHROM_H
|
|
#define SYS_FLASHROM_H
|
|
|
|
#include "ultra64.h"
|
|
|
|
typedef struct {
|
|
/* 0x00 */ s32 requestType;
|
|
/* 0x04 */ s32 response;
|
|
/* 0x08 */ void* addr;
|
|
/* 0x0C */ s32 pageNum;
|
|
/* 0x10 */ s32 pageCount;
|
|
/* 0x14 */ OSMesgQueue messageQueue;
|
|
} FlashromRequest; // size = 0x2C
|
|
|
|
#define FLASHROM_REQUEST_WRITE 1
|
|
#define FLASHROM_REQUEST_READ 2
|
|
|
|
#define FLASH_TYPE_MAGIC 0x11118001
|
|
|
|
#endif
|