Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright © 2007,2014 Intel Corporation |
| 3 | * |
| 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 5 | * copy of this software and associated documentation files (the "Software"), |
| 6 | * to deal in the Software without restriction, including without limitation |
| 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 8 | * and/or sell copies of the Software, and to permit persons to whom the |
| 9 | * Software is furnished to do so, subject to the following conditions: |
| 10 | * |
| 11 | * The above copyright notice and this permission notice (including the next |
| 12 | * paragraph) shall be included in all copies or substantial portions of the |
| 13 | * 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS |
| 21 | * IN THE SOFTWARE. |
| 22 | * |
| 23 | * Authors: |
| 24 | * Eric Anholt <eric@anholt.net> |
| 25 | * Daniel Vetter <daniel.vetter@ffwll.ch> |
| 26 | * |
| 27 | */ |
| 28 | |
| 29 | |
| 30 | #ifndef IOCTL_WRAPPERS_H |
| 31 | #define IOCTL_WRAPPERS_H |
| 32 | |
Daniel Vetter | e49ceb8 | 2014-03-22 21:07:37 +0100 | [diff] [blame] | 33 | #include <stdint.h> |
| 34 | #include <stdbool.h> |
| 35 | #include <intel_bufmgr.h> |
| 36 | #include <i915_drm.h> |
| 37 | |
Daniel Vetter | d7050f9 | 2016-05-11 17:06:28 +0200 | [diff] [blame] | 38 | /** |
| 39 | * igt_ioctl: |
| 40 | * @fd: file descriptor |
| 41 | * @request: IOCTL request number |
| 42 | * @arg: argument pointer |
| 43 | * |
| 44 | * This is a wrapper around drmIoctl(), which can be augmented with special code |
| 45 | * blocks like #igt_while_interruptible. |
| 46 | */ |
Chris Wilson | c1fed52 | 2016-03-19 13:00:29 +0000 | [diff] [blame] | 47 | extern int (*igt_ioctl)(int fd, unsigned long request, void *arg); |
| 48 | |
Daniel Vetter | 556c49f | 2014-03-11 23:27:06 +0100 | [diff] [blame] | 49 | /* libdrm interfacing */ |
| 50 | drm_intel_bo * gem_handle_to_libdrm_bo(drm_intel_bufmgr *bufmgr, int fd, |
| 51 | const char *name, uint32_t handle); |
| 52 | |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 53 | /* ioctl_wrappers.c: |
| 54 | * |
| 55 | * ioctl wrappers and similar stuff for bare metal testing */ |
Chris Wilson | e276268 | 2016-10-19 14:07:25 +0100 | [diff] [blame] | 56 | bool gem_get_tiling(int fd, uint32_t handle, uint32_t *tiling, uint32_t *swizzle); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 57 | void gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride); |
| 58 | int __gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 59 | |
Daniel Vetter | 556c49f | 2014-03-11 23:27:06 +0100 | [diff] [blame] | 60 | void gem_set_caching(int fd, uint32_t handle, uint32_t caching); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 61 | uint32_t gem_get_caching(int fd, uint32_t handle); |
| 62 | uint32_t gem_flink(int fd, uint32_t handle); |
| 63 | uint32_t gem_open(int fd, uint32_t name); |
| 64 | void gem_close(int fd, uint32_t handle); |
Chris Wilson | fc69bb0 | 2015-04-27 21:05:33 +0100 | [diff] [blame] | 65 | void gem_write(int fd, uint32_t handle, uint64_t offset, const void *buf, uint64_t length); |
| 66 | void gem_read(int fd, uint32_t handle, uint64_t offset, void *buf, uint64_t length); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 67 | void gem_set_domain(int fd, uint32_t handle, |
| 68 | uint32_t read_domains, uint32_t write_domain); |
Chris Wilson | f27d295 | 2016-02-23 17:45:49 +0000 | [diff] [blame] | 69 | int gem_wait(int fd, uint32_t handle, int64_t *timeout_ns); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 70 | void gem_sync(int fd, uint32_t handle); |
Ankitprasad Sharma | 70c3be8 | 2015-12-02 14:54:50 +0530 | [diff] [blame] | 71 | bool gem_create__has_stolen_support(int fd); |
| 72 | uint32_t __gem_create_stolen(int fd, uint64_t size); |
| 73 | uint32_t gem_create_stolen(int fd, uint64_t size); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 74 | uint32_t __gem_create(int fd, int size); |
Chris Wilson | 236bab5 | 2015-04-26 11:11:55 +0100 | [diff] [blame] | 75 | uint32_t gem_create(int fd, uint64_t size); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 76 | void gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf); |
Chris Wilson | e3b68bb | 2016-01-23 09:44:19 +0000 | [diff] [blame] | 77 | int __gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 78 | |
Chris Wilson | 019ae90 | 2015-04-26 12:16:44 +0100 | [diff] [blame] | 79 | void *gem_mmap__gtt(int fd, uint32_t handle, uint64_t size, unsigned prot); |
| 80 | void *gem_mmap__cpu(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot); |
Chris Wilson | a464fb7 | 2015-01-02 16:33:29 +0530 | [diff] [blame] | 81 | |
| 82 | bool gem_mmap__has_wc(int fd); |
Chris Wilson | 019ae90 | 2015-04-26 12:16:44 +0100 | [diff] [blame] | 83 | void *gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot); |
Daniel Vetter | a3e34ce | 2015-02-06 11:05:28 +0100 | [diff] [blame] | 84 | |
Ville Syrjälä | b8a77dd | 2015-10-09 18:29:28 +0300 | [diff] [blame] | 85 | void *__gem_mmap__gtt(int fd, uint32_t handle, uint64_t size, unsigned prot); |
| 86 | void *__gem_mmap__cpu(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot); |
| 87 | void *__gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot); |
| 88 | |
Daniel Vetter | a3e34ce | 2015-02-06 11:05:28 +0100 | [diff] [blame] | 89 | /** |
Ankitprasad Sharma | 70c3be8 | 2015-12-02 14:54:50 +0530 | [diff] [blame] | 90 | * gem_require_stolen_support: |
| 91 | * @fd: open i915 drm file descriptor |
| 92 | * |
| 93 | * Test macro to query whether support for allocating objects from stolen |
| 94 | * memory is available. Automatically skips through igt_require() if not. |
| 95 | */ |
| 96 | #define gem_require_stolen_support(fd) \ |
Ankitprasad Sharma | beef31a | 2016-06-06 14:52:42 +0530 | [diff] [blame] | 97 | igt_require(gem_create__has_stolen_support(fd) && \ |
| 98 | (gem_total_stolen_size(fd) > 0)) |
Ankitprasad Sharma | 70c3be8 | 2015-12-02 14:54:50 +0530 | [diff] [blame] | 99 | |
| 100 | /** |
Daniel Vetter | a3e34ce | 2015-02-06 11:05:28 +0100 | [diff] [blame] | 101 | * gem_require_mmap_wc: |
| 102 | * @fd: open i915 drm file descriptor |
| 103 | * |
| 104 | * Feature test macro to query whether direct (i.e. cpu access path, bypassing |
| 105 | * the gtt) write-combine memory mappings are available. Automatically skips |
| 106 | * through igt_require() if not. |
| 107 | */ |
Thomas Wood | a22548f | 2015-02-16 11:17:11 +0000 | [diff] [blame] | 108 | #define gem_require_mmap_wc(fd) igt_require(gem_mmap__has_wc(fd)) |
Chris Wilson | a464fb7 | 2015-01-02 16:33:29 +0530 | [diff] [blame] | 109 | |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 110 | int gem_madvise(int fd, uint32_t handle, int state); |
| 111 | |
| 112 | uint32_t gem_context_create(int fd); |
Daniel Vetter | 09b8211 | 2015-02-06 17:15:13 +0100 | [diff] [blame] | 113 | void gem_context_destroy(int fd, uint32_t ctx_id); |
| 114 | int __gem_context_destroy(int fd, uint32_t ctx_id); |
Daniel Vetter | 75c075c | 2015-02-06 17:13:59 +0100 | [diff] [blame] | 115 | struct local_i915_gem_context_param { |
| 116 | uint32_t context; |
| 117 | uint32_t size; |
| 118 | uint64_t param; |
Chris Wilson | 5ec54d8 | 2015-10-19 11:36:17 +0100 | [diff] [blame] | 119 | #define LOCAL_CONTEXT_PARAM_BAN_PERIOD 0x1 |
| 120 | #define LOCAL_CONTEXT_PARAM_NO_ZEROMAP 0x2 |
| 121 | #define LOCAL_CONTEXT_PARAM_GTT_SIZE 0x3 |
Chris Wilson | 171b21d | 2016-10-13 22:46:47 +0100 | [diff] [blame] | 122 | #define LOCAL_CONTEXT_PARAM_NO_ERROR_CAPTURE 0x4 |
Mika Kuoppala | 773ac7c | 2016-11-08 12:31:06 +0200 | [diff] [blame] | 123 | #define LOCAL_CONTEXT_PARAM_BANNABLE 0x5 |
Daniel Vetter | 75c075c | 2015-02-06 17:13:59 +0100 | [diff] [blame] | 124 | uint64_t value; |
| 125 | }; |
Mika Kuoppala | 773ac7c | 2016-11-08 12:31:06 +0200 | [diff] [blame] | 126 | void gem_context_require_bannable(int fd); |
Daniel Vetter | 75c075c | 2015-02-06 17:13:59 +0100 | [diff] [blame] | 127 | void gem_context_require_param(int fd, uint64_t param); |
| 128 | void gem_context_get_param(int fd, struct local_i915_gem_context_param *p); |
| 129 | void gem_context_set_param(int fd, struct local_i915_gem_context_param *p); |
Chris Wilson | 19642c6 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 130 | int __gem_context_set_param(int fd, struct local_i915_gem_context_param *p); |
Chris Wilson | 7b349f3 | 2016-10-13 22:44:08 +0100 | [diff] [blame] | 131 | int __gem_context_get_param(int fd, struct local_i915_gem_context_param *p); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 132 | |
Tiago Vignatti | e1f663b | 2015-08-12 15:57:12 -0300 | [diff] [blame] | 133 | #define LOCAL_I915_GEM_USERPTR 0x33 |
| 134 | #define LOCAL_IOCTL_I915_GEM_USERPTR DRM_IOWR (DRM_COMMAND_BASE + LOCAL_I915_GEM_USERPTR, struct local_i915_gem_userptr) |
| 135 | struct local_i915_gem_userptr { |
| 136 | uint64_t user_ptr; |
| 137 | uint64_t user_size; |
| 138 | uint32_t flags; |
| 139 | #define LOCAL_I915_USERPTR_READ_ONLY (1<<0) |
| 140 | #define LOCAL_I915_USERPTR_UNSYNCHRONIZED (1<<31) |
| 141 | uint32_t handle; |
| 142 | }; |
| 143 | void gem_userptr(int fd, void *ptr, int size, int read_only, uint32_t flags, uint32_t *handle); |
| 144 | int __gem_userptr(int fd, void *ptr, int size, int read_only, uint32_t flags, uint32_t *handle); |
| 145 | |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 146 | void gem_sw_finish(int fd, uint32_t handle); |
| 147 | |
| 148 | bool gem_bo_busy(int fd, uint32_t handle); |
| 149 | |
| 150 | /* feature test helpers */ |
Chris Wilson | 9518cb5 | 2017-02-22 15:24:54 +0000 | [diff] [blame^] | 151 | void igt_require_gem(int fd); |
Chris Wilson | b76f1d8 | 2014-09-08 10:28:41 +0100 | [diff] [blame] | 152 | bool gem_has_llc(int fd); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 153 | bool gem_has_bsd(int fd); |
| 154 | bool gem_has_blt(int fd); |
| 155 | bool gem_has_vebox(int fd); |
Zhipeng Gong | 17937a0 | 2015-01-13 08:50:19 +0800 | [diff] [blame] | 156 | bool gem_has_bsd2(int fd); |
Michał Winiarski | 52b5d50 | 2016-01-25 19:35:01 +0100 | [diff] [blame] | 157 | int gem_gtt_type(int fd); |
| 158 | bool gem_uses_ppgtt(int fd); |
| 159 | bool gem_uses_full_ppgtt(int fd); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 160 | int gem_available_fences(int fd); |
Ankitprasad Sharma | beef31a | 2016-06-06 14:52:42 +0530 | [diff] [blame] | 161 | uint64_t gem_total_mappable_size(int fd); |
| 162 | uint64_t gem_total_stolen_size(int fd); |
Chris Wilson | 1603890 | 2016-02-18 10:35:10 +0000 | [diff] [blame] | 163 | uint64_t gem_available_aperture_size(int fd); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 164 | uint64_t gem_aperture_size(int fd); |
Chris Wilson | 391b32c | 2016-02-05 18:35:21 +0000 | [diff] [blame] | 165 | uint64_t gem_global_aperture_size(int fd); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 166 | uint64_t gem_mappable_aperture_size(void); |
Michał Winiarski | e6ca4bd | 2016-01-25 19:35:02 +0100 | [diff] [blame] | 167 | bool gem_has_softpin(int fd); |
Daniele Ceraolo Spurio | 25b5a74 | 2017-02-03 14:45:30 -0800 | [diff] [blame] | 168 | bool gem_has_exec_fence(int fd); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 169 | |
Daniel Vetter | 556c49f | 2014-03-11 23:27:06 +0100 | [diff] [blame] | 170 | /* check functions which auto-skip tests by calling igt_skip() */ |
| 171 | void gem_require_caching(int fd); |
Chris Wilson | 60eafc5 | 2016-03-04 09:40:51 +0000 | [diff] [blame] | 172 | bool gem_has_ring(int fd, unsigned ring); |
| 173 | void gem_require_ring(int fd, unsigned ring); |
Peter Antoine | 8af67d1 | 2016-04-11 17:50:09 +0100 | [diff] [blame] | 174 | bool gem_has_mocs_registers(int fd); |
| 175 | void gem_require_mocs_registers(int fd); |
Daniel Vetter | 556c49f | 2014-03-11 23:27:06 +0100 | [diff] [blame] | 176 | |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 177 | /* prime */ |
Tiago Vignatti | 35debab | 2015-12-11 18:50:35 -0200 | [diff] [blame] | 178 | struct local_dma_buf_sync { |
| 179 | uint64_t flags; |
| 180 | }; |
| 181 | |
| 182 | #define LOCAL_DMA_BUF_SYNC_READ (1 << 0) |
| 183 | #define LOCAL_DMA_BUF_SYNC_WRITE (2 << 0) |
| 184 | #define LOCAL_DMA_BUF_SYNC_RW (LOCAL_DMA_BUF_SYNC_READ | LOCAL_DMA_BUF_SYNC_WRITE) |
| 185 | #define LOCAL_DMA_BUF_SYNC_START (0 << 2) |
| 186 | #define LOCAL_DMA_BUF_SYNC_END (1 << 2) |
| 187 | #define LOCAL_DMA_BUF_SYNC_VALID_FLAGS_MASK \ |
| 188 | (LOCAL_DMA_BUF_SYNC_RW | LOCAL_DMA_BUF_SYNC_END) |
| 189 | |
| 190 | #define LOCAL_DMA_BUF_BASE 'b' |
| 191 | #define LOCAL_DMA_BUF_IOCTL_SYNC _IOW(LOCAL_DMA_BUF_BASE, 0, struct local_dma_buf_sync) |
| 192 | |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 193 | int prime_handle_to_fd(int fd, uint32_t handle); |
Tiago Vignatti | 4edfa09 | 2015-07-29 18:26:29 -0300 | [diff] [blame] | 194 | #ifndef DRM_RDWR |
| 195 | #define DRM_RDWR O_RDWR |
| 196 | #endif |
| 197 | int prime_handle_to_fd_for_mmap(int fd, uint32_t handle); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 198 | uint32_t prime_fd_to_handle(int fd, int dma_buf_fd); |
| 199 | off_t prime_get_size(int dma_buf_fd); |
Chris Wilson | aed69b5 | 2016-02-25 21:43:01 +0000 | [diff] [blame] | 200 | void prime_sync_start(int dma_buf_fd, bool write); |
| 201 | void prime_sync_end(int dma_buf_fd, bool write); |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 202 | |
Tvrtko Ursulin | 0a08773 | 2015-03-03 14:10:54 +0000 | [diff] [blame] | 203 | /* addfb2 fb modifiers */ |
| 204 | struct local_drm_mode_fb_cmd2 { |
| 205 | uint32_t fb_id; |
| 206 | uint32_t width, height; |
| 207 | uint32_t pixel_format; |
| 208 | uint32_t flags; |
| 209 | uint32_t handles[4]; |
| 210 | uint32_t pitches[4]; |
| 211 | uint32_t offsets[4]; |
| 212 | uint64_t modifier[4]; |
| 213 | }; |
| 214 | |
| 215 | #define LOCAL_DRM_MODE_FB_MODIFIERS (1<<1) |
| 216 | |
| 217 | #define LOCAL_DRM_FORMAT_MOD_VENDOR_INTEL 0x01 |
| 218 | |
| 219 | #define local_fourcc_mod_code(vendor, val) \ |
| 220 | ((((uint64_t)LOCAL_DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | \ |
| 221 | (val & 0x00ffffffffffffffL)) |
| 222 | |
| 223 | #define LOCAL_DRM_FORMAT_MOD_NONE (0) |
| 224 | #define LOCAL_I915_FORMAT_MOD_X_TILED local_fourcc_mod_code(INTEL, 1) |
Tvrtko Ursulin | 0c15e06 | 2015-03-03 14:10:56 +0000 | [diff] [blame] | 225 | #define LOCAL_I915_FORMAT_MOD_Y_TILED local_fourcc_mod_code(INTEL, 2) |
| 226 | #define LOCAL_I915_FORMAT_MOD_Yf_TILED local_fourcc_mod_code(INTEL, 3) |
Tomeu Vizoso | d900dd8 | 2016-12-06 16:06:50 +0100 | [diff] [blame] | 227 | #define LOCAL_I915_FORMAT_MOD_Y_TILED_CCS local_fourcc_mod_code(INTEL, 4) |
| 228 | #define LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS local_fourcc_mod_code(INTEL, 5) |
Tvrtko Ursulin | 0a08773 | 2015-03-03 14:10:54 +0000 | [diff] [blame] | 229 | |
| 230 | #define LOCAL_DRM_IOCTL_MODE_ADDFB2 DRM_IOWR(0xB8, \ |
| 231 | struct local_drm_mode_fb_cmd2) |
| 232 | |
| 233 | #define LOCAL_DRM_CAP_ADDFB2_MODIFIERS 0x10 |
| 234 | |
| 235 | void igt_require_fb_modifiers(int fd); |
| 236 | |
Tvrtko Ursulin | c7bac3c | 2015-03-03 14:11:02 +0000 | [diff] [blame] | 237 | /** |
| 238 | * __kms_addfb: |
| 239 | * |
| 240 | * Creates a framebuffer object. |
| 241 | */ |
| 242 | int __kms_addfb(int fd, uint32_t handle, uint32_t width, uint32_t height, |
| 243 | uint32_t stride, uint32_t pixel_format, uint64_t modifier, |
| 244 | uint32_t flags, uint32_t *buf_id); |
| 245 | |
Robert Foss | 091a452 | 2017-01-02 05:07:10 -0500 | [diff] [blame] | 246 | /** |
| 247 | * to_user_pointer: |
| 248 | * |
| 249 | * Makes sure that pointer on 32 and 64-bit systems |
| 250 | * are casted properly for being sent through an ioctl. |
| 251 | */ |
Robert Foss | 0517d87 | 2017-01-02 05:25:55 -0500 | [diff] [blame] | 252 | static inline uint64_t to_user_pointer(const void *ptr) |
Robert Foss | 091a452 | 2017-01-02 05:07:10 -0500 | [diff] [blame] | 253 | { |
Robert Foss | 0517d87 | 2017-01-02 05:25:55 -0500 | [diff] [blame] | 254 | return (uintptr_t)ptr; |
Robert Foss | 091a452 | 2017-01-02 05:07:10 -0500 | [diff] [blame] | 255 | } |
| 256 | |
Chris Wilson | 8f39310 | 2017-01-02 11:23:33 +0000 | [diff] [blame] | 257 | /** |
| 258 | * from_user_pointer: |
| 259 | * |
| 260 | * Casts a 64bit value from an ioctl into a pointer. |
| 261 | */ |
| 262 | static inline void *from_user_pointer(uint64_t u64) |
| 263 | { |
| 264 | return (void *)(uintptr_t)u64; |
| 265 | } |
| 266 | |
Daniel Vetter | 766c5bc | 2014-03-11 22:58:07 +0100 | [diff] [blame] | 267 | #endif /* IOCTL_WRAPPERS_H */ |