freebsd-dev/sys/dev/vmware/vmci/vmci_queue_pair.h
Mark Peek 3eeb751122 Update VMCI license based on comments from core, the FreeBSD Foundation,
and VMware legal:
- Add a dual BSD-2 Clause/GPLv2 LICENSE file in the VMCI directory
- Remove the use of "All Rights Reserved"
- Per best practice, remove copyright/license info from Makefile

Reviewed by: imp, emaste, jhb, Vishnu Dasa <vdasa@vmware.com>
Approved by: VMware legal via Mark Peek <markpeek@vmware.com>
Differential Revision:  https://reviews.freebsd.org/D14979
2018-04-08 01:32:56 +00:00

29 lines
791 B
C

/*-
* Copyright (c) 2018 VMware, Inc.
*
* SPDX-License-Identifier: (BSD-2-Clause OR GPL-2.0)
*
* $FreeBSD$
*/
/* VMCI QueuePair API definition. */
#ifndef _VMCI_QUEUE_PAIR_H_
#define _VMCI_QUEUE_PAIR_H_
#include "vmci_kernel_if.h"
#include "vmci_queue.h"
int vmci_qp_guest_endpoints_init(void);
void vmci_qp_guest_endpoints_exit(void);
void vmci_qp_guest_endpoints_sync(void);
void vmci_qp_guest_endpoints_convert(bool to_local, bool device_reset);
int vmci_queue_pair_alloc(struct vmci_handle *handle,
struct vmci_queue **produce_q, uint64_t produce_size,
struct vmci_queue **consume_q, uint64_t consume_size,
vmci_id peer, uint32_t flags, vmci_privilege_flags priv_flags);
int vmci_queue_pair_detach(struct vmci_handle handle);
#endif /* !_VMCI_QUEUE_PAIR_H_ */