mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-06-19 01:05:32 -04:00
(shirait)
FATFSフォーマッタおよびFATFSサンプル追加 git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@257 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
parent
0eca3a2683
commit
8d4eb3a702
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <brom.h>
|
#include <brom.h>
|
||||||
#include <ctr/hw/ARM11/ioreg_MI.h>
|
#include <ctr/hw/ARM11/ioreg_MI.h>
|
||||||
#include "nand.h"
|
#include <brom/nand/nand.h>
|
||||||
|
|
||||||
#include "nandif_ip.h"
|
#include "nandif_ip.h"
|
||||||
#include "nandif_reg.h"
|
#include "nandif_reg.h"
|
||||||
|
@ -28,7 +28,7 @@ FIRM_CODEGEN_ALL ?= TRUE
|
|||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
#BROM_INCDIR = $(CTRBROM_ROOT)/include $(CTRBROM_ROOT)/build/libraries/fatfs/common/include ../common/include
|
#BROM_INCDIR = $(CTRBROM_ROOT)/include $(CTRBROM_ROOT)/build/libraries/fatfs/common/include ../common/include
|
||||||
#GINCLUDES = $(CTRBROM_ROOT)/include $(CTRFIRM_ROOT)/include $(CTRALL_ROOT)/include $(CTRBROM_ROOT)/build/libraries/fatfs/common/include ../common/include
|
#GINCLUDES = $(CTRBROM_ROOT)/include $(CTRFIRM_ROOT)/include $(CTRALL_ROOT)/include $(CTRBROM_ROOT)/build/libraries/fatfs/common/include ../common/include
|
||||||
INCDIR = $(CTRBROM_ROOT)/include $(CTRFIRM_ROOT)/include $(CTRFIRM_ROOT)/build/libraries/fatfs/common/include ../common/include
|
INCDIR = $(BROM_ROOT)/include $(FIRM_ROOT)/include $(FIRM_ROOT)/build/libraries/fatfs/common/include ../common/include
|
||||||
#INCDIR = $(CTRBROM_ROOT)/include ../common/include
|
#INCDIR = $(CTRBROM_ROOT)/include ../common/include
|
||||||
SRCDIR = ../common/src
|
SRCDIR = ../common/src
|
||||||
SRCS = \
|
SRCS = \
|
||||||
@ -45,6 +45,7 @@ SRCS = \
|
|||||||
rtkernfn.c \
|
rtkernfn.c \
|
||||||
drdefault.c drfile.c attach.c \
|
drdefault.c drfile.c attach.c \
|
||||||
rtfs_twl_append.c rtfs_twl_vfat_append.c \
|
rtfs_twl_append.c rtfs_twl_vfat_append.c \
|
||||||
|
drnand.c \
|
||||||
#------------------------------------------------
|
#------------------------------------------------
|
||||||
|
|
||||||
TARGET_LIB = libfatfs$(FIRM_LIBSUFFIX).a
|
TARGET_LIB = libfatfs$(FIRM_LIBSUFFIX).a
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# $Author$
|
# $Author$
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
#BROM_DEF_LINK_SCATLD = TRUE
|
#FIRM_DEF_LINK_SCATLD = TRUE
|
||||||
|
|
||||||
FIRM_TARGET = APP
|
FIRM_TARGET = APP
|
||||||
|
|
||||||
@ -25,8 +25,9 @@ SUBDIRS =
|
|||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
TARGET_BIN = thread11.dasm
|
TARGET_BIN = fatfs11.dasm
|
||||||
|
|
||||||
|
INCDIR = $(FIRM_ROOT)/include/firm/fatfs
|
||||||
SRCS = \
|
SRCS = \
|
||||||
main.c \
|
main.c \
|
||||||
|
|
||||||
|
@ -17,24 +17,24 @@
|
|||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
#BROM_DEF_LINK_SCATLD = TRUE
|
#FIRM_DEF_LINK_SCATLD = TRUE
|
||||||
|
|
||||||
BROM_TARGET = APP
|
FIRM_TARGET = APP
|
||||||
BROM_PROC = ARM9
|
FIRM_PROC = ARM9
|
||||||
|
|
||||||
SUBDIRS =
|
SUBDIRS =
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
TARGET_BIN = thread9.dasm
|
TARGET_BIN = fatfs9.dasm
|
||||||
|
|
||||||
SRCS = \
|
SRCS = \
|
||||||
main.c \
|
main.c \
|
||||||
|
|
||||||
#LCFILE = # using default
|
#LCFILE = # using default
|
||||||
|
|
||||||
include $(CTRBROM_ROOT)/build/buildtools/commondefs
|
include $(CTRFIRM_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
SRCDIR = . $(ROOT)/bootrom/build/bootrom/thread/ARM9 \
|
SRCDIR = . $(ROOT)/bootrom/build/bootrom/thread/ARM9 \
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN_BASENAME).axf
|
|||||||
do-build: $(TARGETS)
|
do-build: $(TARGETS)
|
||||||
|
|
||||||
|
|
||||||
include $(CTRBROM_ROOT)/build/buildtools/modulerules
|
include $(CTRFIRM_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
|
||||||
#===== End of Makefile =====
|
#===== End of Makefile =====
|
||||||
|
0
trunk/firmware/include/firm/fatfs/_
Normal file
0
trunk/firmware/include/firm/fatfs/_
Normal file
25
trunk/firmware/include/firm/fatfs/attach.h
Normal file
25
trunk/firmware/include/firm/fatfs/attach.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Project: CTR - for RTFS
|
||||||
|
File: attach.h
|
||||||
|
|
||||||
|
2006 Nintendo.
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef __ATTACH_H__
|
||||||
|
#define __ATTACH_H__
|
||||||
|
|
||||||
|
|
||||||
|
#include <brom.h>
|
||||||
|
#include <rtfs.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
API
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
BOOLEAN rtfs_attach( int driveno, DDRIVE* pdr, char* dev_name);
|
||||||
|
BOOLEAN rtfs_detach( int driveno);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif /*__ATTACH_H__*/
|
446
trunk/firmware/include/firm/fatfs/csstrtab.h
Normal file
446
trunk/firmware/include/firm/fatfs/csstrtab.h
Normal file
@ -0,0 +1,446 @@
|
|||||||
|
byte *rtfs_strtab_user_prompt(int prompt_id);
|
||||||
|
byte *rtfs_strtab_user_string(int string_id);
|
||||||
|
|
||||||
|
#define USTRING_SYS_NULL 100
|
||||||
|
#define USTRING_SYS_BADALIAS 101
|
||||||
|
#define USTRING_SYS_BADLFN 102
|
||||||
|
#define USTRING_SYS_UCRESERVED_NAMES 103
|
||||||
|
#define USTRING_SYS_LCRESERVED_NAMES 104
|
||||||
|
#define USTRING_SYS_VOLUME_LABEL 105
|
||||||
|
#define USTRING_SYS_OEMNAME 106
|
||||||
|
#define USTRING_SYS_TAB 107
|
||||||
|
#define USTRING_SYS_FSFILENAME 108
|
||||||
|
#define USTRING_CHKDSK_01 200
|
||||||
|
#define USTRING_CHKDSK_02 201
|
||||||
|
#define USTRING_CHKDSK_03 202
|
||||||
|
#define USTRING_CHKDSK_04 203
|
||||||
|
#define USTRING_CHKDSK_05 204
|
||||||
|
#define USTRING_CHKDSK_06 205
|
||||||
|
#define USTRING_CHKDSK_07 206
|
||||||
|
#define USTRING_CHKDSK_08 207
|
||||||
|
#define USTRING_CHKDSK_09 208
|
||||||
|
#define USTRING_CHKDSK_10 209
|
||||||
|
#define USTRING_CHKDSK_11 210
|
||||||
|
#define USTRING_CHKDSK_12 211
|
||||||
|
#define USTRING_CHKDSK_13 212
|
||||||
|
#define USTRING_CHKDSK_14 213
|
||||||
|
#define USTRING_CHKDSK_15 214
|
||||||
|
#define USTRING_CHKDSK_16 215
|
||||||
|
#define USTRING_CHKDSK_17 216
|
||||||
|
#define USTRING_CHKDSK_18 217
|
||||||
|
#define USTRING_CHKDSK_19 218
|
||||||
|
#define USTRING_CHKDSK_20 219
|
||||||
|
#define USTRING_CHKDSK_21 220
|
||||||
|
#define USTRING_CHKDSK_22 221
|
||||||
|
#define USTRING_CHKDSK_23 222
|
||||||
|
#define USTRING_CHKDSK_24 223
|
||||||
|
#define USTRING_CHKDSK_25 224
|
||||||
|
#define USTRING_CHKDSK_26 225
|
||||||
|
#define USTRING_CHKDSK_27 226
|
||||||
|
#define USTRING_CHKDSK_28 227
|
||||||
|
#define USTRING_CHKDSK_29 228
|
||||||
|
#define USTRING_CHKDSK_30 229
|
||||||
|
#define USTRING_CHKDSK_31 230
|
||||||
|
#define USTRING_CHKDSK_32 231
|
||||||
|
#define USTRING_CHKDSK_33 232
|
||||||
|
#define USTRING_CHKDSK_34 233
|
||||||
|
#define USTRING_CHKDSK_35 234
|
||||||
|
#define USTRING_CHKDSK_36 235
|
||||||
|
#define USTRING_CHKDSK_37 236
|
||||||
|
#define USTRING_CHKDSK_38 237
|
||||||
|
#define USTRING_CHKDSK_39 238
|
||||||
|
#define USTRING_CHKDSK_40 239
|
||||||
|
#define USTRING_CHKDSK_41 240
|
||||||
|
#define USTRING_CHKDSK_42 241
|
||||||
|
#define USTRING_CHKDSK_43 242
|
||||||
|
#define USTRING_CHKDSK_44 243
|
||||||
|
#define USTRING_CHKDSK_45 244
|
||||||
|
#define USTRING_CHKDSK_46 245
|
||||||
|
#define USTRING_CHKDSK_47 246
|
||||||
|
#define USTRING_CHKDSK_48 247
|
||||||
|
#define USTRING_CHKDSK_49 248
|
||||||
|
#define USTRING_CHKDSK_50 249
|
||||||
|
#define USTRING_CHKDSK_51 250
|
||||||
|
#define USTRING_CHKDSK_52 251
|
||||||
|
#define USTRING_CHKDSK_53 252
|
||||||
|
#define USTRING_CHKDSK_54 253
|
||||||
|
#define USTRING_CHKDSK_55 254
|
||||||
|
#define USTRING_CHKDSK_56 255
|
||||||
|
#define USTRING_CHKDSK_57 256
|
||||||
|
#define USTRING_CHKDSK_58 257
|
||||||
|
#define USTRING_CHKDSK_59 258
|
||||||
|
#define USTRING_CHKDSK_60 259
|
||||||
|
#define USTRING_CHKDSK_61 260
|
||||||
|
#define USTRING_CHKDSK_62 261
|
||||||
|
#define USTRING_CRITERR_01 400
|
||||||
|
#define USTRING_CRITERR_02 401
|
||||||
|
#define USTRING_CRITERR_03 402
|
||||||
|
#define USTRING_CRITERR_04 403
|
||||||
|
#define USTRING_CRITERR_05 404
|
||||||
|
#define USTRING_CRITERR_06 405
|
||||||
|
#define USTRING_CRITERR_07 406
|
||||||
|
#define USTRING_CRITERR_08 407
|
||||||
|
#define USTRING_CRITERR_09 408
|
||||||
|
#define USTRING_CRITERR_10 409
|
||||||
|
#define USTRING_FLDRVER_01 600
|
||||||
|
#define USTRING_FLDRVER_02 601
|
||||||
|
#define USTRING_FLDRVER_03 602
|
||||||
|
#define USTRING_FLDRVER_04 603
|
||||||
|
#define USTRING_FLDRVER_05 604
|
||||||
|
#define USTRING_FLDRVER_06 605
|
||||||
|
#define USTRING_FLDRVER_07 606
|
||||||
|
#define USTRING_FLDRVER_08 607
|
||||||
|
#define USTRING_FLDRVER_09 608
|
||||||
|
#define USTRING_FLDRVER_10 609
|
||||||
|
#define USTRING_FLDRVER_11 610
|
||||||
|
#define USTRING_FLDRVER_12 611
|
||||||
|
#define USTRING_FLDRVER_13 612
|
||||||
|
#define USTRING_FLDRVER_14 613
|
||||||
|
#define USTRING_FLDRVER_15 614
|
||||||
|
#define USTRING_FLDRVER_16 615
|
||||||
|
#define USTRING_FLDRVER_17 616
|
||||||
|
#define USTRING_FLDRVER_18 617
|
||||||
|
#define USTRING_FLDRVER_19 618
|
||||||
|
#define USTRING_FLASHDRV_01 800
|
||||||
|
#define USTRING_FLASHDRV_02 801
|
||||||
|
#define USTRING_FLASHDRV_03 802
|
||||||
|
#define USTRING_FLASHDRV_04 803
|
||||||
|
#define USTRING_FLASHDRV_05 804
|
||||||
|
#define USTRING_FLASHDRV_06 805
|
||||||
|
#define USTRING_FLASHDRV_07 806
|
||||||
|
#define USTRING_FLASHDRV_08 807
|
||||||
|
#define USTRING_FLASHDRV_09 808
|
||||||
|
#define USTRING_FLASHDRV_10 809
|
||||||
|
#define USTRING_FLASHDRV_11 810
|
||||||
|
#define USTRING_FLASHDRV_12 811
|
||||||
|
#define USTRING_FLASHDRV_13 812
|
||||||
|
#define USTRING_FLASHDRV_14 813
|
||||||
|
#define USTRING_FLASHDRV_15 814
|
||||||
|
#define USTRING_FLASHDRV_16 815
|
||||||
|
#define USTRING_FLASHDRV_17 816
|
||||||
|
#define USTRING_FLASHDRV_18 817
|
||||||
|
#define USTRING_FLASHDRV_19 818
|
||||||
|
#define USTRING_FLASHDRV_20 819
|
||||||
|
#define USTRING_FLASHDRV_21 820
|
||||||
|
#define USTRING_FLASHDRV_22 821
|
||||||
|
#define USTRING_FLASHDRV_23 822
|
||||||
|
#define USTRING_FLASHDRV_24 823
|
||||||
|
#define USTRING_FLASHDRV_25 824
|
||||||
|
#define USTRING_FLASHDRV_26 825
|
||||||
|
#define USTRING_FLASHDRV_27 826
|
||||||
|
#define USTRING_FLASHDRV_28 827
|
||||||
|
#define USTRING_FLASHDRV_29 828
|
||||||
|
#define USTRING_FLASHDRV_30 829
|
||||||
|
#define USTRING_FLASHDSK_01 1000
|
||||||
|
#define USTRING_FLASHDSK_02 1001
|
||||||
|
#define USTRING_FLASHEMU_01 1200
|
||||||
|
#define USTRING_FLASHEMU_02 1201
|
||||||
|
#define USTRING_FLASHEMU_03 1202
|
||||||
|
#define USTRING_FLASHEMU_04 1203
|
||||||
|
#define USTRING_FLASHEMU_05 1204
|
||||||
|
#define USTRING_FLASHEMU_06 1205
|
||||||
|
#define USTRING_FLASHEMU_07 1206
|
||||||
|
#define USTRING_RTFSINIT_01 1400
|
||||||
|
#define USTRING_RTFSINIT_02 1401
|
||||||
|
#define USTRING_RTFSINIT_03 1402
|
||||||
|
#define USTRING_RTFSINIT_04 1403
|
||||||
|
#define USTRING_RTFSINIT_05 1404
|
||||||
|
#define USTRING_RTFSINIT_06 1405
|
||||||
|
#define USTRING_RTFSINIT_07 1406
|
||||||
|
#define USTRING_RTFSINIT_08 1407
|
||||||
|
#define USTRING_RTFSINIT_09 1408
|
||||||
|
#define USTRING_RTFSINIT_10 1409
|
||||||
|
#define USTRING_RTFSINIT_11 1410
|
||||||
|
#define USTRING_RTFSINIT_12 1411
|
||||||
|
#define USTRING_RTFSINIT_13 1412
|
||||||
|
#define USTRING_IDEDRV_01 1600
|
||||||
|
#define USTRING_IDEDRV_02 1601
|
||||||
|
#define USTRING_IDEDRV_03 1602
|
||||||
|
#define USTRING_IDEDRV_04 1603
|
||||||
|
#define USTRING_IDEDRV_05 1604
|
||||||
|
#define USTRING_PORTMAIN_01 1800
|
||||||
|
#define USTRING_PORTMAIN_02 1801
|
||||||
|
#define USTRING_PORTKERN_01 2000
|
||||||
|
#define USTRING_PORTKERN_02 2001
|
||||||
|
#define USTRING_PORTKERN_03 2002
|
||||||
|
#define USTRING_PORTKERN_04 2003
|
||||||
|
#define USTRING_RTFSDEM_01 2200
|
||||||
|
#define USTRING_RTFSDEM_02 2201
|
||||||
|
#define USTRING_RTFSDEM_03 2202
|
||||||
|
#define USTRING_RTFSDEM_04 2203
|
||||||
|
#define USTRING_RTFSDEM_05 2204
|
||||||
|
#define USTRING_RTFSDEM_06 2205
|
||||||
|
#define USTRING_RTFSDEM_07 2206
|
||||||
|
#define USTRING_RTFSDEM_08 2207
|
||||||
|
#define USTRING_RTFSDEM_09 2208
|
||||||
|
#define USTRING_RTFSDEM_10 2209
|
||||||
|
#define USTRING_RTFSDEM_11 2210
|
||||||
|
#define USTRING_RTFSDEM_12 2211
|
||||||
|
#define USTRING_RTFSDEM_13 2212
|
||||||
|
#define USTRING_RTFSDEM_14 2213
|
||||||
|
#define USTRING_RTFSDEM_15 2214
|
||||||
|
#define USTRING_RTFSDEM_16 2215
|
||||||
|
#define USTRING_RTFSDEM_17 2216
|
||||||
|
#define USTRING_TSTSH_01 2400
|
||||||
|
#define USTRING_TSTSH_02 2401
|
||||||
|
#define USTRING_TSTSH_03 2402
|
||||||
|
#define USTRING_TSTSH_04 2403
|
||||||
|
#define USTRING_TSTSH_05 2404
|
||||||
|
#define USTRING_TSTSH_06 2405
|
||||||
|
#define USTRING_TSTSH_07 2406
|
||||||
|
#define USTRING_TSTSH_08 2407
|
||||||
|
#define USTRING_TSTSH_09 2408
|
||||||
|
#define USTRING_TSTSH_10 2409
|
||||||
|
#define USTRING_TSTSH_11 2410
|
||||||
|
#define USTRING_TSTSH_12 2411
|
||||||
|
#define USTRING_TSTSH_13 2412
|
||||||
|
#define USTRING_TSTSH_14 2413
|
||||||
|
#define USTRING_TSTSH_15 2414
|
||||||
|
#define USTRING_TSTSH_16 2415
|
||||||
|
#define USTRING_TSTSH_17 2416
|
||||||
|
#define USTRING_TSTSH_18 2417
|
||||||
|
#define USTRING_TSTSH_19 2418
|
||||||
|
#define USTRING_TSTSH_20 2419
|
||||||
|
#define USTRING_TSTSH_21 2420
|
||||||
|
#define USTRING_TSTSH_22 2421
|
||||||
|
#define USTRING_TSTSH_23 2422
|
||||||
|
#define USTRING_TSTSH_24 2423
|
||||||
|
#define USTRING_TSTSH_25 2424
|
||||||
|
#define USTRING_TSTSH_26 2425
|
||||||
|
#define USTRING_TSTSH_27 2426
|
||||||
|
#define USTRING_TSTSH_28 2427
|
||||||
|
#define USTRING_TSTSH_29 2428
|
||||||
|
#define USTRING_TSTSH_30 2429
|
||||||
|
#define USTRING_TSTSH_31 2430
|
||||||
|
#define USTRING_TSTSH_32 2431
|
||||||
|
#define USTRING_TSTSH_33 2432
|
||||||
|
#define USTRING_TSTSH_34 2433
|
||||||
|
#define USTRING_TSTSH_35 2434
|
||||||
|
#define USTRING_TSTSH_36 2435
|
||||||
|
#define USTRING_TSTSH_37 2436
|
||||||
|
#define USTRING_TSTSH_38 2437
|
||||||
|
#define USTRING_TSTSH_39 2438
|
||||||
|
#define USTRING_TSTSH_40 2439
|
||||||
|
#define USTRING_TSTSH_41 2440
|
||||||
|
#define USTRING_TSTSH_42 2441
|
||||||
|
#define USTRING_TSTSH_43 2442
|
||||||
|
#define USTRING_TSTSH_44 2443
|
||||||
|
#define USTRING_TSTSH_45 2444
|
||||||
|
#define USTRING_TSTSH_46 2445
|
||||||
|
#define USTRING_TSTSH_47 2446
|
||||||
|
#define USTRING_TSTSH_48 2447
|
||||||
|
#define USTRING_TSTSH_49 2448
|
||||||
|
#define USTRING_TSTSH_50 2449
|
||||||
|
#define USTRING_TSTSH_51 2450
|
||||||
|
#define USTRING_TSTSH_52 2451
|
||||||
|
#define USTRING_TSTSH_53 2452
|
||||||
|
#define USTRING_TSTSH_54 2453
|
||||||
|
#define USTRING_TSTSH_55 2454
|
||||||
|
#define USTRING_TSTSH_56 2455
|
||||||
|
#define USTRING_TSTSH_57 2456
|
||||||
|
#define USTRING_TSTSH_58 2457
|
||||||
|
#define USTRING_TSTSH_59 2458
|
||||||
|
#define USTRING_TSTSH_60 2459
|
||||||
|
#define USTRING_TSTSH_61 2460
|
||||||
|
#define USTRING_TSTSH_62 2461
|
||||||
|
#define USTRING_TSTSH_63 2462
|
||||||
|
#define USTRING_TSTSH_64 2463
|
||||||
|
#define USTRING_TSTSH_65 2464
|
||||||
|
#define USTRING_TSTSH_66 2465
|
||||||
|
#define USTRING_TSTSH_67 2466
|
||||||
|
#define USTRING_TSTSH_68 2467
|
||||||
|
#define USTRING_TSTSH_69 2468
|
||||||
|
#define USTRING_TSTSH_70 2469
|
||||||
|
#define USTRING_TSTSH_71 2470
|
||||||
|
#define USTRING_TSTSH_72 2471
|
||||||
|
#define USTRING_TSTSH_73 2472
|
||||||
|
#define USTRING_TSTSH_74 2473
|
||||||
|
#define USTRING_TSTSH_75 2474
|
||||||
|
#define USTRING_TSTSH_76 2475
|
||||||
|
#define USTRING_TSTSH_77 2476
|
||||||
|
#define USTRING_TSTSH_78 2477
|
||||||
|
#define USTRING_TSTSH_79 2478
|
||||||
|
#define USTRING_TSTSH_80 2479
|
||||||
|
#define USTRING_TSTSH_81 2480
|
||||||
|
#define USTRING_TSTSH_82 2481
|
||||||
|
#define USTRING_TSTSH_83 2482
|
||||||
|
#define USTRING_TSTSH_84 2483
|
||||||
|
#define USTRING_TSTSH_85 2484
|
||||||
|
#define USTRING_TSTSH_86 2485
|
||||||
|
#define USTRING_TSTSH_87 2486
|
||||||
|
#define USTRING_TSTSH_88 2487
|
||||||
|
#define USTRING_TSTSH_89 2488
|
||||||
|
#define USTRING_TSTSH_90 2489
|
||||||
|
#define USTRING_TSTSH_91 2490
|
||||||
|
#define USTRING_TSTSH_92 2491
|
||||||
|
#define USTRING_TSTSH_93 2492
|
||||||
|
#define USTRING_TSTSH_94 2493
|
||||||
|
#define USTRING_TSTSH_95 2494
|
||||||
|
#define USTRING_TSTSH_96 2495
|
||||||
|
#define USTRING_TSTSH_97 2496
|
||||||
|
#define USTRING_TSTSH_98 2497
|
||||||
|
#define USTRING_TSTSH_99 2498
|
||||||
|
#define USTRING_TSTSH_100 2499
|
||||||
|
#define USTRING_TSTSH_101 2500
|
||||||
|
#define USTRING_TSTSH_102 2501
|
||||||
|
#define USTRING_TSTSH_103 2502
|
||||||
|
#define USTRING_TSTSH_104 2503
|
||||||
|
#define USTRING_TSTSH_105 2504
|
||||||
|
#define USTRING_TSTSH_106 2505
|
||||||
|
#define USTRING_TSTSH_107 2506
|
||||||
|
#define USTRING_TSTSH_108 2507
|
||||||
|
#define USTRING_TSTSH_109 2508
|
||||||
|
#define USTRING_TSTSH_110 2509
|
||||||
|
#define USTRING_TSTSH_111 2510
|
||||||
|
#define USTRING_TSTSH_112 2511
|
||||||
|
#define USTRING_TSTSH_113 2512
|
||||||
|
#define USTRING_TSTSH_114 2513
|
||||||
|
#define USTRING_TSTSH_115 2514
|
||||||
|
#define USTRING_TSTSH_116 2515
|
||||||
|
#define USTRING_TSTSH_117 2516
|
||||||
|
#define USTRING_TSTSH_118 2517
|
||||||
|
#define USTRING_TSTSH_119 2518
|
||||||
|
#define USTRING_TSTSH_120 2519
|
||||||
|
#define USTRING_TSTSH_121 2520
|
||||||
|
#define USTRING_TSTSH_122 2521
|
||||||
|
#define USTRING_TSTSH_123 2522
|
||||||
|
#define USTRING_TSTSH_124 2523
|
||||||
|
#define USTRING_TSTSH_125 2524
|
||||||
|
#define USTRING_TSTSH_126 2525
|
||||||
|
#define USTRING_TSTSH_127 2526
|
||||||
|
#define USTRING_TSTSH_128 2527
|
||||||
|
#define USTRING_TSTSH_129 2528
|
||||||
|
#define USTRING_TSTSH_130 2529
|
||||||
|
#define USTRING_TSTSH_131 2530
|
||||||
|
#define USTRING_TSTSH_132 2531
|
||||||
|
#define USTRING_TSTSH_133 2532
|
||||||
|
#define USTRING_TSTSH_134 2533
|
||||||
|
#define USTRING_TSTSH_135 2534
|
||||||
|
#define USTRING_TSTSH_136 2535
|
||||||
|
#define USTRING_TSTSH_137 2536
|
||||||
|
#define USTRING_TSTSH_138 2537
|
||||||
|
#define USTRING_TSTSH_139 2538
|
||||||
|
#define USTRING_TSTSH_140 2539
|
||||||
|
#define USTRING_TSTSH_141 2540
|
||||||
|
#define USTRING_TSTSH_142 2541
|
||||||
|
/* #define USTRING_TSTSH_143 2542 - Obsolete */
|
||||||
|
#define USTRING_TSTSH_144 2543
|
||||||
|
#define USTRING_TSTSH_145 2544
|
||||||
|
#define USTRING_TSTSH_146 2545
|
||||||
|
#define USTRING_TSTSH_147 2546
|
||||||
|
#define USTRING_TSTSH_148 2547
|
||||||
|
#define USTRING_TSTSHHELP_01 2600
|
||||||
|
#define USTRING_TSTSHHELP_02 2601
|
||||||
|
#define USTRING_TSTSHHELP_03 2602
|
||||||
|
#define USTRING_TSTSHHELP_04 2603
|
||||||
|
#define USTRING_TSTSHHELP_05 2604
|
||||||
|
#define USTRING_TSTSHHELP_06 2605
|
||||||
|
#define USTRING_TSTSHHELP_07 2606
|
||||||
|
#define USTRING_TSTSHHELP_08 2607
|
||||||
|
#define USTRING_TSTSHHELP_09 2608
|
||||||
|
#define USTRING_TSTSHHELP_10 2609
|
||||||
|
#define USTRING_TSTSHHELP_11 2610
|
||||||
|
#define USTRING_TSTSHHELP_12 2611
|
||||||
|
#define USTRING_TSTSHHELP_13 2612
|
||||||
|
#define USTRING_TSTSHHELP_14 2613
|
||||||
|
#define USTRING_TSTSHHELP_15 2614
|
||||||
|
#define USTRING_TSTSHHELP_16 2615
|
||||||
|
#define USTRING_TSTSHHELP_17 2616
|
||||||
|
#define USTRING_TSTSHHELP_18 2617
|
||||||
|
#define USTRING_TSTSHHELP_19 2618
|
||||||
|
#define USTRING_TSTSHHELP_20 2619
|
||||||
|
#define USTRING_TSTSHHELP_21 2620
|
||||||
|
#define USTRING_TSTSHHELP_22 2621
|
||||||
|
#define USTRING_TSTSHHELP_23 2622
|
||||||
|
#define USTRING_TSTSHHELP_24 2623
|
||||||
|
#define USTRING_TSTSHHELP_25 2624
|
||||||
|
#define USTRING_TSTSHHELP_26 2625
|
||||||
|
#define USTRING_TSTSHHELP_27 2626
|
||||||
|
#define USTRING_TSTSHHELP_28 2627
|
||||||
|
#define USTRING_TSTSHHELP_29 2628
|
||||||
|
#define USTRING_TSTSHHELP_30 2629
|
||||||
|
#define USTRING_TSTSHHELP_31 2630
|
||||||
|
#define USTRING_TSTSHHELP_32 2631
|
||||||
|
#define USTRING_TSTSHHELP_33 2632
|
||||||
|
#define USTRING_TSTSHHELP_34 2633
|
||||||
|
#define USTRING_TSTSHHELP_35 2634
|
||||||
|
#define USTRING_TSTSHHELP_36 2635
|
||||||
|
#define USTRING_TSTSHHELP_37 2636
|
||||||
|
#define USTRING_TSTSHHELP_38 2637
|
||||||
|
#define USTRING_TSTSHHELP_39 2638
|
||||||
|
#define USTRING_TSTSHHELP_40 2639
|
||||||
|
#define USTRING_TSTSHHELP_41 2640
|
||||||
|
#define USTRING_TSTSHHELP_42 2641
|
||||||
|
#define USTRING_TSTSHHELP_43 2642
|
||||||
|
#define USTRING_TSTSHHELP_44 2643
|
||||||
|
#define USTRING_TSTSHHELP_45 2644
|
||||||
|
#define USTRING_TSTSHHELP_46 2645
|
||||||
|
#define USTRING_TSTSHCMD_01 2800
|
||||||
|
#define USTRING_TSTSHCMD_02 2801
|
||||||
|
#define USTRING_TSTSHCMD_03 2802
|
||||||
|
#define USTRING_TSTSHCMD_04 2803
|
||||||
|
#define USTRING_TSTSHCMD_05 2804
|
||||||
|
#define USTRING_TSTSHCMD_06 2805
|
||||||
|
#define USTRING_TSTSHCMD_07 2806
|
||||||
|
#define USTRING_TSTSHCMD_08 2807
|
||||||
|
#define USTRING_TSTSHCMD_09 2808
|
||||||
|
#define USTRING_TSTSHCMD_10 2809
|
||||||
|
#define USTRING_TSTSHCMD_11 2810
|
||||||
|
#define USTRING_TSTSHCMD_12 2811
|
||||||
|
#define USTRING_TSTSHCMD_13 2812
|
||||||
|
#define USTRING_TSTSHCMD_14 2813
|
||||||
|
#define USTRING_TSTSHCMD_15 2814
|
||||||
|
#define USTRING_TSTSHCMD_16 2815
|
||||||
|
#define USTRING_TSTSHCMD_17 2816
|
||||||
|
#define USTRING_TSTSHCMD_18 2817
|
||||||
|
#define USTRING_TSTSHCMD_19 2818
|
||||||
|
#define USTRING_TSTSHCMD_20 2819
|
||||||
|
#define USTRING_TSTSHCMD_21 2820
|
||||||
|
#define USTRING_TSTSHCMD_22 2821
|
||||||
|
#define USTRING_TSTSHCMD_23 2822
|
||||||
|
#define USTRING_TSTSHCMD_24 2823
|
||||||
|
#define USTRING_TSTSHCMD_25 2824
|
||||||
|
#define USTRING_TSTSHCMD_26 2825
|
||||||
|
#define USTRING_TSTSHCMD_27 2826
|
||||||
|
#define USTRING_TSTSHCMD_28 2827
|
||||||
|
#define USTRING_TSTSHCMD_29 2828
|
||||||
|
#define USTRING_TSTSHCMD_30 2829
|
||||||
|
#define USTRING_TSTSHCMD_31 2830
|
||||||
|
#define USTRING_TSTSHCMD_32 2831
|
||||||
|
#define USTRING_TSTSHCMD_33 2832
|
||||||
|
#define USTRING_TSTSHCMD_34 2833
|
||||||
|
#define USTRING_TSTSHCMD_35 2834
|
||||||
|
#define USTRING_TSTSHCMD_36 2835
|
||||||
|
#define USTRING_TSTSHCMD_37 2836
|
||||||
|
#define USTRING_TSTSHCMD_38 2837
|
||||||
|
#define USTRING_TSTSHCMD_39 2838
|
||||||
|
#define USTRING_TSTSHCMD_40 2839
|
||||||
|
#define USTRING_TSTSHCMD_41 2840
|
||||||
|
#define USTRING_TSTSHCMD_42 2841
|
||||||
|
#define USTRING_TSTSHCMD_43 2842
|
||||||
|
#define USTRING_TSTSHCMD_44 2843
|
||||||
|
#define USTRING_TSTSHCMD_45 2844
|
||||||
|
#define USTRING_TSTSHCMD_46 2845
|
||||||
|
#define UPROMPT_CRITERR 1
|
||||||
|
#define UPROMPT_REGRESS 2
|
||||||
|
#define UPROMPT_TSTSH1 5
|
||||||
|
#define UPROMPT_TSTSH2 6
|
||||||
|
#define UPROMPT_TSTSH3 7
|
||||||
|
#define UPROMPT_TSTSH4 8
|
||||||
|
#define UPROMPT_TSTSH5 9
|
||||||
|
#define UPROMPT_TSTSH6 10
|
||||||
|
#define UPROMPT_TSTSH7 11
|
||||||
|
#define UPROMPT_TSTSH8 12
|
||||||
|
#define UPROMPT_TSTSH9 13
|
||||||
|
#define UPROMPT_TSTSH10 14
|
||||||
|
#define UPROMPT_TSTSH11 15
|
||||||
|
#define UPROMPT_TSTSH12 16
|
||||||
|
#define UPROMPT_TSTSH13 17
|
||||||
|
#define UPROMPT_TSTSH14 18
|
||||||
|
#define UPROMPT_TSTSH15 19
|
||||||
|
#define UPROMPT_TSTSH16 20
|
||||||
|
#define UPROMPT_TSTSH17 21
|
||||||
|
#define UPROMPT_TSTSH18 22
|
||||||
|
#define UPROMPT_WINSPLSH 23
|
||||||
|
|
||||||
|
|
47
trunk/firmware/include/firm/fatfs/portconf.h
Normal file
47
trunk/firmware/include/firm/fatfs/portconf.h
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/*****************************************************************************
|
||||||
|
*Filename: PORTCONF.H - RTFS porting layer tuning constants
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* EBS - RTFS (Real Time File Manager)
|
||||||
|
*
|
||||||
|
* Copyright EBS Inc, 1993-2003
|
||||||
|
* All rights reserved.
|
||||||
|
* This code may not be redistributed in source or linkable object form
|
||||||
|
* without the consent of its author.
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* This file contains porting layer tuning constants for configuring RTFS.
|
||||||
|
* It is included by pcconf.h.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifndef __PORTCONF__
|
||||||
|
#define __PORTCONF__ 1
|
||||||
|
|
||||||
|
/* CPU Configuration section */
|
||||||
|
|
||||||
|
#define KS_LITTLE_ENDIAN 1 /* See porting reference guide for explanation */
|
||||||
|
#define KS_LITTLE_ODD_PTR_OK 0 /* See porting reference guide for explanation */
|
||||||
|
#define KS_CONSTANT const /* See porting reference guide for explanation */
|
||||||
|
#define KS_FAR /* See porting reference guide for explanation */
|
||||||
|
|
||||||
|
/* Compile time constants to control device inclusion and includion of
|
||||||
|
porting layer subroutines */
|
||||||
|
|
||||||
|
#define INCLUDE_IDE 0 /* - Include the IDE driver */
|
||||||
|
#define INCLUDE_PCMCIA 0 /* - Include the pcmcia driver */
|
||||||
|
#define INCLUDE_PCMCIA_SRAM 0 /* - Include the pcmcia static ram card driver */
|
||||||
|
#define INCLUDE_COMPACT_FLASH 0 /* - Support compact flash (requires IDE and PCMCIA) */
|
||||||
|
#define INCLUDE_CDROM 0 /* - Support ATAPI CD (requires IDE) */
|
||||||
|
#define INCLUDE_FLASH_FTL 0 /* - Include the linear flash driver */
|
||||||
|
#define INCLUDE_ROMDISK 0 /* - Include the rom disk driver */
|
||||||
|
#define INCLUDE_RAMDISK 0 /* - Include the rom disk driver */
|
||||||
|
#define INCLUDE_MMCCARD 0 /* - Include the multi media flash card driver */
|
||||||
|
#define INCLUDE_SMARTMEDIA 0 /* - Include the smart media flash card driver */
|
||||||
|
#define INCLUDE_FLOPPY 0 /* - Include the floppy disk driver */
|
||||||
|
#define INCLUDE_HOSTDISK 0 /* - Include the host disk disk simulator */
|
||||||
|
#define INCLUDE_WINDEV 0 /* - Include windows direct device access */
|
||||||
|
#define INCLUDE_UDMA 0 /* - Include ultra dma support for the ide driver */
|
||||||
|
#define INCLUDE_82365_PCMCTRL 0 /* - Include the 82365 pcmcia controller driver */
|
||||||
|
|
||||||
|
#endif /* __PORTCONF__ */
|
1430
trunk/firmware/include/firm/fatfs/rtfs.h
Normal file
1430
trunk/firmware/include/firm/fatfs/rtfs.h
Normal file
File diff suppressed because it is too large
Load Diff
157
trunk/firmware/include/firm/fatfs/rtfsconf.h
Normal file
157
trunk/firmware/include/firm/fatfs/rtfsconf.h
Normal file
@ -0,0 +1,157 @@
|
|||||||
|
/*****************************************************************************
|
||||||
|
*Filename: RTFSCONF.H - RTFS tuning constants
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* EBS - RTFS (Real Time File Manager)
|
||||||
|
*
|
||||||
|
* Copyright Peter Van Oudenaren, 1993
|
||||||
|
* All rights reserved.
|
||||||
|
* This code may not be redistributed in source or linkable object form
|
||||||
|
* without the consent of its author.
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* This file contains tuning constants for configuring RTFS.
|
||||||
|
* It is included by rtfs.h
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifndef __RTFSCONF__
|
||||||
|
#define __RTFSCONF__ 1
|
||||||
|
|
||||||
|
/* Include CPU and peripheral configuration */
|
||||||
|
#include <portconf.h>
|
||||||
|
|
||||||
|
/* Character set support */
|
||||||
|
#define INCLUDE_CS_JIS 0 /* Set to 1 to support JIS (kanji) */
|
||||||
|
#define INCLUDE_CS_ASCII 0 /* Set to 1 to support ASCII only */
|
||||||
|
#define INCLUDE_CS_UNICODE 1 /* Set to 1 to support unicode characters requires VFAT */
|
||||||
|
|
||||||
|
/* Note: After we implemented VFAT we learned that Microsoft patented
|
||||||
|
the Win95 VFS implementation. US PATENT # 5,758,352.
|
||||||
|
Leaving VFAT set to zero will exclude potential patent infringment
|
||||||
|
problems.
|
||||||
|
3-19-99
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Set to 1 to support long filenames */
|
||||||
|
#define VFAT 1
|
||||||
|
/* Set to 1 to support 32 bit FATs */
|
||||||
|
#define FAT32 1
|
||||||
|
/* Set to 0 to disable file share modes saves ~0.5 K */
|
||||||
|
#define RTFS_SHARE 0
|
||||||
|
/* Set to 0 to disable subdirs. Feature not implemented must be 1*/
|
||||||
|
#define RTFS_SUBDIRS 1
|
||||||
|
/* Set to 0 to disable write support. Feature not implemented must be 1*/
|
||||||
|
#define RTFS_WRITE 1
|
||||||
|
/* Set to 1 to include failsafe support */
|
||||||
|
#define INCLUDE_FAILSAFE_CODE 0
|
||||||
|
|
||||||
|
/* Set to 1 to include support for extended DOS partitions */
|
||||||
|
/* ERTFS contains code to interpret extended DOS partitions but since this
|
||||||
|
feature is rarely used it is provided as a compile time option */
|
||||||
|
#define SUPPORT_EXTENDED_PARTITIONS 0
|
||||||
|
|
||||||
|
/* STORE_DEVICE_NAMES_IN_DRIVE_STRUCT - If this value is set to one then
|
||||||
|
we save device names for future viewing by diagnostics */
|
||||||
|
#define STORE_DEVICE_NAMES_IN_DRIVE_STRUCT 1
|
||||||
|
|
||||||
|
/* Set to the maximum file size ERTFS may create. If po_chsize or po_extend_file()
|
||||||
|
are called with a size request larger than this they fail and set errno
|
||||||
|
to PETOOLARGE. When po_write() is asked to expend the file beyond this maximum
|
||||||
|
the behavior is determined by the value of RTFS_TRUNCATE_WRITE_TO_MAX */
|
||||||
|
#define RTFS_MAX_FILE_SIZE 0x80000000 /* twl modified (0xffffffff -> 0x80000000) */
|
||||||
|
/* #define RTFS_MAX_FILE_SIZE 0x80000000 */
|
||||||
|
/* Set to 1 to force RTFS to truncate po_write() requests to fit within
|
||||||
|
RTFS_MAX_FILE_SIZE. If RTFS_TRUNCATE_WRITE_TO_MAX is set to 0, po_write
|
||||||
|
requests that attempt to extend the file beyond RTFS_TRUNCATE_WRITE_TO_MAX
|
||||||
|
Fail and set errno to PETOOLARGE. If RTFS_TRUNCATE_WRITE_TO_MAX is set to
|
||||||
|
1, po_write requests that attempt to extend the file beyond
|
||||||
|
RTFS_MAX_FILE_SIZE are truncated to fill the file until its
|
||||||
|
size reaches RTFS_MAX_FILE_SIZE bytes. */
|
||||||
|
#define RTFS_TRUNCATE_WRITE_TO_MAX 0 /* twl modified (1 -> 0) */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if (VFAT)
|
||||||
|
#define FILENAMESIZE_CHARS 255
|
||||||
|
#else
|
||||||
|
#if (INCLUDE_CS_UNICODE)
|
||||||
|
#error - Unicode requires VFAT
|
||||||
|
#endif
|
||||||
|
#define FILENAMESIZE_CHARS 8
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if (VFAT)
|
||||||
|
#define EMAXPATH_CHARS 260 /* Maximum path length. Change if you like */
|
||||||
|
#else
|
||||||
|
#define EMAXPATH_CHARS 148 /* Maximum path length. Change if you like */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Declare buffer sizes, leave room for terminating NULLs, allign to
|
||||||
|
four bytes for good form. */
|
||||||
|
#if (VFAT)
|
||||||
|
#if (INCLUDE_CS_UNICODE || INCLUDE_CS_JIS)
|
||||||
|
#define EMAXPATH_BYTES 524
|
||||||
|
#define FILENAMESIZE_BYTES 512
|
||||||
|
#else
|
||||||
|
#define EMAXPATH_BYTES 264
|
||||||
|
#define FILENAMESIZE_BYTES 256
|
||||||
|
#endif
|
||||||
|
#else /* Not VFAT */
|
||||||
|
#if (INCLUDE_CS_UNICODE || INCLUDE_CS_JIS)
|
||||||
|
#define EMAXPATH_BYTES 300
|
||||||
|
#define FILENAMESIZE_BYTES 20
|
||||||
|
#else
|
||||||
|
#define EMAXPATH_BYTES 152
|
||||||
|
#define FILENAMESIZE_BYTES 12
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* When scanning a directory cluster chain fail if more than this many
|
||||||
|
clusters are in the chain. (Indicates endless loop)
|
||||||
|
*/
|
||||||
|
#define MAX_CLUSTERS_PER_DIR 4096
|
||||||
|
|
||||||
|
|
||||||
|
/* Make sure a character set is enabled */
|
||||||
|
#if (INCLUDE_CS_JIS)
|
||||||
|
#if (INCLUDE_CS_UNICODE||INCLUDE_CS_ASCII)
|
||||||
|
#error Only one character set may be selected
|
||||||
|
#endif
|
||||||
|
#elif (INCLUDE_CS_UNICODE)
|
||||||
|
#if (INCLUDE_CS_JIS||INCLUDE_CS_ASCII)
|
||||||
|
#error Only one character set may be selected
|
||||||
|
#endif
|
||||||
|
#elif (INCLUDE_CS_ASCII)
|
||||||
|
#if (INCLUDE_CS_UNICODE||INCLUDE_CS_JIS)
|
||||||
|
#error Only one character set may be selected
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#error At least one character set must be selected
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/*--- twl modified ---*/
|
||||||
|
#define RTFS_DEBUG_PRINT_ON (0)
|
||||||
|
|
||||||
|
|
||||||
|
#define RTFS_ENABLE_FILL_CLUSTER_BY_ONE_WRITING (1)
|
||||||
|
#define RTFS_FILL_OPERATION_FLAG (0x80) //0<>`NUSERFILES‚ÆŠ±<C5A0>‚µ‚È‚¢ƒrƒbƒg
|
||||||
|
/*--- twl modified end ---*/
|
||||||
|
|
||||||
|
|
||||||
|
/********************************************************************
|
||||||
|
TYPES
|
||||||
|
********************************************************************/
|
||||||
|
|
||||||
|
#define TRUE 1 /* Don't change */
|
||||||
|
#define FALSE 0 /* Don't change */
|
||||||
|
|
||||||
|
typedef unsigned char byte; /* Don't change */
|
||||||
|
typedef unsigned short word; /* Don't change */
|
||||||
|
typedef unsigned long dword; /* Don't change */
|
||||||
|
/* typedef int BOOLEAN; Don't change */
|
||||||
|
#define BOOLEAN int
|
||||||
|
|
||||||
|
#endif /* __RTFSCONF__ */
|
53
trunk/firmware/include/firm/fatfs/rtfspro.h
Normal file
53
trunk/firmware/include/firm/fatfs/rtfspro.h
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
/*****************************************************************************
|
||||||
|
*Filename: RTFSPRO.H - Defines & structures for RTFSPRO Enhancements
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* EBS - RTFS (Real Time File Manager)
|
||||||
|
*
|
||||||
|
* Copyright Peter Van Oudenaren , 2004
|
||||||
|
* All rights reserved.
|
||||||
|
* This code may not be redistributed in source or linkable object form
|
||||||
|
* without the consent of its author.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
*
|
||||||
|
* This file is automatically included in rtfs.h if INCLUDE_RTFS_PRO is enabled
|
||||||
|
* this file is note intended for inclusion by user code.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifndef __RTFSPRO__
|
||||||
|
#define __RTFSPRO__ 1
|
||||||
|
|
||||||
|
struct pro_buffer_stats {
|
||||||
|
/* Informational fields. These are filled in by a call to ?? */
|
||||||
|
int failsafe_mode;
|
||||||
|
dword failsafe_blocks_used;
|
||||||
|
dword failsafe_blocks_free;
|
||||||
|
dword total_block_buffers;
|
||||||
|
dword block_buffers_pending;
|
||||||
|
dword block_buffers_available;
|
||||||
|
dword block_buffers_fail;
|
||||||
|
dword block_buffers_low;
|
||||||
|
dword block_buffers_cache_hits;
|
||||||
|
dword block_buffers_cache_misses;
|
||||||
|
dword fat_buffers_pending;
|
||||||
|
dword fat_buffers_free;
|
||||||
|
dword fat_buffers_available;
|
||||||
|
dword fat_buffer_primary_cache_hits;
|
||||||
|
dword fat_buffer_secondary_cache_hits;
|
||||||
|
dword fat_buffer_cache_loads;
|
||||||
|
dword fat_buffer_cache_swaps;
|
||||||
|
dword total_fat_buffers;
|
||||||
|
};
|
||||||
|
|
||||||
|
BOOLEAN pro_buffer_status(byte *drive_name, struct pro_buffer_stats *fsstat);
|
||||||
|
|
||||||
|
BOOLEAN pro_assign_buffers(byte *drivename, BLKBUFFCNTXT *block_buffer_context,
|
||||||
|
int block_hashtable_size, BLKBUFF **block_hash_table,
|
||||||
|
int block_buffer_pool_size, BLKBUFF *block_buffer_pool_data);
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,61 @@
|
|||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Project: TwlBrom - specfiles
|
||||||
|
File: ARM11-APP.ldscript.template
|
||||||
|
|
||||||
|
Copyright 2008-2009 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$
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
//
|
||||||
|
// Scatter Loading Description File Templete
|
||||||
|
//
|
||||||
|
|
||||||
|
#define SDK_ASM
|
||||||
|
#include <firm/hw/ARM11/mmap_firm.h>
|
||||||
|
|
||||||
|
#define HW_APP HW_MAIN_MEM
|
||||||
|
#define HW_APP_END (HW_APP + HW_APP_SIZE)
|
||||||
|
#define HW_APP_SIZE HW_MAIN_MEM_SIZE
|
||||||
|
|
||||||
|
|
||||||
|
LOAD_STATIC HW_APP HW_APP_SIZE
|
||||||
|
{
|
||||||
|
STUP_ENTRY +0
|
||||||
|
{
|
||||||
|
*crt0_app.*o (.emb_text, +FIRST)
|
||||||
|
|
||||||
|
#ifdef FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
*crt0scat.*o (.emb_text)
|
||||||
|
|
||||||
|
__main.o (+RO)
|
||||||
|
* (Region$$Table)
|
||||||
|
* (ZISection$$$Table)
|
||||||
|
|
||||||
|
#endif // FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
}
|
||||||
|
RO +0
|
||||||
|
{
|
||||||
|
* (+RO)
|
||||||
|
}
|
||||||
|
RW +0
|
||||||
|
{
|
||||||
|
* (+RW)
|
||||||
|
}
|
||||||
|
ZI +0
|
||||||
|
{
|
||||||
|
* (+ZI)
|
||||||
|
}
|
||||||
|
BUF_OVER_BARRIER HW_APP_END EMPTY 0
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,57 @@
|
|||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Project: TwlFirm - specfiles
|
||||||
|
File: ARM11-FIRM.ldscript.template
|
||||||
|
|
||||||
|
Copyright 2009 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$
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
//
|
||||||
|
// Scatter Loading Description File Template
|
||||||
|
//
|
||||||
|
|
||||||
|
#define SDK_ASM
|
||||||
|
#include <firm/hw/ARM11/mmap_firm.h>
|
||||||
|
|
||||||
|
|
||||||
|
LOAD_STATIC HW_FIRM HW_FIRM_SIZE
|
||||||
|
{
|
||||||
|
STUP_ENTRY +0
|
||||||
|
{
|
||||||
|
*crt0_firm.*o (.emb_text, +FIRST)
|
||||||
|
|
||||||
|
#ifdef FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
*crt0scat.*o (.emb_text)
|
||||||
|
|
||||||
|
__main.o (+RO)
|
||||||
|
* (Region$$Table)
|
||||||
|
* (ZISection$$$Table)
|
||||||
|
|
||||||
|
#endif // FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
}
|
||||||
|
RO +0
|
||||||
|
{
|
||||||
|
* (+RO)
|
||||||
|
}
|
||||||
|
RW +0
|
||||||
|
{
|
||||||
|
* (+RW)
|
||||||
|
}
|
||||||
|
ZI +0
|
||||||
|
{
|
||||||
|
* (+ZI)
|
||||||
|
}
|
||||||
|
BUF_OVER_BARRIER HW_FIRM_END EMPTY 0
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Project: TwlFirm - specfiles
|
||||||
|
File: ARM9-APP.ldscript.template
|
||||||
|
|
||||||
|
Copyright 2008-2009 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$
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
//
|
||||||
|
// Scatter Loading Description File Template
|
||||||
|
//
|
||||||
|
|
||||||
|
#define SDK_ASM
|
||||||
|
#include <brom/memorymap.h>
|
||||||
|
|
||||||
|
#define HW_APP HW_PRV_WRAM_SYSRV_END
|
||||||
|
#define HW_APP_END (HW_APP + HW_APP_SIZE)
|
||||||
|
#define HW_APP_SIZE (HW_PRV_WRAM_SIZE - HW_PRV_WRAM_SYSRV_SIZE)
|
||||||
|
|
||||||
|
|
||||||
|
LOAD_STATIC HW_APP HW_APP_SIZE
|
||||||
|
{
|
||||||
|
STUP_ENTRY +0
|
||||||
|
{
|
||||||
|
*crt0_app.*o (.emb_text, +FIRST)
|
||||||
|
|
||||||
|
#ifdef FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
*crt0scat.*o (.emb_text)
|
||||||
|
|
||||||
|
__main.o (+RO)
|
||||||
|
* (Region$$Table)
|
||||||
|
* (ZISection$$$Table)
|
||||||
|
|
||||||
|
#endif // FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
}
|
||||||
|
RO +0
|
||||||
|
{
|
||||||
|
* (+RO)
|
||||||
|
}
|
||||||
|
RW +0
|
||||||
|
{
|
||||||
|
* (+RW)
|
||||||
|
}
|
||||||
|
ZI +0
|
||||||
|
{
|
||||||
|
* (+ZI)
|
||||||
|
}
|
||||||
|
BUF_OVER_BARRIER HW_APP_END EMPTY 0
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifndef FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
DTCM HW_DTCM EMPTY 0
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#else // FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
ITCM (HW_ITCM + 0x100) (HW_ITCM_SIZE - 0x100)
|
||||||
|
{
|
||||||
|
* (.itcm)
|
||||||
|
* (.itcm.bss)
|
||||||
|
}
|
||||||
|
|
||||||
|
DTCM HW_DTCM HW_DTCM_SIZE
|
||||||
|
{
|
||||||
|
* (.dtcm)
|
||||||
|
* (.dtcm.bss)
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Project: TwlFirm - specfiles
|
||||||
|
File: ARM9-FIRM.ldscript.template
|
||||||
|
|
||||||
|
Copyright 2009 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$
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
//
|
||||||
|
// Scatter Loading Description File Templete
|
||||||
|
//
|
||||||
|
|
||||||
|
#define SDK_ASM
|
||||||
|
#include <brom/memorymap.h>
|
||||||
|
|
||||||
|
|
||||||
|
LOAD_STATIC HW_FIRM HW_FIRM_SIZE
|
||||||
|
{
|
||||||
|
STUP_ENTRY +0
|
||||||
|
{
|
||||||
|
*crt0_firm.*o (.emb_text, +FIRST)
|
||||||
|
|
||||||
|
#ifdef FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
*crt0scat.*o (.emb_text)
|
||||||
|
|
||||||
|
__main.o (+RO)
|
||||||
|
* (Region$$Table)
|
||||||
|
* (ZISection$$$Table)
|
||||||
|
|
||||||
|
#endif // FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
}
|
||||||
|
RO +0
|
||||||
|
{
|
||||||
|
* (+RO)
|
||||||
|
}
|
||||||
|
RW +0
|
||||||
|
{
|
||||||
|
* (+RW)
|
||||||
|
}
|
||||||
|
ZI +0
|
||||||
|
{
|
||||||
|
* (+ZI)
|
||||||
|
}
|
||||||
|
BUF_OVER_BARRIER HW_FIRM_END EMPTY 0
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifndef FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
DTCM HW_DTCM EMPTY 0
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#else // FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
ITCM (HW_ITCM + 0x100) (HW_ITCM_SIZE - 0x100)
|
||||||
|
{
|
||||||
|
* (.itcm)
|
||||||
|
* (.itcm.bss)
|
||||||
|
}
|
||||||
|
|
||||||
|
DTCM HW_DTCM HW_DTCM_SIZE
|
||||||
|
{
|
||||||
|
* (.dtcm)
|
||||||
|
* (.dtcm.bss)
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // FIRM_DEF_LINK_SCATLD
|
||||||
|
|
||||||
|
}
|
BIN
trunk/tools/bootrom/ne1tb/nand_fatfsformat.axf
Normal file
BIN
trunk/tools/bootrom/ne1tb/nand_fatfsformat.axf
Normal file
Binary file not shown.
@ -13,3 +13,9 @@ NE1
|
|||||||
|
|
||||||
・PARTNERを使ってNE1ボードへnand_deviceformat.axfをロードして実行すると、
|
・PARTNERを使ってNE1ボードへnand_deviceformat.axfをロードして実行すると、
|
||||||
NANDがデバイスレベルでフォーマットされます(ファイルシステムのフォーマットではなく)。
|
NANDがデバイスレベルでフォーマットされます(ファイルシステムのフォーマットではなく)。
|
||||||
|
|
||||||
|
・PARTNERを使ってNE1ボードへnand_fatfsformat.axfをロードして実行すると、
|
||||||
|
NANDがFATファイルシステムでフォーマットされます。
|
||||||
|
ただし事前にnand_deviceformat.axfでデバイスレベルのフォーマットを行っておいてください。
|
||||||
|
再度FATフォーマットが必要な際は、デバイスレベルのフォーマットを行う必要はありませんので、
|
||||||
|
本axfによるFATフォーマットのみ行ってください。
|
||||||
|
Loading…
Reference in New Issue
Block a user