2 device driver components, 1 device driver structure, Device driver components – Freescale Semiconductor SEC2SWUG User Manual
Page 3: 2device driver components

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0
Freescale Semiconductor
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
3
Device Driver Components
2
Device Driver Components
This section is provided to help users understand the internal structure of the device driver.
2.1 Device Driver Structure
Internally, the driver is structured in four basic components:
•
Driver Initialization and Setup
•
Application Request Processing
•
Interrupt Service Routine
•
Deferred Service Routine
While executing a request, the driver runs in system/kernel state for all components with the exception of the ISR,
which runs in the operating system's standard interrupt processing context.
RDK
Restore decrypt key—An AESA option to re-use an existing expanded AES decryption key.
RNGA
Random number generator accelerator
SDES
Single DES
TEA
Transfer error acknowledge
TDES
Triple DES
VxWorks
Operating systems provided by VxWorks Company.
Table 1. Acronyms and Abbreviations (continued)
Term
Meaning
•
Prepare Descriptors
•
Queue Request when Channels are Unavailable
•
Start the descriptor’s execution in a channel
•
Tracks Requests
Driver
Invoked
Callback Function
Prepare Request
(Non-Blocking)
ioctl ( )
Sleeps on Queue
Completes the User Request
Execute Callback Function
*
Driver
Returns
End-User Application
ProcessingComplete Task
Operation
Starts
SEC2.x Execution
Operation Completed/
Interrupt Generated
ISR
IsrMsgQId
Writing a Message to the Queue Wakes
the ProcessingComplete Task
If no callback function is defined, no callback takes place.
*
Driver Code