From 262fcd082f3e02853425859d8c00c360552946f0 Mon Sep 17 00:00:00 2001 From: yutaka Date: Thu, 18 Oct 2007 07:25:50 +0000 Subject: [PATCH] add memorymap for FATFS_Loader/MI_Loader git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@56 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- include/firm/hw/common/mmap_firm.h | 37 ++++++++++++++++++++++++++++++ include/firm/memorymap.h | 1 + 2 files changed, 38 insertions(+) create mode 100644 include/firm/hw/common/mmap_firm.h diff --git a/include/firm/hw/common/mmap_firm.h b/include/firm/hw/common/mmap_firm.h new file mode 100644 index 00000000..6b86cd3a --- /dev/null +++ b/include/firm/hw/common/mmap_firm.h @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------* + Project: TwlFirm - HW - include + File: mmap_firm.h + + Copyright 2007 Nintendo. All rights reserved. + + These coded instructions, statements, and computer programs contain + proprietary information of Nintendo of America Inc. and/or Nintendo + Company Ltd., and are protected by Federal copyright law. They may + not be disclosed to third parties or copied or duplicated in any form, + in whole or in part, without the prior written consent of Nintendo. + + $Date:: 2007-09-06$ + $Rev$ + $Author$ + *---------------------------------------------------------------------------*/ +#ifndef FIRM_HW_COMMON_MMAP_FIRM_H_ +#define FIRM_HW_COMMON_MMAP_FIRM_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +//------------------------------------- *_LoadBuffer +#define HW_FIRM_LOAD_BUFFER_BASE MI_GetWramMapStart_B() +#define HW_FIRM_LOAD_BUFFER_UNIT_SIZE 0x8000 +#define HW_FIRM_LOAD_BUFFER_UNIT_NUMS 8 +#define HW_FIRM_LOAD_BUFFER_SIZE (HW_FIRM_LOAD_BUFFER_UNIT_SIZE * HW_FIRM_LOAD_BUFFER_UNIT_NUMS) +#define HW_FIRM_LOAD_BUFFER_END (HW_FIRM_LOAD_BUFFER_BASE + HW_FIRM_LOAD_BUFFER_SIZE) + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +/* FIRM_HW_COMMON_MMAP_FIRM_H_ */ +#endif diff --git a/include/firm/memorymap.h b/include/firm/memorymap.h index 53a2d92b..fa95b481 100644 --- a/include/firm/memorymap.h +++ b/include/firm/memorymap.h @@ -18,6 +18,7 @@ #define FIRM_MEMORYMAP_H_ #include +#include #ifdef SDK_ARM9 #include