VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/drm/vbox_prime.c@ 66544

Last change on this file since 66544 was 66544, checked in by vboxsync, 8 years ago

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
Change header of files which are expected to end up in the Linux kernel to the MIT licence to simplify life for people wanting to port vboxvideo to other kernels and to simplify synchronising changes back to VirtualBox. Update author information in files which have it, but do not add it to files which do not.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1/*
2 * Copyright (C) 2017 Oracle Corporation
3 * Copyright 2017 Canonical
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 * OTHER DEALINGS IN THE SOFTWARE.
22 *
23 * Authors: Andreas Pokorny
24 */
25
26#include "vbox_drv.h"
27
28/* Based on qxl_prime.c:
29 * Empty Implementations as there should not be any other driver for a virtual
30 * device that might share buffers with vboxvideo */
31
32int vbox_gem_prime_pin(struct drm_gem_object *obj)
33{
34 WARN_ONCE(1, "not implemented");
35 return -ENOSYS;
36}
37
38void vbox_gem_prime_unpin(struct drm_gem_object *obj)
39{
40 WARN_ONCE(1, "not implemented");
41}
42
43
44struct sg_table *vbox_gem_prime_get_sg_table(struct drm_gem_object *obj)
45{
46 WARN_ONCE(1, "not implemented");
47 return ERR_PTR(-ENOSYS);
48}
49
50struct drm_gem_object *vbox_gem_prime_import_sg_table(
51 struct drm_device *dev,
52#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)
53 size_t size,
54#else
55 struct dma_buf_attachment *attach,
56#endif
57 struct sg_table *table)
58{
59 WARN_ONCE(1, "not implemented");
60 return ERR_PTR(-ENOSYS);
61}
62
63void *vbox_gem_prime_vmap(struct drm_gem_object *obj)
64{
65 WARN_ONCE(1, "not implemented");
66 return ERR_PTR(-ENOSYS);
67}
68
69void vbox_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr)
70{
71 WARN_ONCE(1, "not implemented");
72}
73
74int vbox_gem_prime_mmap(struct drm_gem_object *obj,
75 struct vm_area_struct *area)
76{
77 WARN_ONCE(1, "not implemented");
78 return -ENOSYS;
79}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette