dp12txss
Vitis Drivers API Documentation
|
This file contains the implementation for the key management device module.
Macros | |
#define | doRegRead(theDevice, theReg) (Xil_In32(theDevice->fBaseAddress+(theReg))) |
This function reads a register from a specific device. More... | |
#define | doRegWrite(theDevice, theReg, theValue) (Xil_Out32((theDevice->fBaseAddress+(theReg)), (theValue))) |
This function writes a register in a specific device. More... | |
Functions | |
KEYMGMT_tError | KEYMGMTDEV_Init (void) |
This function initializes the module. More... | |
KEYMGMT_tError | KEYMGMTDEV_Probe (KEYMGMT_tDevID theDevID, KEYMGMT_tTableID *theNumTables, KEYMGMT_tRowID *theNumRowsPerTable) |
This function probes a device. More... | |
KEYMGMT_tError | KEYMGMTDEV_Enable (KEYMGMT_tDevID theDevID) |
This function enables a device. More... | |
KEYMGMT_tError | KEYMGMTDEV_Disable (KEYMGMT_tDevID theDevID) |
This function disables a device. More... | |
KEYMGMT_tError | KEYMGMTDEV_Load (KEYMGMT_tDevID theDevID, KEYMGMT_tTableID theTableID, const uint64_t *theBuf, int theBufSize) |
This function loads a buffer of data into a table. More... | |
KEYMGMT_tError | KEYMGMTDEV_Verify (KEYMGMT_tDevID theDevID, KEYMGMT_tTableID theTableID, const uint64_t *theBuf, int theBufSize) |
This function verifies the contents of a table against a buffer. More... | |
uint32_t | KEYMGMTDEV_GetVersion (KEYMGMT_tDevID theDevID) |
This function reads the version of the device core. More... | |
int | KEYMGMTDEV_Debug (int argc, const char *argv[]) |
This function implements the "keymgmt device" debug command. More... | |
#define doRegRead | ( | theDevice, | |
theReg | |||
) | (Xil_In32(theDevice->fBaseAddress+(theReg))) |
This function reads a register from a specific device.
theDevice | the device to read from |
theReg | the register to read |
Referenced by KEYMGMTDEV_GetVersion().
#define doRegWrite | ( | theDevice, | |
theReg, | |||
theValue | |||
) | (Xil_Out32((theDevice->fBaseAddress+(theReg)), (theValue))) |
This function writes a register in a specific device.
theDevice | the device to write to |
theReg | the register to write |
theValue | the value to write |
int KEYMGMTDEV_Debug | ( | int | argc, |
const char * | argv[] | ||
) |
This function implements the "keymgmt device" debug command.
argc | the number of command line arguments |
argv | the list of the command line arguments |
Referenced by KEYMGMT_Debug().
KEYMGMT_tError KEYMGMTDEV_Disable | ( | KEYMGMT_tDevID | theDevID | ) |
This function disables a device.
theDevID | the id of the device to disable |
KEYMGMT_tError KEYMGMTDEV_Enable | ( | KEYMGMT_tDevID | theDevID | ) |
This function enables a device.
theDevID | the id of the device to enable |
uint32_t KEYMGMTDEV_GetVersion | ( | KEYMGMT_tDevID | theDevID | ) |
This function reads the version of the device core.
theDevID | the id of the device to query |
References doRegRead.
KEYMGMT_tError KEYMGMTDEV_Init | ( | void | ) |
This function initializes the module.
Referenced by KEYMGMT_Init().
KEYMGMT_tError KEYMGMTDEV_Load | ( | KEYMGMT_tDevID | theDevID, |
KEYMGMT_tTableID | theTableID, | ||
const uint64_t * | theBuf, | ||
int | theBufSize | ||
) |
This function loads a buffer of data into a table.
theDevID | the id of the device being loaded |
theTableD | the id of the table to be loaded |
theBuf | the buffer of data to be loaded |
theBufSize | the size of the buffer (in bytes) |
KEYMGMT_tError KEYMGMTDEV_Probe | ( | KEYMGMT_tDevID | theDevID, |
KEYMGMT_tTableID * | theNumTables, | ||
KEYMGMT_tRowID * | theNumRowsPerTable | ||
) |
This function probes a device.
theDevID | the id of the device to probe |
KEYMGMT_tError KEYMGMTDEV_Verify | ( | KEYMGMT_tDevID | theDevID, |
KEYMGMT_tTableID | theTableID, | ||
const uint64_t * | theBuf, | ||
int | theBufSize | ||
) |
This function verifies the contents of a table against a buffer.
theDevID | the id of the device being queried |
theTableD | the id of the table to be verified |
theBuf | the buffer of data to be verified against |
theBufSize | the size of the buffer (in bytes) |