/* * Copyright (c) 2006 NVIDIA Corporation. All Rights Reserved. * * NVIDIA Corporation and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this software and related documentation without an express * license agreement from NVIDIA Corporation is strictly prohibited. */ /* NvErrVal.h is a header used for macro expansion of the errors defined for the Nv methods & interfaces. This header is NOT protected from being included multiple times, as it is used for C pre-processor macro expansion of error codes, and the descriptions of those error codes. Each error code has a unique name, description and value to make it easier for developers to identify the source of a failure. Thus there are no generic or unknown error codes. */ /* common error codes */ NVERROR(NvSuccess, 0x00000000, "success") NVERROR(NvError_NotImplemented, 0x00000001, "method or interface is not implemented") NVERROR(NvError_NotSupported, 0x00000002, "requested operation is not supported") NVERROR(NvError_NotInitialized, 0x00000003, "method or interface is not initialized") NVERROR(NvError_BadParameter, 0x00000004, "bad parameter to method or interface") NVERROR(NvError_Timeout, 0x00000005, "not completed in the expected time") NVERROR(NvError_InsufficientMemory, 0x00000006, "insufficient system memory") NVERROR(NvError_ReadOnlyAttribute, 0x00000007, "cannot write a read-only attribute") NVERROR(NvError_InvalidState, 0x00000008, "module is in invalid state to perform the requested operation") NVERROR(NvError_InvalidAddress, 0x00000009, "invalid address") NVERROR(NvError_InvalidSize, 0x0000000A, "invalid size") NVERROR(NvError_BadValue, 0x0000000B, "illegal value specified for parameter") /* surface specific error codes */ NVERROR(NvError_InsufficientVideoMemory, 0x00010000, "insufficient video memory") NVERROR(NvError_BadSurfaceColorScheme, 0x00010001, "this surface scheme is not supported in the current controller") /* display specific error codes */ NVERROR(NvError_DisplayIncompatible, 0x00020000, "display incompatible with method or interface") NVERROR(NvError_NoCompatibleMode, 0x00020001, "no compatible mode exists for the attached displays") NVERROR(NvError_ModeNotSupported, 0x00020002, "the mode is not supported by the display or controller") NVERROR(NvError_ControllerActive, 0x00020003, "the controller is active and cannot perform the operation") NVERROR(NvError_DisplayAlreadyAttached, 0x00020004, "the display is already attached to the controller") NVERROR(NvError_DetachDisplayFirst, 0x00020005, "the display is already attached to another controller") NVERROR(NvError_TooManyDisplays, 0x00020006, "the controller has not enough free display slots") NVERROR(NvError_NoDisplaysAttached, 0x00020007, "there are no displays attached to this controller") NVERROR(NvError_AlreadySuspended, 0x00020008, "the controller is already suspended") NVERROR(NvError_NotSuspended, 0x00020009, "the controller is not suspended, so cannot resume it") NVERROR(NvError_EmptyColorKeyRange, 0x00020010, "color key range that was set is empty") NVERROR(NvError_NoMode, 0x00020011, "controller is not driving a mode, cannot perform the selected action") NVERROR(NvError_NotInVerticalBlank, 0x00020012, "controller is not in vertical blank") /* DMA specific error codes */ NVERROR(NvError_DmaTargetNotLocked, 0x00030000, "client does not have a lock for this target DMA controller") NVERROR(NvError_DmaCommunicationError, 0x00030001, "the DMA controller had failed to communicate with the target") NVERROR(NvError_DmaOpNotFinished, 0x00030002, "the DMA operation has not completed") NVERROR(NvError_DmaChannelNotAvailable, 0x00030003, "the requested DMA channel is not available") NVERROR(NvError_InvalidSourceId, 0x00030004, "invalid source ID") NVERROR(NvError_InvalidDestinationId, 0x00030005, "invalid destination ID") /* NvOs error codes */ NVERROR(NvError_FileWriteFailed, 0x00040000, "the file write operation failed") NVERROR(NvError_FileReadFailed, 0x00040001, "the file read operation failed") NVERROR(NvError_EndOfFile, 0x00040002, "the end of file has been reached") NVERROR(NvError_FileOperationFailed, 0x00040003, "the file operation has failed") NVERROR(NvError_DirOperationFailed, 0x00040004, "the directory operation has failed") NVERROR(NvError_EndOfDirList, 0x00040005, "there are no more entries in the directory") NVERROR(NvError_ConfigVarNotFound, 0x00040006, "the configuration variable is not present") NVERROR(NvError_InvalidConfigVar, 0x00040007, "the configuration variable is corrupted") NVERROR(NvError_LibraryNotFound, 0x00040008, "the dynamic library was not found for open") NVERROR(NvError_SymbolNotFound, 0x00040009, "the symbol in a dyanmic library was not found") NVERROR(NvError_MemoryMapFailed, 0x0004000a, "the memory mapping operation failed") NVERROR(NvError_MutexCreateFailed, 0x0004000b, "the mutex create operation failed") NVERROR(NvError_SemaphoreCreateFailed, 0x0004000c, "the semaphore create operation failed") NVERROR(NvError_ThreadCreateFailed, 0x0004000d, "the thread create operation failed") NVERROR(NvError_SharedMemAllocFailed, 0x0004000e, "the shared memory allocation operation failed") /* NvBoard error codes */ NVERROR(NvError_I2CNotAcknowledged, 0x00050000, "I2C acknowledge was not received") NVERROR(NvError_KernelDriverNotFound, 0x00050001, "unable to find kernel driver") NVERROR(NvError_KernelDriverBadVersion, 0x00050002, "the kernel driver is out of date") NVERROR(NvError_KernelDriverIOFailed, 0x00050003, "the driver operation failed") NVERROR(NvError_ModeMismatched, 0x00050004, "conflicting board mode") NVERROR(NvError_VoltageOutsideRange, 0x00050005, "requested voltage is outside valid range") NVERROR(NvError_EventNotEnabled, 0x00050006, "the event is not enabled") NVERROR(NvError_EventBusy, 0x00050007, "the event is busy") NVERROR(NvError_InterruptInitFailed, 0x00050008, "error initializing interrupts") /* NvIrq error codes */ NVERROR(NvError_EventNotFound, 0x00060000, "no event found") /* Nv2D error codes */ NVERROR(NvError_InvalidSurface, 0x00070000, "invalid surface") NVERROR(NvError_RopNotSupported, 0x00070001, "rop not supported") NVERROR(NvError_SurfaceNotSupported, 0x00070002, "surface is not supported") NVERROR(NvError_BitmapNotSupported, 0x00070003, "bitmap is not supported") /* NvPower error codes */ NVERROR(NvError_ResourceAlreadyInUse, 0x00080000, "resource already in use") NVERROR(NvError_ResourceNotInUse, 0x00080001, "resource not in use") NVERROR(NvError_ResourceInUse, 0x00080002, "resource is in use") /* UART error codes */ NVERROR(NvError_UartOverrun, 0x00090000, "overrun occurred when receiving the data") NVERROR(NvError_UartFraming, 0x00090001, "data received had framing error") NVERROR(NvError_UartParity, 0x00090002, "data received had parity error") NVERROR(NvError_UartFifoError, 0x00090003, "FIFO error occurred during receive/transmit") NVERROR(NvError_UartBreakReceived, 0x00090004, "received break signal") NVERROR(NvError_UartTransmit, 0x00090005, "UART transmit error") /* NvRm error code */ NVERROR(NvError_RmInitFailed, 0x000a0000, "rm failed to initialize") NVERROR(NvError_RmChannelInitFailure, 0x000a0001, "channel init failed") NVERROR(NvError_RmStreamInitFailure, 0x000a0002, "stream init failed") NVERROR(NvError_RmSyncPointAllocFailure, 0x000a0003, "sync point alloc failed") NVERROR(NvError_RmStreamFlushFailure, 0x000a0004, "stream flush failed") /* NvIsp error codes */ NVERROR(NvError_ChannelAllocFailed, 0x000B0000, "channel allocation failed") NVERROR(NvError_NoConnectedImager, 0x000B0001, "no imager connected") NVERROR(NvError_UnsupportedResolution, 0x000B0002, "unsupported resolution") NVERROR(NvError_I2CCommunicationError, 0x000B0003, "i2c communication failed") NVERROR(NvError_IspConfigFileParseError, 0x000B0004, "isp config file parse error") NVERROR(NvError_IspBusy, 0x000B0005, "isp 3A algorithm busy") NVERROR(NvError_TooDark, 0x000B0006, "image too dark for 3A operation") /* NvTest error codes */ NVERROR(NvError_TestApplicationFailed, 0x000c0000, "the test application failed") NVERROR(NvError_TestNoUserInput, 0x000c0001, "no user input available") NVERROR(NvError_TestCommandLineError, 0x000c0002, "command line parsing error") /* NvCam error codes */ NVERROR(NvError_VmAllocFailed, 0x000D0000, "virtual machine allocation failed") NVERROR(NvError_ScriptAccessFailed, 0x000D0001, "unable to access script") NVERROR(NvError_GettingComponentFailed, 0x000D0002, "getting component failed") NVERROR(NvError_VmBufferAllocFailed, 0x000D0003, "vm buffer allocation failed") NVERROR(NvError_CameraScriptNotPresent, 0x000D0004, "camera script not present") NVERROR(NvError_IllegalBayerValues, 0x000D0005, "illegal bayer values") NVERROR(NvError_ColorFormatNotSupported, 0x000D0006, "color format not supported") /* USBF error codes */ NVERROR(NvError_UsbfTxfrActive, 0x000E0000, "The endpoint has an active transfer in progress.") NVERROR(NvError_UsbfTxfrComplete, 0x000E0001, "The endpoint has a completed transfer that has not been cleared.") NVERROR(NvError_UsbfEpStalled, 0x000E0002, "The endpoint has been placed in a halted or stalled state.") NVERROR(NvError_UsbfEpError, 0x000E0003, "The last transfer started on this endpoint failed to complete.") /* ^^^ ADD ALL NEW ERRORS RIGHT ABOVE HERE ^^^ */ NVERROR(NvErrorNotImplemented, 0x00000001, "remove me later!") NVERROR(NvErrorNotSupported, 0x00000002, "remove me later!") NVERROR(NvErrorNotInitialized, 0x00000003, "remove me later!") NVERROR(NvErrorBadParameter, 0x00000004, "remove me later!") NVERROR(NvErrorTimeout, 0x00000005, "remove me later!") NVERROR(NvErrorInsufficientMemory, 0x00000006, "remove me later!") NVERROR(NvErrorReadOnlyAttribute, 0x00000007, "remove me later!") NVERROR(NvErrorInvalidState, 0x00000008, "remove me later!") NVERROR(NvErrorInvalidAddress, 0x00000009, "remove me later!") NVERROR(NvErrorInvalidSize, 0x0000000A, "remove me later!") NVERROR(NvErrorBadValue, 0x0000000B, "remove me later!") /* surface specific error codes */ NVERROR(NvErrorInsufficientVideoMemory, 0x00010000, "remove me later!") NVERROR(NvErrorBadSurfaceColorScheme, 0x00010001, "remove me later!") /* display specific error codes */ NVERROR(NvErrorDisplayIncompatible, 0x00020000, "remove me later!") NVERROR(NvErrorNoCompatibleMode, 0x00020001, "remove me later!") NVERROR(NvErrorModeNotSupported, 0x00020002, "remove me later!") NVERROR(NvErrorControllerActive, 0x00020003, "remove me later!") NVERROR(NvErrorDisplayAlreadyAttached, 0x00020004, "remove me later!") NVERROR(NvErrorDetachDisplayFirst, 0x00020005, "remove me later!") NVERROR(NvErrorTooManyDisplays, 0x00020006, "remove me later!") NVERROR(NvErrorNoDisplaysAttached, 0x00020007, "remove me later!") NVERROR(NvErrorAlreadySuspended, 0x00020008, "remove me later!") NVERROR(NvErrorNotSuspended, 0x00020009, "remove me later!") NVERROR(NvErrorEmptyColorKeyRange, 0x00020010, "remove me later!") NVERROR(NvErrorNoMode, 0x00020011, "remove me later!") NVERROR(NvErrorNotInVerticalBlank, 0x00020012, "remove me later!") /* DMA specific error codes */ NVERROR(NvErrorDmaTargetNotLocked, 0x00030000, "remove me later!") NVERROR(NvErrorDmaCommunicationError, 0x00030001, "remove me later!") NVERROR(NvErrorDmaOpNotFinished, 0x00030002, "remove me later!") NVERROR(NvErrorDmaChannelNotAvailable, 0x00030003, "remove me later!") NVERROR(NvErrorInvalidSourceId, 0x00030004, "remove me later!") NVERROR(NvErrorInvalidDestinationId, 0x00030005, "remove me later!") /* NvOs error codes */ NVERROR(NvErrorFileWriteFailed, 0x00040000, "remove me later!") NVERROR(NvErrorFileReadFailed, 0x00040001, "remove me later!") NVERROR(NvErrorEndOfFile, 0x00040002, "remove me later!") NVERROR(NvErrorFileOperationFailed, 0x00040003, "remove me later!") NVERROR(NvErrorDirOperationFailed, 0x00040004, "remove me later!") NVERROR(NvErrorEndOfDirList, 0x00040005, "remove me later!") NVERROR(NvErrorConfigVarNotFound, 0x00040006, "remove me later!") NVERROR(NvErrorInvalidConfigVar, 0x00040007, "remove me later!") NVERROR(NvErrorLibraryNotFound, 0x00040008, "remove me later!") NVERROR(NvErrorSymbolNotFound, 0x00040009, "remove me later!") NVERROR(NvErrorMemoryMapFailed, 0x0004000a, "remove me later!") NVERROR(NvErrorMutexCreateFailed, 0x0004000b, "remove me later!") NVERROR(NvErrorSemaphoreCreateFailed, 0x0004000c, "remove me later!") NVERROR(NvErrorThreadCreateFailed, 0x0004000d, "remove me later!") NVERROR(NvErrorSharedMemAllocFailed, 0x0004000e, "remove me later!") /* NvBoard error codes */ NVERROR(NvErrorI2CNotAcknowledged, 0x00050000, "remove me later!") NVERROR(NvErrorKernelDriverNotFound, 0x00050001, "remove me later!") NVERROR(NvErrorKernelDriverBadVersion, 0x00050002, "remove me later!") NVERROR(NvErrorKernelDriverIOFailed, 0x00050003, "remove me later!") NVERROR(NvErrorModeMismatched, 0x00050004, "remove me later!") NVERROR(NvErrorVoltageOutsideRange, 0x00050005, "remove me later!") NVERROR(NvErrorEventNotEnabled, 0x00050006, "remove me later!") NVERROR(NvErrorEventBusy, 0x00050007, "remove me later!") NVERROR(NvErrorInterruptInitFailed, 0x00050008, "remove me later!") /* NvIrq error codes */ NVERROR(NvErrorEventNotFound, 0x00060000, "remove me later!") /* Nv2D error codes */ NVERROR(NvErrorInvalidSurface, 0x00070000, "remove me later!") NVERROR(NvErrorRopNotSupported, 0x00070001, "remove me later!") NVERROR(NvErrorSurfaceNotSupported, 0x00070002, "remove me later!") NVERROR(NvErrorBitmapNotSupported, 0x00070003, "remove me later!") /* NvPower error codes */ NVERROR(NvErrorResourceAlreadyInUse, 0x00080000, "remove me later!") NVERROR(NvErrorResourceNotInUse, 0x00080001, "remove me later!") NVERROR(NvErrorResourceInUse, 0x00080002, "remove me later!") /* UART error codes */ NVERROR(NvErrorUartOverrun, 0x00090000, "remove me later!") NVERROR(NvErrorUartFraming, 0x00090001, "remove me later!") NVERROR(NvErrorUartParity, 0x00090002, "remove me later!") NVERROR(NvErrorUartFifoError, 0x00090003, "remove me later!") NVERROR(NvErrorUartBreakReceived, 0x00090004, "remove me later!") NVERROR(NvErrorUartTransmit, 0x00090005, "remove me later!") /* NvRm error code */ NVERROR(NvErrorRmInitFailed, 0x000a0000, "remove me later!") NVERROR(NvErrorRmChannelInitFailure, 0x000a0001, "remove me later!") NVERROR(NvErrorRmStreamInitFailure, 0x000a0002, "remove me later!") NVERROR(NvErrorRmSyncPointAllocFailure, 0x000a0003, "remove me later!") NVERROR(NvErrorRmStreamFlushFailure, 0x000a0004, "remove me later!") /* NvIsp error codes */ NVERROR(NvErrorChannelAllocFailed, 0x000B0000, "remove me later!") NVERROR(NvErrorNoConnectedImager, 0x000B0001, "remove me later!") NVERROR(NvErrorUnsupportedResolution, 0x000B0002, "remove me later!") NVERROR(NvErrorI2CCommunicationError, 0x000B0003, "remove me later!") NVERROR(NvErrorIspConfigFileParseError, 0x000B0004, "remove me later!") NVERROR(NvErrorIspBusy, 0x000B0005, "remove me later!") NVERROR(NvErrorTooDark, 0x000B0006, "remove me later!") /* NvTest error codes */ NVERROR(NvErrorTestApplicationFailed, 0x000c0000, "remove me later!") NVERROR(NvErrorTestNoUserInput, 0x000c0001, "remove me later!") NVERROR(NvErrorTestCommandLineError, 0x000c0002, "remove me later!") /* NvCam error codes */ NVERROR(NvErrorVmAllocFailed, 0x000D0000, "remove me later!") NVERROR(NvErrorScriptAccessFailed, 0x000D0001, "remove me later!") NVERROR(NvErrorGettingComponentFailed, 0x000D0002, "remove me later!") NVERROR(NvErrorVmBufferAllocFailed, 0x000D0003, "remove me later!") NVERROR(NvErrorCameraScriptNotPresent, 0x000D0004, "remove me later!") NVERROR(NvErrorIllegalBayerValues, 0x000D0005, "remove me later!") NVERROR(NvErrorColorFormatNotSupported, 0x000D0006, "remove me later!") /* USBF error codes */ NVERROR(NvErrorUsbfTxfrActive, 0x000E0000, "remove me later!") NVERROR(NvErrorUsbfTxfrComplete, 0x000E0001, "remove me later!") NVERROR(NvErrorUsbfEpStalled, 0x000E0002, "remove me later!") NVERROR(NvErrorUsbfEpError, 0x000E0003, "remove me later!")