XPm_DevIoctl - 2022.2 English

Xilinx Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2022-10-19
Version
2022.2 English

This function performs driver-like IOCTL functions on shared system devices.

Prototype

XStatus XPm_DevIoctl(const u32 DeviceId, const pm_ioctl_id IoctlId, const u32 Arg1, const u32 Arg2, u32 *const Response);

Parameters

The following table lists the XPm_DevIoctl function arguments.

Table 1. XPm_DevIoctl Arguments
Type Name Description
const u32 DeviceId ID of the device
const pm_ioctl_id IoctlId IOCTL function ID
const u32 Arg1 Argument 1
const u32 Arg2 Argument 2
u32 *const Response Ioctl response

Returns

XST_SUCCESS if successful else XST_FAILURE or an error code or a reason code