mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 06:14:12 +08:00
48 lines
1.7 KiB
C
48 lines
1.7 KiB
C
#pragma once
|
|
|
|
/*
|
|
* This file is part of open_agb_firm
|
|
* Copyright (C) 2021 derrek, profi200
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
|
|
// Note on port numbers:
|
|
// To make things easier 2 ports are assigned to each controller.
|
|
// There are a maximum of 2 controllers mapped at the same time
|
|
// and 3 (on DSi 2) controllers in total.
|
|
// Also see toshsd.h.
|
|
//
|
|
// Examples:
|
|
// Port 0 is port 0 on controller 1, port 3 is port 1 on controller 2.
|
|
#ifdef _3DS
|
|
// This define determines whenever the SD slot is accessible on
|
|
// ARM9 or ARM11 when TOSHSD_SLOT_PORT for ARM9 is set to 2.
|
|
#define TOSHSD_C2_MAP (0u) // Controller 2 (physical 3) memory mapping. 0=ARM9 0x10007000 or 1=ARM11 0x10100000.
|
|
|
|
#ifdef ARM9
|
|
#define TOSHSD_SLOT_PORT (2u) // Can be on port 0 or 2. 0 always on ARM9.
|
|
#define TOSHSD_eMMC_PORT (1u) // Port 1 only. Do not change.
|
|
#elif ARM11
|
|
#define TOSHSD_SLOT_PORT (2u) // Port 2 only. Do not change.
|
|
#define TOSHSD_eMMC_PORT (3u) // Placeholder. Do not change. Not connected/accessible.
|
|
#endif // #ifdef ARM9
|
|
|
|
#elif TWL
|
|
|
|
#define TOSHSD_SLOT_PORT (0u)
|
|
#define TOSHSD_eMMC_PORT (1u)
|
|
#endif // #ifdef _3DS
|