xref: /linux/include/uapi/xen/gntdev.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR MIT) */
2564eb714SDavid Vrabel /******************************************************************************
3564eb714SDavid Vrabel  * gntdev.h
4564eb714SDavid Vrabel  *
5564eb714SDavid Vrabel  * Interface to /dev/xen/gntdev.
6564eb714SDavid Vrabel  *
7564eb714SDavid Vrabel  * Copyright (c) 2007, D G Murray
8932d6562SOleksandr Andrushchenko  * Copyright (c) 2018, Oleksandr Andrushchenko, EPAM Systems Inc.
9564eb714SDavid Vrabel  *
10564eb714SDavid Vrabel  * This program is free software; you can redistribute it and/or
11564eb714SDavid Vrabel  * modify it under the terms of the GNU General Public License version 2
12564eb714SDavid Vrabel  * as published by the Free Software Foundation; or, when distributed
13564eb714SDavid Vrabel  * separately from the Linux kernel or incorporated into other
14564eb714SDavid Vrabel  * software packages, subject to the following license:
15564eb714SDavid Vrabel  *
16564eb714SDavid Vrabel  * Permission is hereby granted, free of charge, to any person obtaining a copy
17564eb714SDavid Vrabel  * of this source file (the "Software"), to deal in the Software without
18564eb714SDavid Vrabel  * restriction, including without limitation the rights to use, copy, modify,
19564eb714SDavid Vrabel  * merge, publish, distribute, sublicense, and/or sell copies of the Software,
20564eb714SDavid Vrabel  * and to permit persons to whom the Software is furnished to do so, subject to
21564eb714SDavid Vrabel  * the following conditions:
22564eb714SDavid Vrabel  *
23564eb714SDavid Vrabel  * The above copyright notice and this permission notice shall be included in
24564eb714SDavid Vrabel  * all copies or substantial portions of the Software.
25564eb714SDavid Vrabel  *
26564eb714SDavid Vrabel  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27564eb714SDavid Vrabel  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28564eb714SDavid Vrabel  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29564eb714SDavid Vrabel  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30564eb714SDavid Vrabel  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
31564eb714SDavid Vrabel  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
32564eb714SDavid Vrabel  * IN THE SOFTWARE.
33564eb714SDavid Vrabel  */
34564eb714SDavid Vrabel 
35564eb714SDavid Vrabel #ifndef __LINUX_PUBLIC_GNTDEV_H__
36564eb714SDavid Vrabel #define __LINUX_PUBLIC_GNTDEV_H__
37564eb714SDavid Vrabel 
38a36012beSMikko Rapeli #include <linux/types.h>
39a36012beSMikko Rapeli 
40564eb714SDavid Vrabel struct ioctl_gntdev_grant_ref {
41564eb714SDavid Vrabel 	/* The domain ID of the grant to be mapped. */
42a36012beSMikko Rapeli 	__u32 domid;
43564eb714SDavid Vrabel 	/* The grant reference of the grant to be mapped. */
44a36012beSMikko Rapeli 	__u32 ref;
45564eb714SDavid Vrabel };
46564eb714SDavid Vrabel 
47564eb714SDavid Vrabel /*
48564eb714SDavid Vrabel  * Inserts the grant references into the mapping table of an instance
49564eb714SDavid Vrabel  * of gntdev. N.B. This does not perform the mapping, which is deferred
50*164666faSDemi Marie Obenour  * until mmap() is called with @index as the offset. @index should be
51*164666faSDemi Marie Obenour  * considered opaque to userspace, with one exception: if no grant
52*164666faSDemi Marie Obenour  * references have ever been inserted into the mapping table of this
53*164666faSDemi Marie Obenour  * instance, @index will be set to 0. This is necessary to use gntdev
54*164666faSDemi Marie Obenour  * with userspace APIs that expect a file descriptor that can be
55*164666faSDemi Marie Obenour  * mmap()'d at offset 0, such as Wayland. If @count is set to 0, this
56*164666faSDemi Marie Obenour  * ioctl will fail.
57564eb714SDavid Vrabel  */
58564eb714SDavid Vrabel #define IOCTL_GNTDEV_MAP_GRANT_REF \
59564eb714SDavid Vrabel _IOC(_IOC_NONE, 'G', 0, sizeof(struct ioctl_gntdev_map_grant_ref))
60564eb714SDavid Vrabel struct ioctl_gntdev_map_grant_ref {
61564eb714SDavid Vrabel 	/* IN parameters */
62564eb714SDavid Vrabel 	/* The number of grants to be mapped. */
63a36012beSMikko Rapeli 	__u32 count;
64a36012beSMikko Rapeli 	__u32 pad;
65564eb714SDavid Vrabel 	/* OUT parameters */
66564eb714SDavid Vrabel 	/* The offset to be used on a subsequent call to mmap(). */
67a36012beSMikko Rapeli 	__u64 index;
68564eb714SDavid Vrabel 	/* Variable IN parameter. */
69564eb714SDavid Vrabel 	/* Array of grant references, of size @count. */
70564eb714SDavid Vrabel 	struct ioctl_gntdev_grant_ref refs[1];
71564eb714SDavid Vrabel };
72564eb714SDavid Vrabel 
73564eb714SDavid Vrabel /*
74564eb714SDavid Vrabel  * Removes the grant references from the mapping table of an instance of
75e5a52fd2SRandy Dunlap  * gntdev. N.B. munmap() must be called on the relevant virtual address(es)
76564eb714SDavid Vrabel  * before this ioctl is called, or an error will result.
77564eb714SDavid Vrabel  */
78564eb714SDavid Vrabel #define IOCTL_GNTDEV_UNMAP_GRANT_REF \
79564eb714SDavid Vrabel _IOC(_IOC_NONE, 'G', 1, sizeof(struct ioctl_gntdev_unmap_grant_ref))
80564eb714SDavid Vrabel struct ioctl_gntdev_unmap_grant_ref {
81564eb714SDavid Vrabel 	/* IN parameters */
82564eb714SDavid Vrabel 	/* The offset was returned by the corresponding map operation. */
83a36012beSMikko Rapeli 	__u64 index;
84564eb714SDavid Vrabel 	/* The number of pages to be unmapped. */
85a36012beSMikko Rapeli 	__u32 count;
86a36012beSMikko Rapeli 	__u32 pad;
87564eb714SDavid Vrabel };
88564eb714SDavid Vrabel 
89564eb714SDavid Vrabel /*
90564eb714SDavid Vrabel  * Returns the offset in the driver's address space that corresponds
91564eb714SDavid Vrabel  * to @vaddr. This can be used to perform a munmap(), followed by an
92564eb714SDavid Vrabel  * UNMAP_GRANT_REF ioctl, where no state about the offset is retained by
93564eb714SDavid Vrabel  * the caller. The number of pages that were allocated at the same time as
94564eb714SDavid Vrabel  * @vaddr is returned in @count.
95564eb714SDavid Vrabel  *
96564eb714SDavid Vrabel  * N.B. Where more than one page has been mapped into a contiguous range, the
97564eb714SDavid Vrabel  *      supplied @vaddr must correspond to the start of the range; otherwise
98564eb714SDavid Vrabel  *      an error will result. It is only possible to munmap() the entire
99564eb714SDavid Vrabel  *      contiguously-allocated range at once, and not any subrange thereof.
100564eb714SDavid Vrabel  */
101564eb714SDavid Vrabel #define IOCTL_GNTDEV_GET_OFFSET_FOR_VADDR \
102564eb714SDavid Vrabel _IOC(_IOC_NONE, 'G', 2, sizeof(struct ioctl_gntdev_get_offset_for_vaddr))
103564eb714SDavid Vrabel struct ioctl_gntdev_get_offset_for_vaddr {
104564eb714SDavid Vrabel 	/* IN parameters */
105564eb714SDavid Vrabel 	/* The virtual address of the first mapped page in a range. */
106a36012beSMikko Rapeli 	__u64 vaddr;
107564eb714SDavid Vrabel 	/* OUT parameters */
108564eb714SDavid Vrabel 	/* The offset that was used in the initial mmap() operation. */
109a36012beSMikko Rapeli 	__u64 offset;
110564eb714SDavid Vrabel 	/* The number of pages mapped in the VM area that begins at @vaddr. */
111a36012beSMikko Rapeli 	__u32 count;
112a36012beSMikko Rapeli 	__u32 pad;
113564eb714SDavid Vrabel };
114564eb714SDavid Vrabel 
115564eb714SDavid Vrabel /*
116564eb714SDavid Vrabel  * Sets the maximum number of grants that may mapped at once by this gntdev
117564eb714SDavid Vrabel  * instance.
118564eb714SDavid Vrabel  *
119564eb714SDavid Vrabel  * N.B. This must be called before any other ioctl is performed on the device.
120564eb714SDavid Vrabel  */
121564eb714SDavid Vrabel #define IOCTL_GNTDEV_SET_MAX_GRANTS \
122564eb714SDavid Vrabel _IOC(_IOC_NONE, 'G', 3, sizeof(struct ioctl_gntdev_set_max_grants))
123564eb714SDavid Vrabel struct ioctl_gntdev_set_max_grants {
124564eb714SDavid Vrabel 	/* IN parameter */
125564eb714SDavid Vrabel 	/* The maximum number of grants that may be mapped at once. */
126a36012beSMikko Rapeli 	__u32 count;
127564eb714SDavid Vrabel };
128564eb714SDavid Vrabel 
129564eb714SDavid Vrabel /*
130564eb714SDavid Vrabel  * Sets up an unmap notification within the page, so that the other side can do
131564eb714SDavid Vrabel  * cleanup if this side crashes. Required to implement cross-domain robust
132564eb714SDavid Vrabel  * mutexes or close notification on communication channels.
133564eb714SDavid Vrabel  *
134564eb714SDavid Vrabel  * Each mapped page only supports one notification; multiple calls referring to
135564eb714SDavid Vrabel  * the same page overwrite the previous notification. You must clear the
136564eb714SDavid Vrabel  * notification prior to the IOCTL_GNTALLOC_DEALLOC_GREF if you do not want it
137564eb714SDavid Vrabel  * to occur.
138564eb714SDavid Vrabel  */
139564eb714SDavid Vrabel #define IOCTL_GNTDEV_SET_UNMAP_NOTIFY \
140564eb714SDavid Vrabel _IOC(_IOC_NONE, 'G', 7, sizeof(struct ioctl_gntdev_unmap_notify))
141564eb714SDavid Vrabel struct ioctl_gntdev_unmap_notify {
142564eb714SDavid Vrabel 	/* IN parameters */
143564eb714SDavid Vrabel 	/* Offset in the file descriptor for a byte within the page (same as
144564eb714SDavid Vrabel 	 * used in mmap). If using UNMAP_NOTIFY_CLEAR_BYTE, this is the byte to
145564eb714SDavid Vrabel 	 * be cleared. Otherwise, it can be any byte in the page whose
146564eb714SDavid Vrabel 	 * notification we are adjusting.
147564eb714SDavid Vrabel 	 */
148a36012beSMikko Rapeli 	__u64 index;
149564eb714SDavid Vrabel 	/* Action(s) to take on unmap */
150a36012beSMikko Rapeli 	__u32 action;
151564eb714SDavid Vrabel 	/* Event channel to notify */
152a36012beSMikko Rapeli 	__u32 event_channel_port;
153564eb714SDavid Vrabel };
154564eb714SDavid Vrabel 
155a4cdb556SDavid Vrabel struct gntdev_grant_copy_segment {
156a4cdb556SDavid Vrabel 	union {
157a4cdb556SDavid Vrabel 		void __user *virt;
158a4cdb556SDavid Vrabel 		struct {
159a4cdb556SDavid Vrabel 			grant_ref_t ref;
160a4cdb556SDavid Vrabel 			__u16 offset;
161a4cdb556SDavid Vrabel 			domid_t domid;
162a4cdb556SDavid Vrabel 		} foreign;
163a4cdb556SDavid Vrabel 	} source, dest;
164a4cdb556SDavid Vrabel 	__u16 len;
165a4cdb556SDavid Vrabel 
166a4cdb556SDavid Vrabel 	__u16 flags;  /* GNTCOPY_* */
167a4cdb556SDavid Vrabel 	__s16 status; /* GNTST_* */
168a4cdb556SDavid Vrabel };
169a4cdb556SDavid Vrabel 
170a4cdb556SDavid Vrabel /*
171a4cdb556SDavid Vrabel  * Copy between grant references and local buffers.
172a4cdb556SDavid Vrabel  *
173a4cdb556SDavid Vrabel  * The copy is split into @count @segments, each of which can copy
174a4cdb556SDavid Vrabel  * to/from one grant reference.
175a4cdb556SDavid Vrabel  *
176a4cdb556SDavid Vrabel  * Each segment is similar to struct gnttab_copy in the hypervisor ABI
177a4cdb556SDavid Vrabel  * except the local buffer is specified using a virtual address
178a4cdb556SDavid Vrabel  * (instead of a GFN and offset).
179a4cdb556SDavid Vrabel  *
180a4cdb556SDavid Vrabel  * The local buffer may cross a Xen page boundary -- the driver will
181a4cdb556SDavid Vrabel  * split segments into multiple ops if required.
182a4cdb556SDavid Vrabel  *
183a4cdb556SDavid Vrabel  * Returns 0 if all segments have been processed and @status in each
184a4cdb556SDavid Vrabel  * segment is valid.  Note that one or more segments may have failed
185a4cdb556SDavid Vrabel  * (status != GNTST_okay).
186a4cdb556SDavid Vrabel  *
187a4cdb556SDavid Vrabel  * If the driver had to split a segment into two or more ops, @status
188a4cdb556SDavid Vrabel  * includes the status of the first failed op for that segment (or
189a4cdb556SDavid Vrabel  * GNTST_okay if all ops were successful).
190a4cdb556SDavid Vrabel  *
191a4cdb556SDavid Vrabel  * If -1 is returned, the status of all segments is undefined.
192a4cdb556SDavid Vrabel  *
193a4cdb556SDavid Vrabel  * EINVAL: A segment has local buffers for both source and
194a4cdb556SDavid Vrabel  *         destination.
195a4cdb556SDavid Vrabel  * EINVAL: A segment crosses the boundary of a foreign page.
196a4cdb556SDavid Vrabel  * EFAULT: A segment's local buffer is not accessible.
197a4cdb556SDavid Vrabel  */
198a4cdb556SDavid Vrabel #define IOCTL_GNTDEV_GRANT_COPY \
199a4cdb556SDavid Vrabel 	_IOC(_IOC_NONE, 'G', 8, sizeof(struct ioctl_gntdev_grant_copy))
200a4cdb556SDavid Vrabel struct ioctl_gntdev_grant_copy {
201a4cdb556SDavid Vrabel 	unsigned int count;
202a4cdb556SDavid Vrabel 	struct gntdev_grant_copy_segment __user *segments;
203a4cdb556SDavid Vrabel };
204a4cdb556SDavid Vrabel 
205564eb714SDavid Vrabel /* Clear (set to zero) the byte specified by index */
206564eb714SDavid Vrabel #define UNMAP_NOTIFY_CLEAR_BYTE 0x1
207564eb714SDavid Vrabel /* Send an interrupt on the indicated event channel */
208564eb714SDavid Vrabel #define UNMAP_NOTIFY_SEND_EVENT 0x2
209564eb714SDavid Vrabel 
210975ef7ffSOleksandr Andrushchenko /*
211975ef7ffSOleksandr Andrushchenko  * Flags to be used while requesting memory mapping's backing storage
212975ef7ffSOleksandr Andrushchenko  * to be allocated with DMA API.
213975ef7ffSOleksandr Andrushchenko  */
214975ef7ffSOleksandr Andrushchenko 
215975ef7ffSOleksandr Andrushchenko /*
216975ef7ffSOleksandr Andrushchenko  * The buffer is backed with memory allocated with dma_alloc_wc.
217975ef7ffSOleksandr Andrushchenko  */
218975ef7ffSOleksandr Andrushchenko #define GNTDEV_DMA_FLAG_WC		(1 << 0)
219975ef7ffSOleksandr Andrushchenko 
220975ef7ffSOleksandr Andrushchenko /*
221975ef7ffSOleksandr Andrushchenko  * The buffer is backed with memory allocated with dma_alloc_coherent.
222975ef7ffSOleksandr Andrushchenko  */
223975ef7ffSOleksandr Andrushchenko #define GNTDEV_DMA_FLAG_COHERENT	(1 << 1)
224975ef7ffSOleksandr Andrushchenko 
225932d6562SOleksandr Andrushchenko /*
226932d6562SOleksandr Andrushchenko  * Create a dma-buf [1] from grant references @refs of count @count provided
227932d6562SOleksandr Andrushchenko  * by the foreign domain @domid with flags @flags.
228932d6562SOleksandr Andrushchenko  *
229932d6562SOleksandr Andrushchenko  * By default dma-buf is backed by system memory pages, but by providing
230932d6562SOleksandr Andrushchenko  * one of the GNTDEV_DMA_FLAG_XXX flags it can also be created as
231932d6562SOleksandr Andrushchenko  * a DMA write-combine or coherent buffer, e.g. allocated with dma_alloc_wc/
232932d6562SOleksandr Andrushchenko  * dma_alloc_coherent.
233932d6562SOleksandr Andrushchenko  *
234932d6562SOleksandr Andrushchenko  * Returns 0 if dma-buf was successfully created and the corresponding
235932d6562SOleksandr Andrushchenko  * dma-buf's file descriptor is returned in @fd.
236932d6562SOleksandr Andrushchenko  *
237932d6562SOleksandr Andrushchenko  * [1] Documentation/driver-api/dma-buf.rst
238932d6562SOleksandr Andrushchenko  */
239932d6562SOleksandr Andrushchenko 
240932d6562SOleksandr Andrushchenko #define IOCTL_GNTDEV_DMABUF_EXP_FROM_REFS \
241932d6562SOleksandr Andrushchenko 	_IOC(_IOC_NONE, 'G', 9, \
242932d6562SOleksandr Andrushchenko 	     sizeof(struct ioctl_gntdev_dmabuf_exp_from_refs))
243932d6562SOleksandr Andrushchenko struct ioctl_gntdev_dmabuf_exp_from_refs {
244932d6562SOleksandr Andrushchenko 	/* IN parameters. */
245932d6562SOleksandr Andrushchenko 	/* Specific options for this dma-buf: see GNTDEV_DMA_FLAG_XXX. */
246932d6562SOleksandr Andrushchenko 	__u32 flags;
247932d6562SOleksandr Andrushchenko 	/* Number of grant references in @refs array. */
248932d6562SOleksandr Andrushchenko 	__u32 count;
249932d6562SOleksandr Andrushchenko 	/* OUT parameters. */
250932d6562SOleksandr Andrushchenko 	/* File descriptor of the dma-buf. */
251932d6562SOleksandr Andrushchenko 	__u32 fd;
252932d6562SOleksandr Andrushchenko 	/* The domain ID of the grant references to be mapped. */
253932d6562SOleksandr Andrushchenko 	__u32 domid;
254932d6562SOleksandr Andrushchenko 	/* Variable IN parameter. */
255932d6562SOleksandr Andrushchenko 	/* Array of grant references of size @count. */
256932d6562SOleksandr Andrushchenko 	__u32 refs[1];
257932d6562SOleksandr Andrushchenko };
258932d6562SOleksandr Andrushchenko 
259932d6562SOleksandr Andrushchenko /*
260932d6562SOleksandr Andrushchenko  * This will block until the dma-buf with the file descriptor @fd is
261932d6562SOleksandr Andrushchenko  * released. This is only valid for buffers created with
262932d6562SOleksandr Andrushchenko  * IOCTL_GNTDEV_DMABUF_EXP_FROM_REFS.
263932d6562SOleksandr Andrushchenko  *
264932d6562SOleksandr Andrushchenko  * If within @wait_to_ms milliseconds the buffer is not released
265932d6562SOleksandr Andrushchenko  * then -ETIMEDOUT error is returned.
266932d6562SOleksandr Andrushchenko  * If the buffer with the file descriptor @fd does not exist or has already
267932d6562SOleksandr Andrushchenko  * been released, then -ENOENT is returned. For valid file descriptors
268932d6562SOleksandr Andrushchenko  * this must not be treated as error.
269932d6562SOleksandr Andrushchenko  */
270932d6562SOleksandr Andrushchenko #define IOCTL_GNTDEV_DMABUF_EXP_WAIT_RELEASED \
271932d6562SOleksandr Andrushchenko 	_IOC(_IOC_NONE, 'G', 10, \
272932d6562SOleksandr Andrushchenko 	     sizeof(struct ioctl_gntdev_dmabuf_exp_wait_released))
273932d6562SOleksandr Andrushchenko struct ioctl_gntdev_dmabuf_exp_wait_released {
274932d6562SOleksandr Andrushchenko 	/* IN parameters */
275932d6562SOleksandr Andrushchenko 	__u32 fd;
276932d6562SOleksandr Andrushchenko 	__u32 wait_to_ms;
277932d6562SOleksandr Andrushchenko };
278932d6562SOleksandr Andrushchenko 
279932d6562SOleksandr Andrushchenko /*
280932d6562SOleksandr Andrushchenko  * Import a dma-buf with file descriptor @fd and export granted references
281932d6562SOleksandr Andrushchenko  * to the pages of that dma-buf into array @refs of size @count.
282932d6562SOleksandr Andrushchenko  */
283932d6562SOleksandr Andrushchenko #define IOCTL_GNTDEV_DMABUF_IMP_TO_REFS \
284932d6562SOleksandr Andrushchenko 	_IOC(_IOC_NONE, 'G', 11, \
285932d6562SOleksandr Andrushchenko 	     sizeof(struct ioctl_gntdev_dmabuf_imp_to_refs))
286932d6562SOleksandr Andrushchenko struct ioctl_gntdev_dmabuf_imp_to_refs {
287932d6562SOleksandr Andrushchenko 	/* IN parameters. */
288932d6562SOleksandr Andrushchenko 	/* File descriptor of the dma-buf. */
289932d6562SOleksandr Andrushchenko 	__u32 fd;
290932d6562SOleksandr Andrushchenko 	/* Number of grant references in @refs array. */
291932d6562SOleksandr Andrushchenko 	__u32 count;
292932d6562SOleksandr Andrushchenko 	/* The domain ID for which references to be granted. */
293932d6562SOleksandr Andrushchenko 	__u32 domid;
294932d6562SOleksandr Andrushchenko 	/* Reserved - must be zero. */
295932d6562SOleksandr Andrushchenko 	__u32 reserved;
296932d6562SOleksandr Andrushchenko 	/* OUT parameters. */
297932d6562SOleksandr Andrushchenko 	/* Array of grant references of size @count. */
298932d6562SOleksandr Andrushchenko 	__u32 refs[1];
299932d6562SOleksandr Andrushchenko };
300932d6562SOleksandr Andrushchenko 
301932d6562SOleksandr Andrushchenko /*
302932d6562SOleksandr Andrushchenko  * This will close all references to the imported buffer with file descriptor
303932d6562SOleksandr Andrushchenko  * @fd, so it can be released by the owner. This is only valid for buffers
304932d6562SOleksandr Andrushchenko  * created with IOCTL_GNTDEV_DMABUF_IMP_TO_REFS.
305932d6562SOleksandr Andrushchenko  */
306932d6562SOleksandr Andrushchenko #define IOCTL_GNTDEV_DMABUF_IMP_RELEASE \
307932d6562SOleksandr Andrushchenko 	_IOC(_IOC_NONE, 'G', 12, \
308932d6562SOleksandr Andrushchenko 	     sizeof(struct ioctl_gntdev_dmabuf_imp_release))
309932d6562SOleksandr Andrushchenko struct ioctl_gntdev_dmabuf_imp_release {
310932d6562SOleksandr Andrushchenko 	/* IN parameters */
311932d6562SOleksandr Andrushchenko 	__u32 fd;
312932d6562SOleksandr Andrushchenko 	__u32 reserved;
313932d6562SOleksandr Andrushchenko };
314932d6562SOleksandr Andrushchenko 
315564eb714SDavid Vrabel #endif /* __LINUX_PUBLIC_GNTDEV_H__ */
316