Lines Matching full:fpga
3 * FPGA Manager Core
12 #include <linux/fpga/fpga-mgr.h>
56 * After all the FPGA image has been written, do the device specific steps to
57 * finish and set the FPGA into operating mode.
68 dev_err(&mgr->dev, "Error after writing image data to FPGA\n"); in fpga_mgr_write_complete()
95 * fpga_image_info_alloc - Allocate an FPGA image info struct
119 * fpga_image_info_free - Free an FPGA image info struct
120 * @info: FPGA image info struct to free
140 * device-specific things to get the FPGA into the state where it is ready to
141 * receive an FPGA image. The low level driver only gets to see the first
158 dev_err(&mgr->dev, "Error preparing FPGA for writing\n"); in fpga_mgr_write_init_buf()
207 * fpga_mgr_buf_load_sg - load fpga from image in buffer from a scatter list
208 * @mgr: fpga manager
209 * @info: fpga image specific information
212 * Step the low level fpga manager through the device-specific steps of getting
213 * an FPGA ready to be configured, writing the image to it, then doing whatever
218 * This is the preferred entry point for FPGA programming, it does not require
233 /* Write the FPGA image to the FPGA. */ in fpga_mgr_buf_load_sg()
250 dev_err(&mgr->dev, "Error while writing image data to FPGA\n"); in fpga_mgr_buf_load_sg()
269 * Write the FPGA image to the FPGA. in fpga_mgr_buf_load_mapped()
274 dev_err(&mgr->dev, "Error while writing image data to FPGA\n"); in fpga_mgr_buf_load_mapped()
283 * fpga_mgr_buf_load - load fpga from image in buffer
284 * @mgr: fpga manager
285 * @info: fpga image info
286 * @buf: buffer contain fpga image
289 * Step the low level fpga manager through the device-specific steps of getting
290 * an FPGA ready to be configured, writing the image to it, then doing whatever
355 * fpga_mgr_firmware_load - request firmware and load to fpga
356 * @mgr: fpga manager
357 * @info: fpga image specific information
360 * Request an FPGA image using the firmware class, then write out to the FPGA.
395 * fpga_mgr_load - load FPGA from scatter/gather table, buffer, or firmware
396 * @mgr: fpga manager
397 * @info: fpga image information.
399 * Load the FPGA from an image which is indicated in @info. If successful, the
400 * FPGA ends up in operating mode.
422 /* requesting FPGA image from firmware */
426 /* Preparing FPGA to receive image */
430 /* Writing image to FPGA */
438 /* FPGA reports to be in normal operating mode */
515 * fpga_mgr_get - Given a device, get a reference to an fpga mgr.
516 * @dev: parent device that fpga mgr was registered with
518 * Return: fpga manager struct or IS_ERR() condition containing error code.
532 * of_fpga_mgr_get - Given a device node, get a reference to an fpga mgr.
536 * Return: fpga manager struct or IS_ERR() condition containing error code.
551 * fpga_mgr_put - release a reference to an fpga manager
552 * @mgr: fpga manager structure
562 * fpga_mgr_lock - Lock FPGA manager for exclusive use
563 * @mgr: fpga manager
565 * Given a pointer to FPGA Manager (from fpga_mgr_get() or
568 * program the FPGA. Likewise, the user should call fpga_mgr_unlock
569 * when done programming the FPGA.
576 dev_err(&mgr->dev, "FPGA manager is in use.\n"); in fpga_mgr_lock()
585 * fpga_mgr_unlock - Unlock FPGA manager after done programming
586 * @mgr: fpga manager
595 * fpga_mgr_create - create and initialize an FPGA manager struct
596 * @parent: fpga manager device from pdev
597 * @name: fpga manager name
598 * @mops: pointer to structure of fpga manager ops
599 * @priv: fpga manager private data
644 ret = dev_set_name(&mgr->dev, "fpga%d", id); in fpga_mgr_create()
660 * fpga_mgr_free - free an FPGA manager created with fpga_mgr_create()
661 * @mgr: fpga manager struct
678 * devm_fpga_mgr_create - create and initialize a managed FPGA manager struct
679 * @parent: fpga manager device from pdev
680 * @name: fpga manager name
681 * @mops: pointer to structure of fpga manager ops
682 * @priv: fpga manager private data
684 * This function is intended for use in an FPGA manager driver's probe function.
717 * fpga_mgr_register - register an FPGA manager
718 * @mgr: fpga manager struct
728 * from device. FPGA may be in reset mode or may have been programmed in fpga_mgr_register()
749 * fpga_mgr_unregister - unregister an FPGA manager
750 * @mgr: fpga manager struct
752 * This function is intended for use in an FPGA manager driver's remove function.
759 * If the low level driver provides a method for putting fpga into in fpga_mgr_unregister()
785 * @dev: managing device for this FPGA manager
786 * @mgr: fpga manager struct
827 pr_info("FPGA manager framework\n"); in fpga_mgr_class_init()
846 MODULE_DESCRIPTION("FPGA manager framework");