Pre-fetch

Linux Drivers

Release Date
2023-07-22
  • dfx_cfg_init (const char *dfx_package_ path , const char * devpath , u32 flags);

/* Provide a generic interface to the user to specify the required parameters for PR programming. * The calling process must call this API before it performs -load/remove. * * char *dfx_package_path: The contents of the package folder should look something as below: *                                -package: //-package1 *                                                                |--> Bit_file *                                                                |--> DT_Overlayfile * *  char *devpath: Unused for now. The dev interface for now is always exposed at /dev/fpga0 * * unsigned long flags: Flags to specify any special instructions for library to perform. *                      Unused for now. * * Return: returns unique package_Id or Error code on failure. */ Usage example: #include "libdfx.h" package_id1, package_id2; /* More code */ /* -store /Pre-fetch data */ package_id1 = dfx_cfg_init ("/path/package1/", "/dev/fpga0", flags); /* More code */ /* -store /Pre-fetch data */ package_id2 = dfx_cfg_init ("/path/package2/", "/dev/fpga0", flags); /* More code */