···11+/*22+ * Copyright 2014 Canonical33+ *44+ * Permission is hereby granted, free of charge, to any person obtaining a55+ * copy of this software and associated documentation files (the "Software"),66+ * to deal in the Software without restriction, including without limitation77+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,88+ * and/or sell copies of the Software, and to permit persons to whom the99+ * Software is furnished to do so, subject to the following conditions:1010+ *1111+ * The above copyright notice and this permission notice shall be included in1212+ * all copies or substantial portions of the Software.1313+ *1414+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR1515+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,1616+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL1717+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR1818+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,1919+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR2020+ * OTHER DEALINGS IN THE SOFTWARE.2121+ *2222+ * Authors: Andreas Pokorny2323+ */2424+2525+#include "virtgpu_drv.h"2626+2727+/* Empty Implementations as there should not be any other driver for a virtual2828+ * device that might share buffers with virtgpu */2929+3030+int virtgpu_gem_prime_pin(struct drm_gem_object *obj)3131+{3232+ WARN_ONCE(1, "not implemented");3333+ return -ENODEV;3434+}3535+3636+void virtgpu_gem_prime_unpin(struct drm_gem_object *obj)3737+{3838+ WARN_ONCE(1, "not implemented");3939+}4040+4141+4242+struct sg_table *virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj)4343+{4444+ WARN_ONCE(1, "not implemented");4545+ return ERR_PTR(-ENODEV);4646+}4747+4848+struct drm_gem_object *virtgpu_gem_prime_import_sg_table(4949+ struct drm_device *dev, struct dma_buf_attachment *attach,5050+ struct sg_table *table)5151+{5252+ WARN_ONCE(1, "not implemented");5353+ return ERR_PTR(-ENODEV);5454+}5555+5656+void *virtgpu_gem_prime_vmap(struct drm_gem_object *obj)5757+{5858+ WARN_ONCE(1, "not implemented");5959+ return ERR_PTR(-ENODEV);6060+}6161+6262+void virtgpu_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr)6363+{6464+ WARN_ONCE(1, "not implemented");6565+}6666+6767+int virtgpu_gem_prime_mmap(struct drm_gem_object *obj,6868+ struct vm_area_struct *area)6969+{7070+ return -ENODEV;7171+}