mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 13:16:43 +07:00
staging: unisys: visorbus: vmcallinterface.h: Fix #define formatting
In an effort to create a more uniform coding style within the Unisys s-Par driver set, this patch adjusts the formatting of all #define directives within this source file to match the following template, and thereby eliminate irregular usage of whitespace: Reviewed-by: Tim Sell <timothy.sell@unisys.com> The amount of whitespace used between the <token> and the <value> is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder <david.binder@unisys.com> Signed-off-by: David Kershner <david.kershner@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9757518eb1
commit
07b7eef2c5
@ -59,7 +59,7 @@ __unisys_extended_vmcall_gnuc(unsigned long long tuple,
|
||||
#endif /* */
|
||||
|
||||
/* define subsystem number for AppOS, used in uislib driver */
|
||||
#define MDS_APPOS 0x4000000000000000L /* subsystem = 62 - AppOS */
|
||||
#define MDS_APPOS 0x4000000000000000L /* subsystem = 62 - AppOS */
|
||||
enum vmcall_monitor_interface_method_tuple { /* VMCALL identification tuples */
|
||||
/* Note: when a new VMCALL is added:
|
||||
* - the 1st 2 hex digits correspond to one of the
|
||||
@ -83,14 +83,14 @@ enum vmcall_monitor_interface_method_tuple { /* VMCALL identification tuples */
|
||||
};
|
||||
|
||||
#define VMCALL_SUCCESS 0
|
||||
#define VMCALL_SUCCESSFUL(result) (result == 0)
|
||||
#define VMCALL_SUCCESSFUL(result) (result == 0)
|
||||
|
||||
#define unisys_vmcall(tuple, reg_ebx, reg_ecx) \
|
||||
__unisys_vmcall_gnuc(tuple, reg_ebx, reg_ecx)
|
||||
#define unisys_extended_vmcall(tuple, reg_ebx, reg_ecx, reg_edx) \
|
||||
__unisys_extended_vmcall_gnuc(tuple, reg_ebx, reg_ecx, reg_edx)
|
||||
#define ISSUE_IO_VMCALL(method, param, result) \
|
||||
(result = unisys_vmcall(method, (param) & 0xFFFFFFFF, \
|
||||
(result = unisys_vmcall(method, (param) & 0xFFFFFFFF, \
|
||||
(param) >> 32))
|
||||
|
||||
/* Structures for IO VMCALLs */
|
||||
@ -162,16 +162,16 @@ enum event_pc { /* POSTCODE event identifier tuples */
|
||||
* entered/exited from.
|
||||
*/
|
||||
|
||||
#define POSTCODE_LINUX(EVENT_PC, pc16bit1, pc16bit2, severity) \
|
||||
do { \
|
||||
unsigned long long post_code_temp; \
|
||||
post_code_temp = (((u64)CURRENT_FILE_PC) << 56) | \
|
||||
(((u64)EVENT_PC) << 44) | \
|
||||
((((u64)__LINE__) & 0xFFF) << 32) | \
|
||||
((((u64)pc16bit1) & 0xFFFF) << 16) | \
|
||||
(((u64)pc16bit2) & 0xFFFF); \
|
||||
unisys_extended_vmcall(VMCALL_POST_CODE_LOGEVENT, severity, \
|
||||
MDS_APPOS, post_code_temp); \
|
||||
#define POSTCODE_LINUX(EVENT_PC, pc16bit1, pc16bit2, severity) \
|
||||
do { \
|
||||
unsigned long long post_code_temp; \
|
||||
post_code_temp = (((u64)CURRENT_FILE_PC) << 56) | \
|
||||
(((u64)EVENT_PC) << 44) | \
|
||||
((((u64)__LINE__) & 0xFFF) << 32) | \
|
||||
((((u64)pc16bit1) & 0xFFFF) << 16) | \
|
||||
(((u64)pc16bit2) & 0xFFFF); \
|
||||
unisys_extended_vmcall(VMCALL_POST_CODE_LOGEVENT, severity, \
|
||||
MDS_APPOS, post_code_temp); \
|
||||
} while (0)
|
||||
|
||||
#endif /* __VMCALLINTERFACE_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user