SMS-GCI-Loader/include/gcn.h
Matteias Collet 455384c501
wip cleanup
2022-11-27 01:55:07 +00:00

33 lines
No EOL
707 B
C

#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;
// typedef void (*CARDCallback)(s32 chan, s32 result);
s32 CARDOpen(s32 slot, const char *fileName, CARDFileInfo *fileInfo);
s32 CARDRead(CARDFileInfo *fileInfo, void *addr, s32 length, s32 offset);
s32 CARDClose(CARDFileInfo *fileInfo);
// s32 CARDProbeEx(s32 chan, s32 *memSize, s32 *sectorSize);
// s32 CARDMount(s32 chan, void *workArea, CARDCallback detachCallback);
s32 CARDUnmount(s32 chan);
#endif