Commit 5cd508bc authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: hv: remove UINT16 and INT16 typedefs

The UINT16 and INT16 typedefs are now removed from the Hyper-V driver
code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5654e932
...@@ -777,7 +777,7 @@ VmbusChannelSendPacket( ...@@ -777,7 +777,7 @@ VmbusChannelSendPacket(
desc.Type = Type;//VmbusPacketTypeDataInBand; desc.Type = Type;//VmbusPacketTypeDataInBand;
desc.Flags = Flags;//VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED; desc.Flags = Flags;//VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED;
desc.DataOffset8 = sizeof(VMPACKET_DESCRIPTOR) >> 3; // in 8-bytes granularity desc.DataOffset8 = sizeof(VMPACKET_DESCRIPTOR) >> 3; // in 8-bytes granularity
desc.Length8 = (UINT16)(packetLenAligned >> 3); desc.Length8 = (u16)(packetLenAligned >> 3);
desc.TransactionId = RequestId; desc.TransactionId = RequestId;
bufferList[0].Data = &desc; bufferList[0].Data = &desc;
...@@ -851,7 +851,7 @@ VmbusChannelSendPacketPageBuffer( ...@@ -851,7 +851,7 @@ VmbusChannelSendPacketPageBuffer(
desc.Type = VmbusPacketTypeDataUsingGpaDirect; desc.Type = VmbusPacketTypeDataUsingGpaDirect;
desc.Flags = VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED; desc.Flags = VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED;
desc.DataOffset8 = descSize >> 3; // in 8-bytes grandularity desc.DataOffset8 = descSize >> 3; // in 8-bytes grandularity
desc.Length8 = (UINT16)(packetLenAligned >> 3); desc.Length8 = (u16)(packetLenAligned >> 3);
desc.TransactionId = RequestId; desc.TransactionId = RequestId;
desc.RangeCount = PageCount; desc.RangeCount = PageCount;
...@@ -936,7 +936,7 @@ VmbusChannelSendPacketMultiPageBuffer( ...@@ -936,7 +936,7 @@ VmbusChannelSendPacketMultiPageBuffer(
desc.Type = VmbusPacketTypeDataUsingGpaDirect; desc.Type = VmbusPacketTypeDataUsingGpaDirect;
desc.Flags = VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED; desc.Flags = VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED;
desc.DataOffset8 = descSize >> 3; // in 8-bytes grandularity desc.DataOffset8 = descSize >> 3; // in 8-bytes grandularity
desc.Length8 = (UINT16)(packetLenAligned >> 3); desc.Length8 = (u16)(packetLenAligned >> 3);
desc.TransactionId = RequestId; desc.TransactionId = RequestId;
desc.RangeCount = 1; desc.RangeCount = 1;
......
...@@ -33,10 +33,10 @@ ...@@ -33,10 +33,10 @@
// The format must be the same as VMDATA_GPA_DIRECT // The format must be the same as VMDATA_GPA_DIRECT
typedef struct _VMBUS_CHANNEL_PACKET_PAGE_BUFFER { typedef struct _VMBUS_CHANNEL_PACKET_PAGE_BUFFER {
UINT16 Type; u16 Type;
UINT16 DataOffset8; u16 DataOffset8;
UINT16 Length8; u16 Length8;
UINT16 Flags; u16 Flags;
UINT64 TransactionId; UINT64 TransactionId;
UINT32 Reserved; UINT32 Reserved;
UINT32 RangeCount; UINT32 RangeCount;
...@@ -46,10 +46,10 @@ typedef struct _VMBUS_CHANNEL_PACKET_PAGE_BUFFER { ...@@ -46,10 +46,10 @@ typedef struct _VMBUS_CHANNEL_PACKET_PAGE_BUFFER {
// The format must be the same as VMDATA_GPA_DIRECT // The format must be the same as VMDATA_GPA_DIRECT
typedef struct _VMBUS_CHANNEL_PACKET_MULITPAGE_BUFFER { typedef struct _VMBUS_CHANNEL_PACKET_MULITPAGE_BUFFER {
UINT16 Type; u16 Type;
UINT16 DataOffset8; u16 DataOffset8;
UINT16 Length8; u16 Length8;
UINT16 Flags; u16 Flags;
UINT64 TransactionId; UINT64 TransactionId;
UINT32 Reserved; UINT32 Reserved;
UINT32 RangeCount; // Always 1 in this case UINT32 RangeCount; // Always 1 in this case
......
...@@ -188,8 +188,8 @@ typedef struct _VMBUS_CHANNEL_GPADL_HEADER ...@@ -188,8 +188,8 @@ typedef struct _VMBUS_CHANNEL_GPADL_HEADER
VMBUS_CHANNEL_MESSAGE_HEADER Header; VMBUS_CHANNEL_MESSAGE_HEADER Header;
UINT32 ChildRelId; UINT32 ChildRelId;
UINT32 Gpadl; UINT32 Gpadl;
UINT16 RangeBufLen; u16 RangeBufLen;
UINT16 RangeCount; u16 RangeCount;
GPA_RANGE Range[0]; GPA_RANGE Range[0];
} VMBUS_CHANNEL_GPADL_HEADER, *PVMBUS_CHANNEL_GPADL_HEADER; } VMBUS_CHANNEL_GPADL_HEADER, *PVMBUS_CHANNEL_GPADL_HEADER;
......
...@@ -55,6 +55,6 @@ typedef struct _HV_INPUT_POST_MESSAGE ...@@ -55,6 +55,6 @@ typedef struct _HV_INPUT_POST_MESSAGE
typedef struct _HV_INPUT_SIGNAL_EVENT typedef struct _HV_INPUT_SIGNAL_EVENT
{ {
HV_CONNECTION_ID ConnectionId; HV_CONNECTION_ID ConnectionId;
UINT16 FlagNumber; u16 FlagNumber;
UINT16 RsvdZ; u16 RsvdZ;
} HV_INPUT_SIGNAL_EVENT, *PHV_INPUT_SIGNAL_EVENT; } HV_INPUT_SIGNAL_EVENT, *PHV_INPUT_SIGNAL_EVENT;
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
// //
// Status codes for hypervisor operations. // Status codes for hypervisor operations.
// //
typedef UINT16 HV_STATUS, *PHV_STATUS; typedef u16 HV_STATUS, *PHV_STATUS;
// //
// MessageId: HV_STATUS_SUCCESS // MessageId: HV_STATUS_SUCCESS
......
...@@ -217,8 +217,8 @@ typedef struct _HV_PORT_INFO ...@@ -217,8 +217,8 @@ typedef struct _HV_PORT_INFO
{ {
HV_SYNIC_SINT_INDEX TargetSint; HV_SYNIC_SINT_INDEX TargetSint;
HV_VP_INDEX TargetVp; HV_VP_INDEX TargetVp;
UINT16 BaseFlagNumber; u16 BaseFlagNumber;
UINT16 FlagCount; u16 FlagCount;
UINT32 RsvdZ; UINT32 RsvdZ;
} EventPortInfo; } EventPortInfo;
...@@ -431,8 +431,8 @@ typedef union _HV_MONITOR_TRIGGER_GROUP ...@@ -431,8 +431,8 @@ typedef union _HV_MONITOR_TRIGGER_GROUP
typedef struct _HV_MONITOR_PARAMETER typedef struct _HV_MONITOR_PARAMETER
{ {
HV_CONNECTION_ID ConnectionId; HV_CONNECTION_ID ConnectionId;
UINT16 FlagNumber; u16 FlagNumber;
UINT16 RsvdZ; u16 RsvdZ;
} HV_MONITOR_PARAMETER, *PHV_MONITOR_PARAMETER; } HV_MONITOR_PARAMETER, *PHV_MONITOR_PARAMETER;
typedef union _HV_MONITOR_TRIGGER_STATE typedef union _HV_MONITOR_TRIGGER_STATE
...@@ -478,7 +478,7 @@ typedef struct _HV_MONITOR_PAGE ...@@ -478,7 +478,7 @@ typedef struct _HV_MONITOR_PAGE
INT32 NextCheckTime[4][32]; INT32 NextCheckTime[4][32];
UINT16 Latency[4][32]; u16 Latency[4][32];
UINT64 RsvdZ3[32]; UINT64 RsvdZ3[32];
HV_MONITOR_PARAMETER Parameter[4][32]; HV_MONITOR_PARAMETER Parameter[4][32];
......
...@@ -69,8 +69,8 @@ typedef struct ...@@ -69,8 +69,8 @@ typedef struct
UINT64 InterruptLatencyIn100nsUnits; UINT64 InterruptLatencyIn100nsUnits;
UINT32 InterfaceRevision; UINT32 InterfaceRevision;
UINT32 ServerContextAreaSize; // in bytes UINT32 ServerContextAreaSize; // in bytes
UINT16 ChannelFlags; u16 ChannelFlags;
UINT16 MmioMegabytes; // in bytes * 1024 * 1024 u16 MmioMegabytes; // in bytes * 1024 * 1024
union union
{ {
......
...@@ -79,10 +79,10 @@ typedef struct ...@@ -79,10 +79,10 @@ typedef struct
typedef struct typedef struct
{ {
UINT16 Type; u16 Type;
UINT16 DataOffset8; u16 DataOffset8;
UINT16 Length8; u16 Length8;
UINT16 Flags; u16 Flags;
UINT64 TransactionId; UINT64 TransactionId;
} VMPACKET_DESCRIPTOR, *PVMPACKET_DESCRIPTOR; } VMPACKET_DESCRIPTOR, *PVMPACKET_DESCRIPTOR;
...@@ -112,7 +112,7 @@ typedef struct VMTRANSFER_PAGE_PACKET_HEADER { ...@@ -112,7 +112,7 @@ typedef struct VMTRANSFER_PAGE_PACKET_HEADER {
#endif #endif
UINT16 TransferPageSetId; u16 TransferPageSetId;
BOOLEAN SenderOwnsSet; BOOLEAN SenderOwnsSet;
u8 Reserved; u8 Reserved;
UINT32 RangeCount; UINT32 RangeCount;
...@@ -152,8 +152,8 @@ typedef struct _VMADD_REMOVE_TRANSFER_PAGE_SET { ...@@ -152,8 +152,8 @@ typedef struct _VMADD_REMOVE_TRANSFER_PAGE_SET {
#endif #endif
UINT32 Gpadl; UINT32 Gpadl;
UINT16 TransferPageSetId; u16 TransferPageSetId;
UINT16 Reserved; u16 Reserved;
} VMADD_REMOVE_TRANSFER_PAGE_SET, *PVMADD_REMOVE_TRANSFER_PAGE_SET; } VMADD_REMOVE_TRANSFER_PAGE_SET, *PVMADD_REMOVE_TRANSFER_PAGE_SET;
......
...@@ -144,7 +144,7 @@ typedef struct _NVSP_1_MESSAGE_SEND_NDIS_VERSION ...@@ -144,7 +144,7 @@ typedef struct _NVSP_1_MESSAGE_SEND_NDIS_VERSION
typedef struct _NVSP_1_MESSAGE_SEND_RECEIVE_BUFFER typedef struct _NVSP_1_MESSAGE_SEND_RECEIVE_BUFFER
{ {
GPADL_HANDLE GpadlHandle; GPADL_HANDLE GpadlHandle;
UINT16 Id; u16 Id;
} NVSP_1_MESSAGE_SEND_RECEIVE_BUFFER, *PNVSP_1_MESSAGE_SEND_RECEIVE_BUFFER; } NVSP_1_MESSAGE_SEND_RECEIVE_BUFFER, *PNVSP_1_MESSAGE_SEND_RECEIVE_BUFFER;
typedef struct _NVSP_1_RECEIVE_BUFFER_SECTION typedef struct _NVSP_1_RECEIVE_BUFFER_SECTION
...@@ -192,7 +192,7 @@ typedef struct _NVSP_1_MESSAGE_SEND_RECEIVE_BUFFER_COMPLETE ...@@ -192,7 +192,7 @@ typedef struct _NVSP_1_MESSAGE_SEND_RECEIVE_BUFFER_COMPLETE
// //
typedef struct _NVSP_1_MESSAGE_REVOKE_RECEIVE_BUFFER typedef struct _NVSP_1_MESSAGE_REVOKE_RECEIVE_BUFFER
{ {
UINT16 Id; u16 Id;
} NVSP_1_MESSAGE_REVOKE_RECEIVE_BUFFER, *PNVSP_1_MESSAGE_REVOKE_RECEIVE_BUFFER; } NVSP_1_MESSAGE_REVOKE_RECEIVE_BUFFER, *PNVSP_1_MESSAGE_REVOKE_RECEIVE_BUFFER;
// //
...@@ -203,7 +203,7 @@ typedef struct _NVSP_1_MESSAGE_REVOKE_RECEIVE_BUFFER ...@@ -203,7 +203,7 @@ typedef struct _NVSP_1_MESSAGE_REVOKE_RECEIVE_BUFFER
typedef struct _NVSP_1_MESSAGE_SEND_SEND_BUFFER typedef struct _NVSP_1_MESSAGE_SEND_SEND_BUFFER
{ {
GPADL_HANDLE GpadlHandle; GPADL_HANDLE GpadlHandle;
UINT16 Id; u16 Id;
} NVSP_1_MESSAGE_SEND_SEND_BUFFER, *PNVSP_1_MESSAGE_SEND_SEND_BUFFER; } NVSP_1_MESSAGE_SEND_SEND_BUFFER, *PNVSP_1_MESSAGE_SEND_SEND_BUFFER;
// //
...@@ -231,7 +231,7 @@ typedef struct _NVSP_1_MESSAGE_SEND_SEND_BUFFER_COMPLETE ...@@ -231,7 +231,7 @@ typedef struct _NVSP_1_MESSAGE_SEND_SEND_BUFFER_COMPLETE
// //
typedef struct _NVSP_1_MESSAGE_REVOKE_SEND_BUFFER typedef struct _NVSP_1_MESSAGE_REVOKE_SEND_BUFFER
{ {
UINT16 Id; u16 Id;
} NVSP_1_MESSAGE_REVOKE_SEND_BUFFER, *PNVSP_1_MESSAGE_REVOKE_SEND_BUFFER; } NVSP_1_MESSAGE_REVOKE_SEND_BUFFER, *PNVSP_1_MESSAGE_REVOKE_SEND_BUFFER;
// //
......
...@@ -97,7 +97,6 @@ typedef struct _DLIST_ENTRY { ...@@ -97,7 +97,6 @@ typedef struct _DLIST_ENTRY {
// //
// unsigned types // unsigned types
// //
typedef unsigned short UINT16;
typedef unsigned int UINT32; typedef unsigned int UINT32;
#ifdef __x86_64__ #ifdef __x86_64__
typedef unsigned long UINT64; typedef unsigned long UINT64;
...@@ -113,7 +112,6 @@ typedef unsigned char UCHAR; ...@@ -113,7 +112,6 @@ typedef unsigned char UCHAR;
// //
// signed types // signed types
// //
typedef short INT16;
typedef int INT32; typedef int INT32;
#ifdef __x86_64__ #ifdef __x86_64__
typedef long INT64; typedef long INT64;
......
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