XPm_DevIoctl - 2023.1 English

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

Document ID
UG643
Release Date
2023-05-16
Version
2023.1 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