Commit | Line | Data |
---|---|---|
a603002e JG |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _LINUX_VIRTIO_ANCHOR_H | |
3 | #define _LINUX_VIRTIO_ANCHOR_H | |
4 | ||
5 | #ifdef CONFIG_VIRTIO_ANCHOR | |
6 | struct virtio_device; | |
7 | ||
8 | bool virtio_require_restricted_mem_acc(struct virtio_device *dev); | |
9 | extern bool (*virtio_check_mem_acc_cb)(struct virtio_device *dev); | |
10 | ||
11 | static inline void virtio_set_mem_acc_cb(bool (*func)(struct virtio_device *)) | |
12 | { | |
13 | virtio_check_mem_acc_cb = func; | |
14 | } | |
15 | #else | |
16 | #define virtio_set_mem_acc_cb(func) do { } while (0) | |
17 | #endif | |
18 | ||
19 | #endif /* _LINUX_VIRTIO_ANCHOR_H */ |