kerneltest/e32test/lffs/user_config.h
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Provides some configurable constants used by all the tests
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef user_config_h
       
    19 #define user_config_h
       
    20 
       
    21 #include <f32file.h>
       
    22 
       
    23 //
       
    24 // Need to provide drive number and Flash address.
       
    25 //	KDriveNumber is the TBusLocalDrive number that the media driver mounts on.
       
    26 //	This will match the Variant::DeviceInfoFromDrive function.
       
    27 //	For example if your LFFS drive mounts on EFixedMedia0 and DeviceInfoFromDrive
       
    28 //	returns EFixedMedia0 for drive number 1, then KDriveNumber must be 1.
       
    29 //
       
    30 //	KFlashPhysicalAddress is the physical address of the start of the
       
    31 //	LFFS area in Flash. This is used to map a chunk that the test apps
       
    32 //	can use to read directly from Flash.
       
    33 //
       
    34 
       
    35 //#error You must edit user_config.h to provide driver number and flash address
       
    36 #ifdef __WINS__
       
    37 const TInt KDriveNumber = 8;
       
    38 const TChar KLffsLogicalDriveNumber = EDriveW;
       
    39 #else
       
    40 #if 0
       
    41 const TInt KDriveNumber = 0;
       
    42 const TChar KLffsLogicalDriveNumber = EDriveC;
       
    43 #else
       
    44 // XXX TONYL: Unmounting C wouldn't work for me - fault a KERN FAULT 4
       
    45 const TChar KLffsLogicalDriveNumber = EDriveK;
       
    46 const TInt KDriveNumber = 8;
       
    47 #endif
       
    48 #endif
       
    49 
       
    50 // Unmount drive before starting test - reccommended
       
    51 #define UNMOUNT_DRIVE
       
    52 
       
    53 // Don't attempt to load the LFFS driver - define this if the driver is already loaded
       
    54 #define SKIP_PDD_LOAD
       
    55 
       
    56 _LIT( KLfsDriverName, "MEDLFS" );
       
    57 
       
    58 #endif