os/kernelhwsrv/kerneltest/e32test/usb/t_usb_win/include/global.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 //
    15 //
    16 
    17 #ifndef __global_H__
    18 #define __global_H__
    19 
    20 
    21 #define WM_USER_PRINTOUT           (WM_USER+100)
    22 
    23 // The version of this program
    24 #define VERSION_MAJOR  1
    25 #define VERSION_MINOR  2
    26 #define VERSION_MICRO  0
    27 
    28 // The version of the USBIO driver this program is compiled against
    29 #define USBIO_VERSION_MAJOR  2
    30 #define USBIO_VERSION_MINOR  41
    31 
    32 #define VERSION_DATAOUT_SIZE 5
    33 #define VERSION_DATAIN_SIZE 96
    34 
    35 #define MAX_DESCRIPTOR_BUFFER_SIZE 2047
    36 
    37 #define MAX_INTERFACES 128
    38 #define MAX_SETTINGS 10
    39 #define MAX_ENDPOINTS 5
    40 
    41 #define MAX_THREADS 10
    42 
    43 #define WAIT_SETTING_BUFFER_SIZE 8
    44 #define WAIT_SETTING_TIMEOUT 250
    45 #define WAIT_BEFORETHREAD_TIMEOUT 30000
    46 #define READWRITE_TIMEOUT 10000
    47 #define FIRSTFILEREAD_TIMEOUT 500000
    48 #define WAITDISCONNECT_TIMEOUT 10000
    49 
    50 #define FIRST_SETTING_THREAD_MASK 0x8000
    51 #define LAST_SETTING_THREAD_MASK 0x4000
    52 
    53 #define HOST_ERROR_INDEX 0xFFF
    54 
    55 // a number of definitions for using the Aten USB switch 
    56 #define SWITCH_REQUEST 0x09
    57 #define SWITCH_INDEX 0x0001
    58 #define SWITCH_VALUE 0x0202
    59 #define SWITCH_DATA0 0x02
    60 #define SWITCH_DATA1 0x03
    61 
    62 // delays
    63 #define WAIT_TEST_COMPLETE 50
    64 #define WAIT_SETTING_DELAY 50
    65 #define BEFORE_SWITCH_DELAY 3000
    66 #define AFTER_SWITCH_DELAY 5000
    67 #define DEVICE_CONFIG_DELAY 2000
    68 
    69 #define NL "\r\n"
    70 
    71 // Helper #defines for print messages
    72 #define PRINT_ALWAYS PrintOut (TRUE,TRUE,FALSE,
    73 #define PRINT_TIME PrintOut (TRUE,TRUE,TRUE,
    74 #define PRINT_NOLOG PrintOut (TRUE,FALSE,FALSE,
    75 #define PRINT_IF_VERBOSE PrintOut (gVerboseMode,gVerboseMode,FALSE,
    76 
    77 #endif //__global_H__