User guide

MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 11
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4.4 Return Code Definitions
Table 5 provides a complete list of the error status results that may be returned to the callback routines.
Table 5. Callback Error Status Return Code
Define Description Value
MPC18x_SUCCESS Successful completion of call 0
MPC18x_MEMORY_ALLOCATION Error due to memory allocation 0xE004FFFF
MPC18x_INVALID_CHANNEL Error due to invalid channel 0xE004FFFE
MPC18x_INVALID_CHA_TYPE Error due to invalid CHA type 0xE004FFFD
MPC18x_INVALID_OPERATION_ID Error due to invalid OpId 0xE004FFFC
MPC18x_CHANNEL_NOT_AVAILABLE Error due to channel not being
available
0xE004FFFB
MPC18x_CHA_NOT_AVAILABLE Error due to CHA not being available 0xE004FFFA
MPC18x_INVALID_LENGTH Error due to invalid request length 0xE004FFF9
MPC18x_OUTPUT_BUFFER_ALIGNMENT Error due to output buffer alignment 0xE004FFF8
MPC18x_ADDRESS_PROBLEM Error due to address not being
allocated
0xE004FFF6
MPC18x_INSUFFICIENT_REQS Error due to insufficient req_list
entries
0xE004FFF5
MPC18x_STATIC_CHANNEL_BUSY Error due to channel already
handling static request
0xE004FFF3
MPC18x_CHA_ERROR Error due to problem with CHA 0xE004FFF2
MPC18x_NULL_REQUEST Error due to NULL request 0xE004FFF1
MPC18x_REQUEST_TIMED_OUT Error due to request timing out 0xE004FFF0
MPC18x_MALLOC_FAILED Error due to memory mgmt malloc
failing
0xE004FFEF
MPC18x_FREE_FAILED Error due to memory mgmt free
failing
0xE004FFEE
MPC18x_PARITY_SYSTEM_ERROR Parity Errordetected on the bus 0xE004FFED
MPC18x_INCOMPLETE_POINTER Error due to partial pointer 0xE004FFEC
MPC18x_TEA_ERROR A transfer error has occurred 0xE004FFEB
MPC18x_UNKNOWN_ERROR Any other unrecognized error 0xE004FFEA
MPC18x_IO_CARD_NOT_FOUND Error due to MPC18x card not being
found
–1000
MPC18x_IO_MEMORY_ALLOCATE_ERROR Error due to insufficient resources –1001
MPC18x_IO_IO_ERROR Error due to I/O configuration –1002
MPC18x_IO_VXWORKS_DRIVER_TABLE_ADD_ERROR Error due to VxWorks not being able
to add driver to table
–1003
MPC18x_IO_INTERRUPT_ALLOCATE_ERROR Error due to interrupt allocation error –1004