sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef D32OTGDI_ERRORS_H sl@0: #define D32OTGDI_ERRORS_H sl@0: sl@0: #ifndef __KERNEL_MODE__ sl@0: #include sl@0: #else sl@0: #include sl@0: #endif sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @prototype sl@0: */ sl@0: sl@0: /** sl@0: The messages which indicate problem conditions are reported as a based set sl@0: of numbers derived from the basic USB+Host set (-6670 -> -6699) sl@0: */ sl@0: const TInt KErrUsbOtgEventQueueOverflow = -6670; sl@0: const TInt KErrUsbOtgStateQueueOverflow = -6671; sl@0: const TInt KErrUsbOtgMessageQueueOverflow = -6672; sl@0: sl@0: const TInt KErrUsbOtgBadState = -6675; sl@0: sl@0: const TInt KErrUsbOtgStackNotStarted = -6680; sl@0: const TInt KErrUsbOtgVbusAlreadyRaised = -6681; sl@0: const TInt KErrUsbOtgSrpForbidden = -6682; sl@0: sl@0: const TInt KErrUsbOtgHnpNotResponding = -6683; sl@0: const TInt KErrUsbOtgHnpBusDrop = -6684; sl@0: sl@0: const TInt KErrUsbOtgBusControlProblem = -6685; sl@0: sl@0: const TInt KErrUsbOtgVbusPowerUpError = -6686; sl@0: sl@0: const TInt KErrUsbOtgHnpEnableProblem = -6687; sl@0: const TInt KErrUsbOtgPeriphNotSupported = -6688; sl@0: sl@0: const TInt KErrUsbOtgVbusError = -6690; sl@0: const TInt KErrUsbOtgSrpTimeout = -6691; sl@0: const TInt KErrUsbOtgSrpActive = -6692; sl@0: const TInt KErrUsbOtgSrpNotPermitted = -6693; sl@0: const TInt KErrUsbOtgHnpNotPermitted = -6694; sl@0: const TInt KErrUsbOtgHnpNotEnabled = -6695; sl@0: const TInt KErrUsbOtgHnpNotSuspended = -6696; sl@0: const TInt KErrUsbOtgVbusPowerUpNotPermitted = -6697; sl@0: const TInt KErrUsbOtgVbusPowerDownNotPermitted = -6698; sl@0: const TInt KErrUsbOtgVbusClearErrorNotPermitted = -6699; sl@0: sl@0: /** sl@0: The OTG Panic categories are a zero-based contiguous set of sl@0: numbers whose meaning is private to OTGDI sl@0: */ sl@0: namespace OtgdiPanics sl@0: { sl@0: _LIT(KUsbOtgDriverPanicCat, "USB OTG Driver"); sl@0: sl@0: enum TUsbOtgDriverPanics sl@0: { sl@0: EUsbOtgDriverNoDfcQueue, sl@0: sl@0: EUsbOtgDriverNotYetInitialised, sl@0: EUsbOtgDriverAlreadyOpened, sl@0: sl@0: EUsbOtgDriverStackNotStarted, sl@0: sl@0: EUsbOtgUnknownErrorReported, sl@0: sl@0: EUsbOtgDriverEventRequestAlreadyRegistered, sl@0: EUsbOtgDriverStateRequestAlreadyRegistered, sl@0: EUsbOtgDriverMessageRequestAlreadyRegistered, sl@0: sl@0: EUsbOtgDriverIdPinNotificationAlreadyRegistered, sl@0: EUsbOtgDriverVbusNotificationAlreadyRegistered, sl@0: EUsbOtgDriverConnectionNotificationAlreadyRegistered, sl@0: EUsbOtgDriverStateNotificationAlreadyRegistered, sl@0: sl@0: EUsbOtgDriverIdPinNotificationWriteFailed, sl@0: EUsbOtgDriverVbusNotificationWriteFailed, sl@0: EUsbOtgDriverConnectionNotificationWriteFailed, sl@0: EUsbOtgDriverStateNotificationWriteFailed, sl@0: sl@0: EUsbOtgBadStateFunction sl@0: }; sl@0: } sl@0: sl@0: #endif // D32OTGDI_ERRORS_H