Commit 53414833 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: refactor VISORCHIPSET_EXTERNALPORT_INFO

Remove the typedef and just use struct visorchipset_externalport_info instead.
Fix all CamelCase names:

switchNo => switch_no
externalPortNo => external_port_no
networkZoneGuid => network_zone_uuid
pdPort => pd_port
ipNetmask => ip_netmask
ipBroadcast => ip_broadcast
ipNetwork => ip_network
ipGateway => ip_gateway
ipDNS => ip_dns
Reserved1 => reserved1
Reserved2 => reserved2
pendingMsgHdr => pending_msg_hdr
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
parent e2320e65
...@@ -178,25 +178,24 @@ struct visorchipset_switch_info { ...@@ -178,25 +178,24 @@ struct visorchipset_switch_info {
/** Attributes for a particular Supervisor external port, which is connected /** Attributes for a particular Supervisor external port, which is connected
* to a specific switch. * to a specific switch.
*/ */
typedef struct { struct visorchipset_externalport_info {
u32 switchNo; u32 switch_no;
u32 externalPortNo; u32 external_port_no;
struct visorchipset_state state; struct visorchipset_state state;
uuid_le networkZoneGuid; uuid_le network_zone_uuid;
int pdPort; int pd_port;
u8 *ip; u8 *ip;
u8 *ipNetmask; u8 *ip_netmask;
u8 *ipBroadcast; u8 *ip_broadcast;
u8 *ipNetwork; u8 *ip_network;
u8 *ipGateway; u8 *ip_gateway;
u8 *ipDNS; u8 *ip_dns;
u64 Reserved1; u64 reserved1;
u32 Reserved2; /* control_vm_id */ u32 reserved2; /* control_vm_id */
struct device dev; struct device dev;
BOOL dev_exists; BOOL dev_exists;
struct controlvm_message_header pendingMsgHdr; struct controlvm_message_header pending_msg_hdr;
};
} VISORCHIPSET_EXTERNALPORT_INFO;
/** Attributes for a particular Supervisor internal port, which is how a /** Attributes for a particular Supervisor internal port, which is how a
* device connects to a particular switch. * device connects to a particular switch.
...@@ -278,7 +277,7 @@ BOOL visorchipset_get_device_info(ulong busNo, ulong devNo, ...@@ -278,7 +277,7 @@ BOOL visorchipset_get_device_info(ulong busNo, ulong devNo,
BOOL visorchipset_get_switch_info(ulong switchNo, BOOL visorchipset_get_switch_info(ulong switchNo,
struct visorchipset_switch_info *switchInfo); struct visorchipset_switch_info *switchInfo);
BOOL visorchipset_get_externalport_info(ulong switchNo, ulong externalPortNo, BOOL visorchipset_get_externalport_info(ulong switchNo, ulong externalPortNo,
VISORCHIPSET_EXTERNALPORT_INFO struct visorchipset_externalport_info
*externalPortInfo); *externalPortInfo);
BOOL visorchipset_set_bus_context(ulong busNo, void *context); BOOL visorchipset_set_bus_context(ulong busNo, void *context);
BOOL visorchipset_set_device_context(ulong busNo, ulong devNo, void *context); BOOL visorchipset_set_device_context(ulong busNo, ulong devNo, void *context);
......
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