Ioctl Command Code Reference
All ioctl command codes understood by the datadev driver and associated
headers. Pass these codes as the second argument to ioctl(fd, cmd, arg).
Note
The DMA_Ret_Index command encodes a count in the upper 16 bits of
the command code. To return N buffers, use
DMA_Ret_Index | ((N << 16) & 0xFFFF0000). For a single index,
use DMA_Ret_Index | 0x10000.
Note
DMA_Write_Register and DMA_Read_Register address PCI BAR0. On
Versal firmware that implements the auxiliary PCI BAR2 (PMC peripherals,
used to reprogram the boot flash), the same two commands reach BAR2 at
DMA_BAR2_ADDR_OFFSET + offset (0x200000000 + offset), where
offset must be 32-bit aligned. The window is listed in
/proc/datadev_<n> when the driver has mapped it; without it, those
addresses are rejected.
DmaDriver.h Commands
Macro |
Value |
Argument |
Direction |
Wrapper Function |
|---|---|---|---|---|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
|
write |
|
|
|
|
write |
|
|
|
|
write |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
|
write |
|
|
|
none (pass 0) |
read |
|
|
|
|
write |
|
|
|
|
read/write |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
|
read |
|
AxisDriver.h Commands
Macro |
Value |
Argument |
Direction |
Wrapper Function |
|---|---|---|---|---|
|
|
none (pass 0) |
write |
|
|
|
none (pass 0) |
write |
AxiVersion.h Commands
Macro |
Value |
Argument |
Direction |
Wrapper Function |
|---|---|---|---|---|
|
|
|
read |
|
GpuAsync.h Commands
Macro |
Value |
Argument |
Direction |
Wrapper Function |
|---|---|---|---|---|
|
|
|
write |
|
|
|
none (pass 0) |
write |
|
|
|
|
write |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
none (pass 0) |
read |
|
|
|
|
write |
|
|
|
|
write |
|
|
|
|
write |
|