1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/usb/t_usb_win/include/global.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,77 @@
1.4 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +//
1.19 +
1.20 +#ifndef __global_H__
1.21 +#define __global_H__
1.22 +
1.23 +
1.24 +#define WM_USER_PRINTOUT (WM_USER+100)
1.25 +
1.26 +// The version of this program
1.27 +#define VERSION_MAJOR 1
1.28 +#define VERSION_MINOR 2
1.29 +#define VERSION_MICRO 0
1.30 +
1.31 +// The version of the USBIO driver this program is compiled against
1.32 +#define USBIO_VERSION_MAJOR 2
1.33 +#define USBIO_VERSION_MINOR 41
1.34 +
1.35 +#define VERSION_DATAOUT_SIZE 5
1.36 +#define VERSION_DATAIN_SIZE 96
1.37 +
1.38 +#define MAX_DESCRIPTOR_BUFFER_SIZE 2047
1.39 +
1.40 +#define MAX_INTERFACES 128
1.41 +#define MAX_SETTINGS 10
1.42 +#define MAX_ENDPOINTS 5
1.43 +
1.44 +#define MAX_THREADS 10
1.45 +
1.46 +#define WAIT_SETTING_BUFFER_SIZE 8
1.47 +#define WAIT_SETTING_TIMEOUT 250
1.48 +#define WAIT_BEFORETHREAD_TIMEOUT 30000
1.49 +#define READWRITE_TIMEOUT 10000
1.50 +#define FIRSTFILEREAD_TIMEOUT 500000
1.51 +#define WAITDISCONNECT_TIMEOUT 10000
1.52 +
1.53 +#define FIRST_SETTING_THREAD_MASK 0x8000
1.54 +#define LAST_SETTING_THREAD_MASK 0x4000
1.55 +
1.56 +#define HOST_ERROR_INDEX 0xFFF
1.57 +
1.58 +// a number of definitions for using the Aten USB switch
1.59 +#define SWITCH_REQUEST 0x09
1.60 +#define SWITCH_INDEX 0x0001
1.61 +#define SWITCH_VALUE 0x0202
1.62 +#define SWITCH_DATA0 0x02
1.63 +#define SWITCH_DATA1 0x03
1.64 +
1.65 +// delays
1.66 +#define WAIT_TEST_COMPLETE 50
1.67 +#define WAIT_SETTING_DELAY 50
1.68 +#define BEFORE_SWITCH_DELAY 3000
1.69 +#define AFTER_SWITCH_DELAY 5000
1.70 +#define DEVICE_CONFIG_DELAY 2000
1.71 +
1.72 +#define NL "\r\n"
1.73 +
1.74 +// Helper #defines for print messages
1.75 +#define PRINT_ALWAYS PrintOut (TRUE,TRUE,FALSE,
1.76 +#define PRINT_TIME PrintOut (TRUE,TRUE,TRUE,
1.77 +#define PRINT_NOLOG PrintOut (TRUE,FALSE,FALSE,
1.78 +#define PRINT_IF_VERBOSE PrintOut (gVerboseMode,gVerboseMode,FALSE,
1.79 +
1.80 +#endif //__global_H__