gvt.h (6a4500c7b83f9e4470dd20cf89f691abd132d090) gvt.h (b01739fb865a268aec617f6bb5d2ef498da72697)
1/*
2 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
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

--- 201 unchanged lines hidden (view full) ---

210 struct dentry *debugfs;
211
212 /* Hypervisor-specific device state. */
213 void *vdev;
214
215 struct list_head dmabuf_obj_list_head;
216 struct mutex dmabuf_lock;
217 struct idr object_idr;
1/*
2 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
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

--- 201 unchanged lines hidden (view full) ---

210 struct dentry *debugfs;
211
212 /* Hypervisor-specific device state. */
213 void *vdev;
214
215 struct list_head dmabuf_obj_list_head;
216 struct mutex dmabuf_lock;
217 struct idr object_idr;
218 struct intel_vgpu_vblank_timer vblank_timer;
218
219 u32 scan_nonprivbb;
220};
221
222static inline void *intel_vgpu_vdev(struct intel_vgpu *vgpu)
223{
224 return vgpu->vdev;
225}

--- 113 unchanged lines hidden (view full) ---

339};
340
341static inline struct intel_gvt *to_gvt(struct drm_i915_private *i915)
342{
343 return i915->gvt;
344}
345
346enum {
219
220 u32 scan_nonprivbb;
221};
222
223static inline void *intel_vgpu_vdev(struct intel_vgpu *vgpu)
224{
225 return vgpu->vdev;
226}

--- 113 unchanged lines hidden (view full) ---

340};
341
342static inline struct intel_gvt *to_gvt(struct drm_i915_private *i915)
343{
344 return i915->gvt;
345}
346
347enum {
347 INTEL_GVT_REQUEST_EMULATE_VBLANK = 0,
348
349 /* Scheduling trigger by timer */
348 /* Scheduling trigger by timer */
350 INTEL_GVT_REQUEST_SCHED = 1,
349 INTEL_GVT_REQUEST_SCHED = 0,
351
352 /* Scheduling trigger by event */
350
351 /* Scheduling trigger by event */
353 INTEL_GVT_REQUEST_EVENT_SCHED = 2,
352 INTEL_GVT_REQUEST_EVENT_SCHED = 1,
353
354 /* per-vGPU vblank emulation request */
355 INTEL_GVT_REQUEST_EMULATE_VBLANK = 2,
356 INTEL_GVT_REQUEST_EMULATE_VBLANK_MAX = INTEL_GVT_REQUEST_EMULATE_VBLANK
357 + GVT_MAX_VGPU,
354};
355
356static inline void intel_gvt_request_service(struct intel_gvt *gvt,
357 int service)
358{
359 set_bit(service, (void *)&gvt->service_request);
360 wake_up(&gvt->service_thread_wq);
361}

--- 339 unchanged lines hidden ---
358};
359
360static inline void intel_gvt_request_service(struct intel_gvt *gvt,
361 int service)
362{
363 set_bit(service, (void *)&gvt->service_request);
364 wake_up(&gvt->service_thread_wq);
365}

--- 339 unchanged lines hidden ---