User guide
MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 9
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4 Global Definitions
4.1 I/O Control Codes
The I/O control code is the second argument in the ioctl function.
Internally, these values (as shown in Table 2), are used in conjunction with a base index to create the I/O
control codes. The macro for this base index is defined by the
MPC18x_IOCTL_INDEX and has a value of
0x0800.
Note: The * in the third column of the above table indicates a pointer.
Table 2. Second and Third Arguments in the ioctl Function
I/O Control Code (Second Argument in ioctl Function) Value Third Argument in ioctl Function
IOCTL_PROC_REQ 0x0801 Request Structure *
IOCTL_GET_STATUS 0x0802 STATUS_REQ *
IOCTL_RESERVE_CHANNEL_STATIC 0x0804 unsigned long *channel
IOCTL_RESERVE_CHANNEL_MANUAL
1
1
This control code is used exclusively in debug/slave mode. The drivers make it available but do not use it.
0x0805 MPC18x_RESERVE_MANUAL *
IOCTL_ASSIGN_CHA 0x0806 unsigned long cha
IOCTL_RELEASE_CHA 0x0807 unsigned long cha
IOCTL_RELEASE_CHANNEL 0x0808 unsigned long *channel
The following are used for LINUX only
IOCTL_MALLOC 0x080D MALLOC_REQ *
IOCTL_FREE 0x080E MALLOC_REQ *
IOCTL_COPYFROM 0x080F MALLOC_REQ *
IOCTL_COPYTO 0x0810 MALLOC_REQ *










