intro.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Introduction
  2. ============
  3. The FPGA subsystem supports reprogramming FPGAs dynamically under
  4. Linux. Some of the core intentions of the FPGA subsystems are:
  5. * The FPGA subsystem is vendor agnostic.
  6. * The FPGA subsystem separates upper layers (userspace interfaces and
  7. enumeration) from lower layers that know how to program a specific
  8. FPGA.
  9. * Code should not be shared between upper and lower layers. This
  10. should go without saying. If that seems necessary, there's probably
  11. framework functionality that can be added that will benefit
  12. other users. Write the linux-fpga mailing list and maintainers and
  13. seek out a solution that expands the framework for broad reuse.
  14. * Generally, when adding code, think of the future. Plan for reuse.
  15. The framework in the kernel is divided into:
  16. FPGA Manager
  17. ------------
  18. If you are adding a new FPGA or a new method of programming an FPGA,
  19. this is the subsystem for you. Low level FPGA manager drivers contain
  20. the knowledge of how to program a specific device. This subsystem
  21. includes the framework in fpga-mgr.c and the low level drivers that
  22. are registered with it.
  23. FPGA Bridge
  24. -----------
  25. FPGA Bridges prevent spurious signals from going out of an FPGA or a
  26. region of an FPGA during programming. They are disabled before
  27. programming begins and re-enabled afterwards. An FPGA bridge may be
  28. actual hard hardware that gates a bus to a CPU or a soft ("freeze")
  29. bridge in FPGA fabric that surrounds a partial reconfiguration region
  30. of an FPGA. This subsystem includes fpga-bridge.c and the low level
  31. drivers that are registered with it.
  32. FPGA Region
  33. -----------
  34. If you are adding a new interface to the FPGA framework, add it on top
  35. of an FPGA region.
  36. The FPGA Region framework (fpga-region.c) associates managers and
  37. bridges as reconfigurable regions. A region may refer to the whole
  38. FPGA in full reconfiguration or to a partial reconfiguration region.
  39. The Device Tree FPGA Region support (of-fpga-region.c) handles
  40. reprogramming FPGAs when device tree overlays are applied.