diff options
author | Jason Gunthorpe <[email protected]> | 2017-02-01 12:48:44 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-02-10 15:20:44 +0100 |
commit | baa6d396635129d8a67793e884f3b2182c7354b3 (patch) | |
tree | e836ac87b5a67011ef9f1c14d0443b4de8f9c309 /drivers/fpga/zynq-fpga.c | |
parent | b496df86ac1bbe393a55ddbfed35d46e74ef9767 (diff) |
fpga: Add scatterlist based programming
Requiring contiguous kernel memory is not a good idea, this is a limited
resource and allocation can fail under normal work loads.
This introduces a .write_sg op that supporting drivers can provide
to DMA directly from dis-contiguous memory and a new entry point
fpga_mgr_buf_load_sg that users can call to directly provide page
lists.
The full matrix of compatibility is provided, either the linear or sg
interface can be used by the user with a driver supporting either
interface.
A notable change for drivers is that the .write op can now be called
multiple times.
Signed-off-by: Jason Gunthorpe <[email protected]>
Acked-by: Alan Tull <[email protected]>
Acked-by: Moritz Fischer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions