1565c8854SFrançois Tigeot /* 2565c8854SFrançois Tigeot * Copyright (c) 2019 François Tigeot <ftigeot@wolfpond.org> 3565c8854SFrançois Tigeot * All rights reserved. 4565c8854SFrançois Tigeot * 5565c8854SFrançois Tigeot * Redistribution and use in source and binary forms, with or without 6565c8854SFrançois Tigeot * modification, are permitted provided that the following conditions 7565c8854SFrançois Tigeot * are met: 8565c8854SFrançois Tigeot * 1. Redistributions of source code must retain the above copyright 9565c8854SFrançois Tigeot * notice unmodified, this list of conditions, and the following 10565c8854SFrançois Tigeot * disclaimer. 11565c8854SFrançois Tigeot * 2. Redistributions in binary form must reproduce the above copyright 12565c8854SFrançois Tigeot * notice, this list of conditions and the following disclaimer in the 13565c8854SFrançois Tigeot * documentation and/or other materials provided with the distribution. 14565c8854SFrançois Tigeot * 15565c8854SFrançois Tigeot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16565c8854SFrançois Tigeot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17565c8854SFrançois Tigeot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18565c8854SFrançois Tigeot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19565c8854SFrançois Tigeot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20565c8854SFrançois Tigeot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21565c8854SFrançois Tigeot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22565c8854SFrançois Tigeot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23565c8854SFrançois Tigeot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24565c8854SFrançois Tigeot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25565c8854SFrançois Tigeot */ 26565c8854SFrançois Tigeot 27565c8854SFrançois Tigeot #include <linux/fs.h> 28565c8854SFrançois Tigeot #include <linux/slab.h> 29565c8854SFrançois Tigeot #include <linux/dma-buf.h> 30*6559babbSFrançois Tigeot #include <linux/dma-fence.h> 31565c8854SFrançois Tigeot #include <linux/export.h> 32565c8854SFrançois Tigeot #include <linux/module.h> 33565c8854SFrançois Tigeot #include <linux/seq_file.h> 34565c8854SFrançois Tigeot #include <linux/poll.h> 35565c8854SFrançois Tigeot #include <linux/reservation.h> 36565c8854SFrançois Tigeot #include <linux/mm.h> 37565c8854SFrançois Tigeot 38565c8854SFrançois Tigeot struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) 39565c8854SFrançois Tigeot { 40565c8854SFrançois Tigeot return ERR_PTR(-EINVAL); 41565c8854SFrançois Tigeot } 42565c8854SFrançois Tigeot 43565c8854SFrançois Tigeot void dma_buf_unmap_attachment(struct dma_buf_attachment *attach, 44565c8854SFrançois Tigeot struct sg_table *sg_table, 45565c8854SFrançois Tigeot enum dma_data_direction direction) 46565c8854SFrançois Tigeot { 47565c8854SFrançois Tigeot } 48565c8854SFrançois Tigeot 49