Commit 1c666e21 authored by Alejandro Ismael Silva's avatar Alejandro Ismael Silva Committed by Greg Kroah-Hartman

staging: vc04_services: Use tabs instead of spaces

This patch fixes the checkpatch.pl error:

WARNING: please, no spaces at the start of a line

in the interface/vchi directory.
Signed-off-by: default avatarAlejandro Ismael Silva <silva.alejandro.ismael@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 50505e57
...@@ -67,8 +67,8 @@ struct opaque_vchi_service_t; ...@@ -67,8 +67,8 @@ struct opaque_vchi_service_t;
// Descriptor for a held message. Allocated by client, initialised by vchi_msg_hold, // Descriptor for a held message. Allocated by client, initialised by vchi_msg_hold,
// vchi_msg_iter_hold or vchi_msg_iter_hold_next. Fields are for internal VCHI use only. // vchi_msg_iter_hold or vchi_msg_iter_hold_next. Fields are for internal VCHI use only.
struct vchi_held_msg { struct vchi_held_msg {
struct opaque_vchi_service_t *service; struct opaque_vchi_service_t *service;
void *message; void *message;
}; };
// structure used to provide the information needed to open a server or a client // structure used to provide the information needed to open a server or a client
......
...@@ -36,89 +36,89 @@ ...@@ -36,89 +36,89 @@
//flags used when sending messages (must be bitmapped) //flags used when sending messages (must be bitmapped)
typedef enum { typedef enum {
VCHI_FLAGS_NONE = 0x0, VCHI_FLAGS_NONE = 0x0,
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_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_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_BLOCK_UNTIL_QUEUED = 0x4, // return once the transfer is in a queue ready to go
VCHI_FLAGS_ALLOW_PARTIAL = 0x8, VCHI_FLAGS_ALLOW_PARTIAL = 0x8,
VCHI_FLAGS_BLOCK_UNTIL_DATA_READ = 0x10, VCHI_FLAGS_BLOCK_UNTIL_DATA_READ = 0x10,
VCHI_FLAGS_CALLBACK_WHEN_DATA_READ = 0x20, VCHI_FLAGS_CALLBACK_WHEN_DATA_READ = 0x20,
VCHI_FLAGS_ALIGN_SLOT = 0x000080, // internal use only VCHI_FLAGS_ALIGN_SLOT = 0x000080, // internal use only
VCHI_FLAGS_BULK_AUX_QUEUED = 0x010000, // internal use only VCHI_FLAGS_BULK_AUX_QUEUED = 0x010000, // internal use only
VCHI_FLAGS_BULK_AUX_COMPLETE = 0x020000, // 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_QUEUED = 0x040000, // internal use only
VCHI_FLAGS_BULK_DATA_COMPLETE = 0x080000, // internal use only VCHI_FLAGS_BULK_DATA_COMPLETE = 0x080000, // internal use only
VCHI_FLAGS_INTERNAL = 0xFF0000 VCHI_FLAGS_INTERNAL = 0xFF0000
} VCHI_FLAGS_T; } VCHI_FLAGS_T;
// constants for vchi_crc_control() // constants for vchi_crc_control()
typedef enum { typedef enum {
VCHI_CRC_NOTHING = -1, VCHI_CRC_NOTHING = -1,
VCHI_CRC_PER_SERVICE = 0, VCHI_CRC_PER_SERVICE = 0,
VCHI_CRC_EVERYTHING = 1, VCHI_CRC_EVERYTHING = 1,
} VCHI_CRC_CONTROL_T; } VCHI_CRC_CONTROL_T;
//callback reasons when an event occurs on a service //callback reasons when an event occurs on a service
typedef enum { typedef enum {
VCHI_CALLBACK_REASON_MIN, VCHI_CALLBACK_REASON_MIN,
//This indicates that there is data available //This indicates that there is data available
//handle is the msg id that was transmitted with the data //handle is the msg id that was transmitted with the data
// When a message is received and there was no FULL message available previously, send callback // When a message is received and there was no FULL message available previously, send callback
// Tasks get kicked by the callback, reset their event and try and read from the fifo until it fails // Tasks get kicked by the callback, reset their event and try and read from the fifo until it fails
VCHI_CALLBACK_MSG_AVAILABLE, VCHI_CALLBACK_MSG_AVAILABLE,
VCHI_CALLBACK_MSG_SENT, VCHI_CALLBACK_MSG_SENT,
VCHI_CALLBACK_MSG_SPACE_AVAILABLE, // XXX not yet implemented VCHI_CALLBACK_MSG_SPACE_AVAILABLE, // XXX not yet implemented
// This indicates that a transfer from the other side has completed // This indicates that a transfer from the other side has completed
VCHI_CALLBACK_BULK_RECEIVED, VCHI_CALLBACK_BULK_RECEIVED,
//This indicates that data queued up to be sent has now gone //This indicates that data queued up to be sent has now gone
//handle is the msg id that was used when sending the data //handle is the msg id that was used when sending the data
VCHI_CALLBACK_BULK_SENT, VCHI_CALLBACK_BULK_SENT,
VCHI_CALLBACK_BULK_RX_SPACE_AVAILABLE, // XXX not yet implemented VCHI_CALLBACK_BULK_RX_SPACE_AVAILABLE, // XXX not yet implemented
VCHI_CALLBACK_BULK_TX_SPACE_AVAILABLE, // XXX not yet implemented VCHI_CALLBACK_BULK_TX_SPACE_AVAILABLE, // XXX not yet implemented
VCHI_CALLBACK_SERVICE_CLOSED, VCHI_CALLBACK_SERVICE_CLOSED,
// this side has sent XOFF to peer due to lack of data consumption by service // this side has sent XOFF to peer due to lack of data consumption by service
// (suggests the service may need to take some recovery action if it has // (suggests the service may need to take some recovery action if it has
// been deliberately holding off consuming data) // been deliberately holding off consuming data)
VCHI_CALLBACK_SENT_XOFF, VCHI_CALLBACK_SENT_XOFF,
VCHI_CALLBACK_SENT_XON, VCHI_CALLBACK_SENT_XON,
// indicates that a bulk transfer has finished reading the source buffer // indicates that a bulk transfer has finished reading the source buffer
VCHI_CALLBACK_BULK_DATA_READ, VCHI_CALLBACK_BULK_DATA_READ,
// power notification events (currently host side only) // power notification events (currently host side only)
VCHI_CALLBACK_PEER_OFF, VCHI_CALLBACK_PEER_OFF,
VCHI_CALLBACK_PEER_SUSPENDED, VCHI_CALLBACK_PEER_SUSPENDED,
VCHI_CALLBACK_PEER_ON, VCHI_CALLBACK_PEER_ON,
VCHI_CALLBACK_PEER_RESUMED, VCHI_CALLBACK_PEER_RESUMED,
VCHI_CALLBACK_FORCED_POWER_OFF, VCHI_CALLBACK_FORCED_POWER_OFF,
// some extra notifications provided by vchiq_arm // some extra notifications provided by vchiq_arm
VCHI_CALLBACK_SERVICE_OPENED, VCHI_CALLBACK_SERVICE_OPENED,
VCHI_CALLBACK_BULK_RECEIVE_ABORTED, VCHI_CALLBACK_BULK_RECEIVE_ABORTED,
VCHI_CALLBACK_BULK_TRANSMIT_ABORTED, VCHI_CALLBACK_BULK_TRANSMIT_ABORTED,
VCHI_CALLBACK_REASON_MAX VCHI_CALLBACK_REASON_MAX
} VCHI_CALLBACK_REASON_T; } VCHI_CALLBACK_REASON_T;
// service control options // service control options
typedef enum { typedef enum {
VCHI_SERVICE_OPTION_MIN, VCHI_SERVICE_OPTION_MIN,
VCHI_SERVICE_OPTION_TRACE, VCHI_SERVICE_OPTION_TRACE,
VCHI_SERVICE_OPTION_SYNCHRONOUS, VCHI_SERVICE_OPTION_SYNCHRONOUS,
VCHI_SERVICE_OPTION_MAX VCHI_SERVICE_OPTION_MAX
} VCHI_SERVICE_OPTION_T; } VCHI_SERVICE_OPTION_T;
//Callback used by all services / bulk transfers //Callback used by all services / bulk transfers
typedef void (*VCHI_CALLBACK_T)(void *callback_param, //my service local param typedef void (*VCHI_CALLBACK_T)(void *callback_param, //my service local param
VCHI_CALLBACK_REASON_T reason, VCHI_CALLBACK_REASON_T reason,
void *handle); //for transmitting msg's only void *handle); //for transmitting msg's only
/* /*
* Define vector struct for scatter-gather (vector) operations * Define vector struct for scatter-gather (vector) operations
...@@ -138,8 +138,8 @@ typedef void (*VCHI_CALLBACK_T)(void *callback_param, //my service local param ...@@ -138,8 +138,8 @@ typedef void (*VCHI_CALLBACK_T)(void *callback_param, //my service local param
* *
*/ */
struct vchi_msg_vector { struct vchi_msg_vector {
const void *vec_base; const void *vec_base;
int32_t vec_len; int32_t vec_len;
}; };
// Opaque type for a connection API // Opaque type for a connection API
...@@ -155,10 +155,10 @@ typedef struct opaque_vchi_message_driver_t VCHI_MESSAGE_DRIVER_T; ...@@ -155,10 +155,10 @@ typedef struct opaque_vchi_message_driver_t VCHI_MESSAGE_DRIVER_T;
// is used again after messages for that service are removed/dequeued by any // is used again after messages for that service are removed/dequeued by any
// means other than vchi_msg_iter_... calls on the iterator itself. // means other than vchi_msg_iter_... calls on the iterator itself.
struct vchi_msg_iter { struct vchi_msg_iter {
struct opaque_vchi_service_t *service; struct opaque_vchi_service_t *service;
void *last; void *last;
void *next; void *next;
void *remove; void *remove;
}; };
#endif // VCHI_COMMON_H_ #endif // VCHI_COMMON_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment