SEC 2.0 Reference Device Driver User’s Guide, Rev. 0
10 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale Semiconductor
User Interface
3.3.5 Miscellaneous Request Structures

3.3.5.1 STATUS_REQ Structure

Used to indicate the internal stat e of the SEC2 core as well as the d river after the occurrence of a n event. Returned

as a pointer by GetStatus() and embedded in all requests. This structure is defined in Sec2Notify.h

Each element is a copy of the contents of the same register in the SEC2 driver. This structure is also known as

SEC2_STATUS through a typedef.
unsigned long ChaAssign mentStatusRegister[2];
unsigned long Interrupt ControlRegister[2];
unsigned long Interrupt StatusRegister[2];
unsigned long IdRegiste r;
unsigned long ChannelSt atusRegister[NUM_CHANN ELS][2];
unsigned long ChannelCo nfigurationRegister[NU M_CHANNELS][2];
unsigned long CHAInterr uptStatusRegister[NUM_ CHAS][2];
unsigned long QueueEntr yDepth;
unsigned long FreeChann els;
unsigned long FreeAfhas ;
unsigned long FreeDesas ;
unsigned long FreeMdhas ;
unsigned long FreePkhas ;
unsigned long FreeAesas ;
unsigned long FreeKeas;
unsigned long BlockSize ;

3.3.5.2 SEC2_NOTIFY_ON_ERROR_CT X Structure

Structure returned to the notify_on_error callback routine that was setup in the initial process request. This

structure contains the original req uest structure as well as an er ror and driver status.

unsigned long errorcode; // Error that the re quest generated
void *request ; // Pointer to original request
SEC2_CANCELLED_REQUEST Error due to canceled request -1010
SEC2_INVALID_ADDRESS Error due to a NULL request -1011
Table5. C allback Error Status Return Code (continued)
Define Description Value