Home Home > GIT Browse
summaryrefslogtreecommitdiff
blob: 810d095182cda0d78f60433f9fa9220d59e70299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _LIVEPATCH_BSC1135280_H
#define _LIVEPATCH_BSC1135280_H

#if IS_ENABLED(CONFIG_DRM_I915_GVT_KVMGT)

int livepatch_bsc1135280_init(void);
void livepatch_bsc1135280_cleanup(void);

struct mdev_device;
struct vm_area_struct;

int klp_intel_vgpu_mmap(struct mdev_device *mdev, struct vm_area_struct *vma);


#else /* !IS_ENABLED(CONFIG_DRM_I915_GVT_KVMGT) */

static inline int livepatch_bsc1135280_init(void) { return 0; }

static inline void livepatch_bsc1135280_cleanup(void) {}

#endif /* IS_ENABLED(CONFIG_DRM_I915_GVT_KVMGT) */
#endif /* _LIVEPATCH_BSC1135280_H */