Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1// SPDX-License-Identifier: MIT
2/*
3 * Copyright (C) 2017 Oracle Corporation
4 * Copyright 2017 Canonical
5 * Authors: Andreas Pokorny
6 */
7
8#include "vbox_drv.h"
9
10/*
11 * Based on qxl_prime.c:
12 * Empty Implementations as there should not be any other driver for a virtual
13 * device that might share buffers with vboxvideo
14 */
15
16int vbox_gem_prime_pin(struct drm_gem_object *obj)
17{
18 WARN_ONCE(1, "not implemented");
19 return -ENODEV;
20}
21
22void vbox_gem_prime_unpin(struct drm_gem_object *obj)
23{
24 WARN_ONCE(1, "not implemented");
25}
26
27struct sg_table *vbox_gem_prime_get_sg_table(struct drm_gem_object *obj)
28{
29 WARN_ONCE(1, "not implemented");
30 return ERR_PTR(-ENODEV);
31}
32
33struct drm_gem_object *vbox_gem_prime_import_sg_table(
34 struct drm_device *dev, struct dma_buf_attachment *attach,
35 struct sg_table *table)
36{
37 WARN_ONCE(1, "not implemented");
38 return ERR_PTR(-ENODEV);
39}
40
41void *vbox_gem_prime_vmap(struct drm_gem_object *obj)
42{
43 WARN_ONCE(1, "not implemented");
44 return ERR_PTR(-ENODEV);
45}
46
47void vbox_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr)
48{
49 WARN_ONCE(1, "not implemented");
50}
51
52int vbox_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *area)
53{
54 WARN_ONCE(1, "not implemented");
55 return -ENODEV;
56}