Commit d8ad8b0c authored by Veronika Kabatova's avatar Veronika Kabatova Committed by Greg Kroah-Hartman

staging: unisys: Remove typedef and rename enum to lowercase

Remove typedef and rename enum to lowercase (control_vm_id)
Signed-off-by: default avatarVeronika Kabátová <veronicca114@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 35b042a5
...@@ -88,7 +88,7 @@ static const uuid_le UltraControlvmChannelProtocolGuid = ...@@ -88,7 +88,7 @@ static const uuid_le UltraControlvmChannelProtocolGuid =
* - issued on the EventQueue queue (q #2) in the ControlVm channel * - issued on the EventQueue queue (q #2) in the ControlVm channel
* - responded to on the EventAckQueue queue (q #3) in the ControlVm channel * - responded to on the EventAckQueue queue (q #3) in the ControlVm channel
*/ */
typedef enum { enum control_vm_id {
CONTROLVM_INVALID = 0, CONTROLVM_INVALID = 0,
/* SWITCH commands required Parameter: SwitchNumber */ /* SWITCH commands required Parameter: SwitchNumber */
/* BUS commands required Parameter: BusNumber */ /* BUS commands required Parameter: BusNumber */
...@@ -117,7 +117,7 @@ typedef enum { ...@@ -117,7 +117,7 @@ typedef enum {
CONTROLVM_CHIPSET_READY = 0x304, /* CP --> SP */ CONTROLVM_CHIPSET_READY = 0x304, /* CP --> SP */
CONTROLVM_CHIPSET_SELFTEST = 0x305, /* CP --> SP */ CONTROLVM_CHIPSET_SELFTEST = 0x305, /* CP --> SP */
} CONTROLVM_ID; };
struct irq_info { struct irq_info {
/**< specifies interrupt info. It is used to send interrupts /**< specifies interrupt info. It is used to send interrupts
...@@ -239,7 +239,7 @@ typedef enum { ...@@ -239,7 +239,7 @@ typedef enum {
* looking at the flags.response field. * looking at the flags.response field.
*/ */
typedef struct _CONTROLVM_MESSAGE_HEADER { typedef struct _CONTROLVM_MESSAGE_HEADER {
u32 Id; /* See CONTROLVM_ID. */ u32 Id; /* See control_vm_id. */
/* For requests, indicates the message type. */ /* For requests, indicates the message type. */
/* For responses, indicates the type of message we are responding to. */ /* For responses, indicates the type of message we are responding to. */
......
...@@ -155,7 +155,7 @@ u64 uislib_storage_channel(int client_id); ...@@ -155,7 +155,7 @@ u64 uislib_storage_channel(int client_id);
#endif #endif
int uislib_get_owned_pdest(struct uisscsi_dest *pdest); int uislib_get_owned_pdest(struct uisscsi_dest *pdest);
int uislib_send_event(CONTROLVM_ID id, CONTROLVM_MESSAGE_PACKET *event); int uislib_send_event(enum control_vm_id id, CONTROLVM_MESSAGE_PACKET *event);
/* structure used by vhba & vnic to keep track of queue & thread info */ /* structure used by vhba & vnic to keep track of queue & thread info */
struct chaninfo { struct chaninfo {
......
...@@ -82,7 +82,7 @@ typedef struct { ...@@ -82,7 +82,7 @@ typedef struct {
uuid_le devInstGuid; uuid_le devInstGuid;
VISORCHIPSET_STATE state; VISORCHIPSET_STATE state;
VISORCHIPSET_CHANNEL_INFO chanInfo; VISORCHIPSET_CHANNEL_INFO chanInfo;
u32 Reserved1; /* CONTROLVM_ID */ u32 Reserved1; /* control_vm_id */
u64 Reserved2; u64 Reserved2;
u32 switchNo; /* when devState.attached==1 */ u32 switchNo; /* when devState.attached==1 */
u32 internalPortNo; /* when devState.attached==1 */ u32 internalPortNo; /* when devState.attached==1 */
...@@ -169,7 +169,7 @@ typedef struct { ...@@ -169,7 +169,7 @@ typedef struct {
u8 *authService3; u8 *authService3;
u8 *securityContext; u8 *securityContext;
u64 Reserved; u64 Reserved;
u32 Reserved2; /* CONTROLVM_ID */ u32 Reserved2; /* control_vm_id */
struct device dev; struct device dev;
BOOL dev_exists; BOOL dev_exists;
CONTROLVM_MESSAGE_HEADER pendingMsgHdr; CONTROLVM_MESSAGE_HEADER pendingMsgHdr;
...@@ -192,7 +192,7 @@ typedef struct { ...@@ -192,7 +192,7 @@ typedef struct {
u8 *ipGateway; u8 *ipGateway;
u8 *ipDNS; u8 *ipDNS;
u64 Reserved1; u64 Reserved1;
u32 Reserved2; /* CONTROLVM_ID */ u32 Reserved2; /* control_vm_id */
struct device dev; struct device dev;
BOOL dev_exists; BOOL dev_exists;
CONTROLVM_MESSAGE_HEADER pendingMsgHdr; CONTROLVM_MESSAGE_HEADER pendingMsgHdr;
...@@ -209,7 +209,7 @@ typedef struct { ...@@ -209,7 +209,7 @@ typedef struct {
u32 busNo; /* valid only when state.attached == 1 */ u32 busNo; /* valid only when state.attached == 1 */
u32 devNo; /* valid only when state.attached == 1 */ u32 devNo; /* valid only when state.attached == 1 */
u64 Reserved1; u64 Reserved1;
u32 Reserved2; /* CONTROLVM_ID */ u32 Reserved2; /* control_vm_id */
CONTROLVM_MESSAGE_HEADER pendingMsgHdr; CONTROLVM_MESSAGE_HEADER pendingMsgHdr;
MYPROCOBJECT *procObject; MYPROCOBJECT *procObject;
......
...@@ -817,7 +817,7 @@ visorchipset_save_message(CONTROLVM_MESSAGE *msg, CRASH_OBJ_TYPE type) ...@@ -817,7 +817,7 @@ visorchipset_save_message(CONTROLVM_MESSAGE *msg, CRASH_OBJ_TYPE type)
EXPORT_SYMBOL_GPL(visorchipset_save_message); EXPORT_SYMBOL_GPL(visorchipset_save_message);
static void static void
bus_responder(CONTROLVM_ID cmdId, ulong busNo, int response) bus_responder(enum control_vm_id cmdId, ulong busNo, int response)
{ {
VISORCHIPSET_BUS_INFO *p = NULL; VISORCHIPSET_BUS_INFO *p = NULL;
BOOL need_clear = FALSE; BOOL need_clear = FALSE;
...@@ -856,7 +856,7 @@ bus_responder(CONTROLVM_ID cmdId, ulong busNo, int response) ...@@ -856,7 +856,7 @@ bus_responder(CONTROLVM_ID cmdId, ulong busNo, int response)
} }
static void static void
device_changestate_responder(CONTROLVM_ID cmdId, device_changestate_responder(enum control_vm_id cmdId,
ulong busNo, ulong devNo, int response, ulong busNo, ulong devNo, int response,
struct ultra_segment_state responseState) struct ultra_segment_state responseState)
{ {
...@@ -893,7 +893,7 @@ device_changestate_responder(CONTROLVM_ID cmdId, ...@@ -893,7 +893,7 @@ device_changestate_responder(CONTROLVM_ID cmdId,
} }
static void static void
device_responder(CONTROLVM_ID cmdId, ulong busNo, ulong devNo, int response) device_responder(enum control_vm_id cmdId, ulong busNo, ulong devNo, int response)
{ {
VISORCHIPSET_DEVICE_INFO *p = NULL; VISORCHIPSET_DEVICE_INFO *p = NULL;
BOOL need_clear = FALSE; BOOL need_clear = FALSE;
......
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