mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-10-31 07:51:08 -04:00
グローバルメモリマップ追加。
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@35 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
parent
8f82ce96b6
commit
9beb912d72
72
trunk/include/ctr/hw/ARM11/mmap_global.h
Normal file
72
trunk/include/ctr/hw/ARM11/mmap_global.h
Normal file
@ -0,0 +1,72 @@
|
||||
/*---------------------------------------------------------------------------*
|
||||
Project: CtrFirm - include - ctr - HW - ARM11
|
||||
File: mmap_global.h
|
||||
|
||||
Copyright 2008 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:: #$
|
||||
$Rev: $
|
||||
$Author: $
|
||||
*---------------------------------------------------------------------------*/
|
||||
#ifndef CTR_HW_ARM11_MMAP_GLOBAL_H_
|
||||
#define CTR_HW_ARM11_MMAP_GLOBAL_H_
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
GLOBAL MEMORY MAP
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
||||
//----------------------------- MAIN
|
||||
#define HW_MAIN_MEM 0x20000000
|
||||
#define HW_MAIN_MEM_SIZE 0x04000000
|
||||
#define HW_MAIN_MEM_EX_SIZE 0x08000000
|
||||
#define HW_MAIN_MEM_EX HW_MAIN_MEM_END
|
||||
#define HW_MAIN_MEM_END (HW_MAIN_MEM + HW_MAIN_MEM_SIZE)
|
||||
#define HW_MAIN_MEM_EX_END (HW_MAIN_MEM + HW_MAIN_MEM_EX_SIZE)
|
||||
|
||||
//----------------------------- AXI-WRAM
|
||||
#define HW_AXI_WRAM 0x1ff80000
|
||||
#define HW_AXI_WRAM_END (HW_AXI_WRAM + HW_AXI_WRAM_SIZE)
|
||||
#define HW_AXI_WRAM_SIZE 0x80000
|
||||
|
||||
//----------------------------- DSP-WRAM
|
||||
#define HW_DSP_WRAM 0x1ff00000
|
||||
#define HW_DSP_WRAM_END (HW_DSP_WRAM + HW_DSP_WRAM_SIZE)
|
||||
#define HW_DSP_WRAM_SIZE 0x80000
|
||||
|
||||
//----------------------------- VRAM
|
||||
#define HW_VRAM 0x18000000
|
||||
#define HW_VRAM_END (HW_VRAM + HW_VRAM_SIZE)
|
||||
#define HW_VRAM_SIZE 0x400000
|
||||
|
||||
//----------------------------- Private WRAM
|
||||
#define HW_PRV_WRAM 0x08000000
|
||||
#define HW_PRV_WRAM_END (HW_PRV_WRAM + HW_PRV_WRAM_SIZE)
|
||||
#define HW_PRV_WRAM_SIZE 0x100000
|
||||
|
||||
//----------------------------- IOs
|
||||
#define HW_IOREG 0x10000000
|
||||
#define HW_IOREG_END 0x18000000
|
||||
#define HW_REG_BASE HW_IOREG // alias
|
||||
|
||||
//----------------------------- System ROM
|
||||
#define HW_BIOS 0x00000000
|
||||
#define HW_BIOS_END (HW_BIOS + HW_BIOS_SIZE)
|
||||
#define HW_BIOS_SIZE 0x00010000
|
||||
|
||||
#define HW_RESET_VECTOR HW_BIOS
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
#endif /* CTR_HW_ARM11_MMAP_GLOBAL_H_ */
|
||||
72
trunk/include/ctr/hw/ARM9/mmap_global.h
Normal file
72
trunk/include/ctr/hw/ARM9/mmap_global.h
Normal file
@ -0,0 +1,72 @@
|
||||
/*---------------------------------------------------------------------------*
|
||||
Project: CtrFirm - include - ctr - HW - ARM9
|
||||
File: mmap_global.h
|
||||
|
||||
Copyright 2008 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:: #$
|
||||
$Rev: $
|
||||
$Author: $
|
||||
*---------------------------------------------------------------------------*/
|
||||
#ifndef CTR_HW_ARM9_MMAP_GLOBAL_H_
|
||||
#define CTR_HW_ARM9_MMAP_GLOBAL_H_
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
GLOBAL MEMORY MAP
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
||||
//----------------------------- MAIN
|
||||
#define HW_MAIN_MEM 0x20000000
|
||||
#define HW_MAIN_MEM_SIZE 0x04000000
|
||||
#define HW_MAIN_MEM_EX_SIZE 0x08000000
|
||||
#define HW_MAIN_MEM_EX HW_MAIN_MEM_END
|
||||
#define HW_MAIN_MEM_END (HW_MAIN_MEM + HW_MAIN_MEM_SIZE)
|
||||
#define HW_MAIN_MEM_EX_END (HW_MAIN_MEM + HW_MAIN_MEM_EX_SIZE)
|
||||
|
||||
//----------------------------- AXI-WRAM
|
||||
#define HW_AXI_WRAM 0x1ff80000
|
||||
#define HW_AXI_WRAM_END (HW_AXI_WRAM + HW_AXI_WRAM_SIZE)
|
||||
#define HW_AXI_WRAM_SIZE 0x80000
|
||||
|
||||
//----------------------------- DSP-WRAM (only DMAC2)
|
||||
#define HW_DSP_WRAM 0x1ff00000
|
||||
#define HW_DSP_WRAM_END (HW_DSP_WRAM + HW_DSP_WRAM_SIZE)
|
||||
#define HW_DSP_WRAM_SIZE 0x80000
|
||||
|
||||
//----------------------------- VRAM
|
||||
#define HW_VRAM 0x18000000
|
||||
#define HW_VRAM_END (HW_VRAM + HW_VRAM_SIZE)
|
||||
#define HW_VRAM_SIZE 0x400000
|
||||
|
||||
//----------------------------- Private WRAM
|
||||
#define HW_PRV_WRAM 0x08000000
|
||||
#define HW_PRV_WRAM_END (HW_PRV_WRAM + HW_PRV_WRAM_SIZE)
|
||||
#define HW_PRV_WRAM_SIZE 0x100000
|
||||
|
||||
//----------------------------- IOs
|
||||
#define HW_IOREG 0x10000000
|
||||
#define HW_IOREG_END 0x18000000
|
||||
#define HW_REG_BASE HW_IOREG // alias
|
||||
|
||||
//----------------------------- System ROM
|
||||
#define HW_BIOS 0xffff0000
|
||||
#define HW_BIOS_END (HW_BIOS + HW_BIOS_SIZE)
|
||||
#define HW_BIOS_SIZE 0x00010000
|
||||
|
||||
#define HW_RESET_VECTOR HW_BIOS
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
#endif /* CTR_HW_ARM9_MMAP_GLOBAL_H_ */
|
||||
Loading…
Reference in New Issue
Block a user