User guide

10 MPC184/MPC185 Security Co-Processor Software User’s Guide MOTOROLA
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions Global Definitions
4.2 Channel Definitions
The NUM_CHANNELS define is used to specify the number of channels in the MCP18x (see Table 3). If not
specified it will be set to a value of 4 as a default.
The
NUM_CHAS define contains the total number of crypto hardware accelerators (CHAs) in the MPC18x
and is simply defines as the sum of the individual channels in Table 3.
The device that is used is defined as the macro
VxWorksDrvName regardless of whether or not VxWorks is
being used. For the MCP185 this is set to ‘/dev/mpc185’ and for the MCP184 this is set to ‘/dev/mpc184.
4.3 Request Operation Id (opId) Masks
Operation Ids can be broken down into two parts, the group or type of request and the request index or
descriptor within a group or type (see Table 4). This is provided to help understand the structuring of the
opIds. It is not specifically needed within a user application.
Table 3. Channel Defines
Define Description
Value For
MCP185
MCP184
(pci or 8xx)
NUM_AFHAS Number of ARC4 CHAs 11
NUM_DESAS Number of DES CHAs 21
NUM_MDHAS Number of MD CHAs 21
NUM_RNGAS Number of RNG CHAs 11
NUM_PKHAS Number of PK CHAs 21
NUM_AESAS Number of AESA CHAs 21
NUM_KEA Number of KEA CHAs 10
Table 4. Request Operation ID Mask
Define Description Value
DESC_TYPE_MASK The mask for the group or type of an opId 0xFF00
DESC_NUM_MASK The mask for the request index or descriptor within that group or type 0x00FF