diff options
Diffstat (limited to 'include/uapi/drm/compote-uapi.h')
-rw-r--r-- | include/uapi/drm/compote-uapi.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/uapi/drm/compote-uapi.h b/include/uapi/drm/compote-uapi.h new file mode 100644 index 000000000000..bbedb2af30d4 --- /dev/null +++ b/include/uapi/drm/compote-uapi.h @@ -0,0 +1,36 @@ +/* + * Copyright 2017 Red Hat Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Authors: Jérôme Glisse <jglisse@redhat.com> + */ +#ifndef COMPOTE_UAPI_H +#define COMPOTE_UAPI_H + +#include <linux/types.h> +#include <linux/ioctl.h> +#include <linux/irqnr.h> + +struct compote_ioctl_mem_alloc { + uint64_t nbytes; + uint64_t foffset; +}; + +struct compote_ioctl_mem_free { + uint64_t foffset; +}; + +/* Expose the address space of the calling process through hmm dummy dev file */ +#define COMPOTE_IOCTL_MEM_ALLOC _IOWR('H', 0x00, struct compote_ioctl_mem_alloc) +#define COMPOTE_IOCTL_MEM_FREE _IOWR('H', 0x01, struct compote_ioctl_mem_free) + +#endif /* COMPOTE_UAPI_H */ |