SMS-GCI-Loader/include/gcn.h

33 lines
707 B
C
Raw Normal View History

2022-11-27 06:38:23 +09:00
#include <stdint.h>
#include "typedefs.h"
#ifndef __GCN_H__
#define __GCN_H__
#define CARD_SLOT_A 0
#define CARD_SLOT_B 1
#define MEM1_START 0x8000000
#define MEM1_END 0x81800000
typedef struct CARDFileInfo
{
s32 chan;
s32 fileNo;
s32 offset;
s32 length;
u16 iBlock;
} CARDFileInfo;
s32 CARDOpen(s32 slot, const char *fileName, CARDFileInfo *fileInfo);
s32 CARDRead(CARDFileInfo *fileInfo, void *addr, s32 length, s32 offset);
s32 CARDClose(CARDFileInfo *fileInfo);
2022-12-11 09:02:56 +09:00
s32 CARDUnmount(s32 chan);
// typedef void (*CARDCallback)(s32 chan, s32 result);
2022-11-27 06:38:23 +09:00
// s32 CARDProbeEx(s32 chan, s32 *memSize, s32 *sectorSize);
// s32 CARDMount(s32 chan, void *workArea, CARDCallback detachCallback);
#endif