1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kernel/eka/include/d32otgdi_errors.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,103 @@
1.4 +// Copyright (c) 2007-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 +#ifndef D32OTGDI_ERRORS_H
1.20 +#define D32OTGDI_ERRORS_H
1.21 +
1.22 +#ifndef __KERNEL_MODE__
1.23 +#include <e32std.h>
1.24 +#else
1.25 +#include <kernel/kernel.h>
1.26 +#endif
1.27 +
1.28 +/**
1.29 +@file
1.30 +@publishedPartner
1.31 +@prototype
1.32 +*/
1.33 +
1.34 +/**
1.35 +The messages which indicate problem conditions are reported as a based set
1.36 +of numbers derived from the basic USB+Host set (-6670 -> -6699)
1.37 +*/
1.38 +const TInt KErrUsbOtgEventQueueOverflow = -6670;
1.39 +const TInt KErrUsbOtgStateQueueOverflow = -6671;
1.40 +const TInt KErrUsbOtgMessageQueueOverflow = -6672;
1.41 +
1.42 +const TInt KErrUsbOtgBadState = -6675;
1.43 +
1.44 +const TInt KErrUsbOtgStackNotStarted = -6680;
1.45 +const TInt KErrUsbOtgVbusAlreadyRaised = -6681;
1.46 +const TInt KErrUsbOtgSrpForbidden = -6682;
1.47 +
1.48 +const TInt KErrUsbOtgHnpNotResponding = -6683;
1.49 +const TInt KErrUsbOtgHnpBusDrop = -6684;
1.50 +
1.51 +const TInt KErrUsbOtgBusControlProblem = -6685;
1.52 +
1.53 +const TInt KErrUsbOtgVbusPowerUpError = -6686;
1.54 +
1.55 +const TInt KErrUsbOtgHnpEnableProblem = -6687;
1.56 +const TInt KErrUsbOtgPeriphNotSupported = -6688;
1.57 +
1.58 +const TInt KErrUsbOtgVbusError = -6690;
1.59 +const TInt KErrUsbOtgSrpTimeout = -6691;
1.60 +const TInt KErrUsbOtgSrpActive = -6692;
1.61 +const TInt KErrUsbOtgSrpNotPermitted = -6693;
1.62 +const TInt KErrUsbOtgHnpNotPermitted = -6694;
1.63 +const TInt KErrUsbOtgHnpNotEnabled = -6695;
1.64 +const TInt KErrUsbOtgHnpNotSuspended = -6696;
1.65 +const TInt KErrUsbOtgVbusPowerUpNotPermitted = -6697;
1.66 +const TInt KErrUsbOtgVbusPowerDownNotPermitted = -6698;
1.67 +const TInt KErrUsbOtgVbusClearErrorNotPermitted = -6699;
1.68 +
1.69 +/**
1.70 +The OTG Panic categories are a zero-based contiguous set of
1.71 +numbers whose meaning is private to OTGDI
1.72 +*/
1.73 +namespace OtgdiPanics
1.74 + {
1.75 + _LIT(KUsbOtgDriverPanicCat, "USB OTG Driver");
1.76 +
1.77 + enum TUsbOtgDriverPanics
1.78 + {
1.79 + EUsbOtgDriverNoDfcQueue,
1.80 +
1.81 + EUsbOtgDriverNotYetInitialised,
1.82 + EUsbOtgDriverAlreadyOpened,
1.83 +
1.84 + EUsbOtgDriverStackNotStarted,
1.85 +
1.86 + EUsbOtgUnknownErrorReported,
1.87 +
1.88 + EUsbOtgDriverEventRequestAlreadyRegistered,
1.89 + EUsbOtgDriverStateRequestAlreadyRegistered,
1.90 + EUsbOtgDriverMessageRequestAlreadyRegistered,
1.91 +
1.92 + EUsbOtgDriverIdPinNotificationAlreadyRegistered,
1.93 + EUsbOtgDriverVbusNotificationAlreadyRegistered,
1.94 + EUsbOtgDriverConnectionNotificationAlreadyRegistered,
1.95 + EUsbOtgDriverStateNotificationAlreadyRegistered,
1.96 +
1.97 + EUsbOtgDriverIdPinNotificationWriteFailed,
1.98 + EUsbOtgDriverVbusNotificationWriteFailed,
1.99 + EUsbOtgDriverConnectionNotificationWriteFailed,
1.100 + EUsbOtgDriverStateNotificationWriteFailed,
1.101 +
1.102 + EUsbOtgBadStateFunction
1.103 + };
1.104 + }
1.105 +
1.106 +#endif // D32OTGDI_ERRORS_H