Occs Driver Arguments - Ioctl; Ioctl Commands - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

ioctl call(s):
The ioctl call is generally represented by the following form:
UWord16 ioctl(const int *pModuleBase, void cmd, UWord16 param);
UWord16 ioctl(const int *pModuleBase, void cmd, void *pParam);
Description: The ioctl call "changes" OCCS device modes or accesses the OCCS register(s).
Keep in mind that ioctl is treated as macro and that in result it is mostly compiled to an optimal
inline code.
Arguments:
pModuleBase
cmd
pParam
Items Separators Convention:
/ only one of the specified items is allowed
| consolidation of items is allowed ( item1 | item2 | item3 )
& intersection of items is allowed ( item1 & item2 & item3 )
Cmd
OCCS_INIT
OCCS_SET_CORE_CLOCK
OCCS_SET_POSTSCALER
5-8
Table 5-3. OCCS Driver Arguments - ioctl
in
in
in, inout
Table 5-4. ioctl commands
param, pParam
NULL
UWord16
OCCS_CLOCK_OUT_DIVIDE_BY_1 /
OCCS_CLOCK_OUT_DIVIDE_BY_2 /
OCCS_CLOCK_OUT_DIVIDE_BY_4 /
OCCS_CLOCK_OUT_DIVIDE_BY_8
and on MC56F80xx additional:
OCCS_CLOCK_OUT_DIVIDE_BY_16 /
OCCS_CLOCK_OUT_DIVIDE_BY_32
and on MC56F800x additional:
OCCS_CLOCK_OUT_DIVIDE_BY_64 /
OCCS_CLOCK_OUT_DIVIDE_BY_128 /
OCCS_CLOCK_OUT_DIVIDE_BY_256
Targeting 56F8xxx Platform
OCCS module identifier. Use OCCS.
Command names found in occs.h. See
Table 5-4.
Used to pass the relevant data to ioctl
function call.
Return
None
None
None
FREESCALE SEMICONDUCTOR
Description
Does nothing. Maintained only
for backward compatibility.
Note that PLL is initialized early
during the startup code.
Sets DSC core frequency
according to values passed as
pParam parameter.
Sets Postscaler value.

Advertisement

Table of Contents
loading

Table of Contents