Files
kernel_google_redbull/include/vservices/protocol/block/common.h
Carl van Schaik b523237653 vservices: block: add the block protocol and drivers
Adds the virtual services block protocol and block io drivers.
This protocol and drivers support exporting virtual block devices
from one VM to another, which are backed by another block device.

Change-Id: I47f86307c6201cb66d81bd453bb8c6c7ce99480f
Signed-off-by: Carl van Schaik <carl@cog.systems>
Git-commit: 9e55989babab087627e1ae42b2ed8e656c4b3993
Git-repo: https://github.com/CogSystems/linux-msm/commits/msm-4.9-hyp
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
[pheragu@codeaurora: Changing bio APIs]
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2019-01-21 18:17:48 -08:00

43 lines
1.2 KiB
C

/*
* Copyright (c) 2012-2018 General Dynamics
* Copyright (c) 2014 Open Kernel Labs, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#if !defined(__VSERVICES_BLOCK_PROTOCOL_H__)
#define __VSERVICES_BLOCK_PROTOCOL_H__
#define VSERVICE_BLOCK_PROTOCOL_NAME "com.ok-labs.block"
typedef enum {
VSERVICE_BLOCK_BASE_REQ_OPEN,
VSERVICE_BLOCK_BASE_ACK_OPEN,
VSERVICE_BLOCK_BASE_NACK_OPEN,
VSERVICE_BLOCK_BASE_REQ_CLOSE,
VSERVICE_BLOCK_BASE_ACK_CLOSE,
VSERVICE_BLOCK_BASE_NACK_CLOSE,
VSERVICE_BLOCK_BASE_REQ_REOPEN,
VSERVICE_BLOCK_BASE_ACK_REOPEN,
VSERVICE_BLOCK_BASE_NACK_REOPEN,
VSERVICE_BLOCK_BASE_MSG_RESET,
VSERVICE_BLOCK_IO_REQ_READ,
VSERVICE_BLOCK_IO_ACK_READ,
VSERVICE_BLOCK_IO_NACK_READ,
VSERVICE_BLOCK_IO_REQ_WRITE,
VSERVICE_BLOCK_IO_ACK_WRITE,
VSERVICE_BLOCK_IO_NACK_WRITE,
} vservice_block_message_id_t;
typedef enum {
VSERVICE_BLOCK_NBIT_IN__COUNT
} vservice_block_nbit_in_t;
typedef enum {
VSERVICE_BLOCK_NBIT_OUT__COUNT
} vservice_block_nbit_out_t;
/* Notification mask macros */
#endif /* ! __VSERVICES_BLOCK_PROTOCOL_H__ */