summaryrefslogtreecommitdiff
path: root/arm9/lib/include/CARD_rom.h
blob: c43a2f06a2084f31a6e554c78f5c03069245157d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef NITRO_CARD_ROM_H_
#define NITRO_CARD_ROM_H_

#include "MI_exMemory.h"

typedef struct
{
    u32 offset;
    u32 length;
}
CARDRomRegion;

static inline const CARDRomRegion * CARD_GetRomRegionOVT(MIProcessor target)
{
    return (target == MI_PROCESSOR_ARM9)
    ? (const CARDRomRegion *)((const u8 *)HW_ROM_HEADER_BUF + 0x50)
    : (const CARDRomRegion *)((const u8 *)HW_ROM_HEADER_BUF + 0x58);
}

#endif //NITRO_CARD_ROM_H_