| 1 |
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ |
| 2 |
/* |
| 3 |
* Copyright(c) 2016 Intel Corporation. |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef DEF_RDMAVTMMAP_H |
| 7 |
#define DEF_RDMAVTMMAP_H |
| 8 |
|
| 9 |
#include <rdma/rdma_vt.h> |
| 10 |
|
| 11 |
void rvt_mmap_init(struct rvt_dev_info *rdi); |
| 12 |
void rvt_release_mmap_info(struct kref *ref); |
| 13 |
int rvt_mmap(struct ib_ucontext *context, struct vm_area_struct *vma); |
| 14 |
struct rvt_mmap_info *rvt_create_mmap_info(struct rvt_dev_info *rdi, u32 size, |
| 15 |
struct ib_udata *udata, void *obj); |
| 16 |
void rvt_update_mmap_info(struct rvt_dev_info *rdi, struct rvt_mmap_info *ip, |
| 17 |
u32 size, void *obj); |
| 18 |
|
| 19 |
#endif /* DEF_RDMAVTMMAP_H */ |