685a6bf848
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation version 2 and no later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 33 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190530000435.345978407@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
44 lines
1.0 KiB
C
44 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* VMware VMCI Driver
|
|
*
|
|
* Copyright (C) 2012 VMware, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef VMCI_DOORBELL_H
|
|
#define VMCI_DOORBELL_H
|
|
|
|
#include <linux/vmw_vmci_defs.h>
|
|
#include <linux/types.h>
|
|
|
|
#include "vmci_driver.h"
|
|
|
|
/*
|
|
* VMCINotifyResourceInfo: Used to create and destroy doorbells, and
|
|
* generate a notification for a doorbell or queue pair.
|
|
*/
|
|
struct vmci_dbell_notify_resource_info {
|
|
struct vmci_handle handle;
|
|
u16 resource;
|
|
u16 action;
|
|
s32 result;
|
|
};
|
|
|
|
/*
|
|
* Structure used for checkpointing the doorbell mappings. It is
|
|
* written to the checkpoint as is, so changing this structure will
|
|
* break checkpoint compatibility.
|
|
*/
|
|
struct dbell_cpt_state {
|
|
struct vmci_handle handle;
|
|
u64 bitmap_idx;
|
|
};
|
|
|
|
int vmci_dbell_host_context_notify(u32 src_cid, struct vmci_handle handle);
|
|
int vmci_dbell_get_priv_flags(struct vmci_handle handle, u32 *priv_flags);
|
|
|
|
bool vmci_dbell_register_notification_bitmap(u64 bitmap_ppn);
|
|
void vmci_dbell_scan_notification_entries(u8 *bitmap);
|
|
|
|
#endif /* VMCI_DOORBELL_H */
|