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

staging: unisys: refactor DEVICE_MAP

Get rid of the typedef for DEVICE_MAP and use struct device_map instead.
Fix CamelCase names.

DeviceChannelSize => device_channel_size
CA_Index => ca_index
Reserved => reserved
Reserved2 => reserved2
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3ab47701
...@@ -342,20 +342,20 @@ struct controlvm_message { ...@@ -342,20 +342,20 @@ struct controlvm_message {
struct controlvm_message_packet cmd; struct controlvm_message_packet cmd;
}; };
typedef struct _DEVICE_MAP { struct device_map {
GUEST_PHYSICAL_ADDRESS DeviceChannelAddress; GUEST_PHYSICAL_ADDRESS device_channel_address;
u64 DeviceChannelSize; u64 device_channel_size;
u32 CA_Index; u32 ca_index;
u32 Reserved; /* natural alignment */ u32 reserved; /* natural alignment */
u64 Reserved2; /* Align structure on 32-byte boundary */ u64 reserved2; /* Align structure on 32-byte boundary */
} DEVICE_MAP; };
typedef struct _GUEST_DEVICES { typedef struct _GUEST_DEVICES {
DEVICE_MAP VideoChannel; struct device_map VideoChannel;
DEVICE_MAP KeyboardChannel; struct device_map KeyboardChannel;
DEVICE_MAP NetworkChannel; struct device_map NetworkChannel;
DEVICE_MAP StorageChannel; struct device_map StorageChannel;
DEVICE_MAP ConsoleChannel; struct device_map ConsoleChannel;
u32 PartitionIndex; u32 PartitionIndex;
u32 Pad; u32 Pad;
} GUEST_DEVICES; } GUEST_DEVICES;
......
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