mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-13 05:06:26 +07:00
staging: vchi_common: Get rid of all unused definitions
There is a series of structures and enums defined but never used. Get rid of them. Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Link: https://lore.kernel.org/r/20200629150945.10720-16-nsaenzjulienne@suse.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6cdd7b7953
commit
09c0f0fc3f
@ -10,23 +10,7 @@ enum vchi_flags {
|
||||
VCHI_FLAGS_BLOCK_UNTIL_OP_COMPLETE = 0x1, // waits for message to be received, or sent (NB. not the same as being seen on other side)
|
||||
VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE = 0x2, // run a callback when message sent
|
||||
VCHI_FLAGS_BLOCK_UNTIL_QUEUED = 0x4, // return once the transfer is in a queue ready to go
|
||||
VCHI_FLAGS_ALLOW_PARTIAL = 0x8,
|
||||
VCHI_FLAGS_BLOCK_UNTIL_DATA_READ = 0x10,
|
||||
VCHI_FLAGS_CALLBACK_WHEN_DATA_READ = 0x20,
|
||||
|
||||
VCHI_FLAGS_ALIGN_SLOT = 0x000080, // internal use only
|
||||
VCHI_FLAGS_BULK_AUX_QUEUED = 0x010000, // internal use only
|
||||
VCHI_FLAGS_BULK_AUX_COMPLETE = 0x020000, // internal use only
|
||||
VCHI_FLAGS_BULK_DATA_QUEUED = 0x040000, // internal use only
|
||||
VCHI_FLAGS_BULK_DATA_COMPLETE = 0x080000, // internal use only
|
||||
VCHI_FLAGS_INTERNAL = 0xFF0000
|
||||
};
|
||||
|
||||
// constants for vchi_crc_control()
|
||||
enum vchi_crc_control {
|
||||
VCHI_CRC_NOTHING = -1,
|
||||
VCHI_CRC_PER_SERVICE = 0,
|
||||
VCHI_CRC_EVERYTHING = 1,
|
||||
};
|
||||
|
||||
//callback reasons when an event occurs on a service
|
||||
@ -47,58 +31,9 @@ enum vchi_callback_reason {
|
||||
VCHI_CALLBACK_BULK_RECEIVE_ABORTED,
|
||||
};
|
||||
|
||||
// service control options
|
||||
enum vchi_service_option {
|
||||
VCHI_SERVICE_OPTION_MIN,
|
||||
|
||||
VCHI_SERVICE_OPTION_TRACE,
|
||||
VCHI_SERVICE_OPTION_SYNCHRONOUS,
|
||||
|
||||
VCHI_SERVICE_OPTION_MAX
|
||||
};
|
||||
|
||||
//Callback used by all services / bulk transfers
|
||||
typedef void (*vchi_callback)(void *callback_param, //my service local param
|
||||
enum vchi_callback_reason reason,
|
||||
void *handle); //for transmitting msg's only
|
||||
|
||||
/*
|
||||
* Define vector struct for scatter-gather (vector) operations
|
||||
* Vectors can be nested - if a vector element has negative length, then
|
||||
* the data pointer is treated as pointing to another vector array, with
|
||||
* '-vec_len' elements. Thus to append a header onto an existing vector,
|
||||
* you can do this:
|
||||
*
|
||||
* void foo(const struct vchi_msg_vector *v, int n)
|
||||
* {
|
||||
* struct vchi_msg_vector nv[2];
|
||||
* nv[0].vec_base = my_header;
|
||||
* nv[0].vec_len = sizeof my_header;
|
||||
* nv[1].vec_base = v;
|
||||
* nv[1].vec_len = -n;
|
||||
* ...
|
||||
*
|
||||
*/
|
||||
struct vchi_msg_vector {
|
||||
const void *vec_base;
|
||||
int32_t vec_len;
|
||||
};
|
||||
|
||||
/*
|
||||
* Iterator structure for reading ahead through received message queue.
|
||||
* Allocated by client, initialised by vchi_msg_look_ahead. Fields are for
|
||||
* internal VCHI use only.
|
||||
* Iterates over messages in queue at the instant of the call to
|
||||
* vchi_msg_lookahead - will not proceed to messages received since.
|
||||
* Behaviour is undefined if an iterator is used again after messages for that
|
||||
* service are removed/dequeued by any means other than vchi_msg_iter_...
|
||||
* calls on the iterator itself.
|
||||
*/
|
||||
struct vchi_msg_iter {
|
||||
struct opaque_vchi_service_t *service;
|
||||
void *last;
|
||||
void *next;
|
||||
void *remove;
|
||||
};
|
||||
|
||||
#endif // VCHI_COMMON_H_
|
||||
|
Loading…
Reference in New Issue
Block a user