Commit 2be1301b authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: hv: remove INTERNAL typedef

The INTERNAL typedef is 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 621d7fb7
...@@ -62,7 +62,7 @@ typedef struct _VMBUS_CHANNEL_PACKET_MULITPAGE_BUFFER { ...@@ -62,7 +62,7 @@ typedef struct _VMBUS_CHANNEL_PACKET_MULITPAGE_BUFFER {
// Routines // Routines
// //
INTERNAL int static int
VmbusChannelOpen( VmbusChannelOpen(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
UINT32 SendRingBufferSize, UINT32 SendRingBufferSize,
...@@ -73,12 +73,12 @@ VmbusChannelOpen( ...@@ -73,12 +73,12 @@ VmbusChannelOpen(
PVOID Context PVOID Context
); );
INTERNAL void static void
VmbusChannelClose( VmbusChannelClose(
VMBUS_CHANNEL *Channel VMBUS_CHANNEL *Channel
); );
INTERNAL int static int
VmbusChannelSendPacket( VmbusChannelSendPacket(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
const PVOID Buffer, const PVOID Buffer,
...@@ -88,7 +88,7 @@ VmbusChannelSendPacket( ...@@ -88,7 +88,7 @@ VmbusChannelSendPacket(
UINT32 Flags UINT32 Flags
); );
INTERNAL int static int
VmbusChannelSendPacketPageBuffer( VmbusChannelSendPacketPageBuffer(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
PAGE_BUFFER PageBuffers[], PAGE_BUFFER PageBuffers[],
...@@ -98,7 +98,7 @@ VmbusChannelSendPacketPageBuffer( ...@@ -98,7 +98,7 @@ VmbusChannelSendPacketPageBuffer(
UINT64 RequestId UINT64 RequestId
); );
INTERNAL int static int
VmbusChannelSendPacketMultiPageBuffer( VmbusChannelSendPacketMultiPageBuffer(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
MULTIPAGE_BUFFER *MultiPageBuffer, MULTIPAGE_BUFFER *MultiPageBuffer,
...@@ -107,7 +107,7 @@ VmbusChannelSendPacketMultiPageBuffer( ...@@ -107,7 +107,7 @@ VmbusChannelSendPacketMultiPageBuffer(
UINT64 RequestId UINT64 RequestId
); );
INTERNAL int static int
VmbusChannelEstablishGpadl( VmbusChannelEstablishGpadl(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
PVOID Kbuffer, // from kmalloc() PVOID Kbuffer, // from kmalloc()
...@@ -115,13 +115,13 @@ VmbusChannelEstablishGpadl( ...@@ -115,13 +115,13 @@ VmbusChannelEstablishGpadl(
UINT32 *GpadlHandle UINT32 *GpadlHandle
); );
INTERNAL int static int
VmbusChannelTeardownGpadl( VmbusChannelTeardownGpadl(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
UINT32 GpadlHandle UINT32 GpadlHandle
); );
INTERNAL int static int
VmbusChannelRecvPacket( VmbusChannelRecvPacket(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
PVOID Buffer, PVOID Buffer,
...@@ -130,7 +130,7 @@ VmbusChannelRecvPacket( ...@@ -130,7 +130,7 @@ VmbusChannelRecvPacket(
UINT64* RequestId UINT64* RequestId
); );
INTERNAL int static int
VmbusChannelRecvPacketRaw( VmbusChannelRecvPacketRaw(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
PVOID Buffer, PVOID Buffer,
...@@ -139,18 +139,18 @@ VmbusChannelRecvPacketRaw( ...@@ -139,18 +139,18 @@ VmbusChannelRecvPacketRaw(
UINT64* RequestId UINT64* RequestId
); );
INTERNAL void static void
VmbusChannelOnChannelEvent( VmbusChannelOnChannelEvent(
VMBUS_CHANNEL *Channel VMBUS_CHANNEL *Channel
); );
INTERNAL void static void
VmbusChannelGetDebugInfo( VmbusChannelGetDebugInfo(
VMBUS_CHANNEL *Channel, VMBUS_CHANNEL *Channel,
VMBUS_CHANNEL_DEBUG_INFO *DebugInfo VMBUS_CHANNEL_DEBUG_INFO *DebugInfo
); );
INTERNAL void static void
VmbusChannelOnTimer( VmbusChannelOnTimer(
void *Context void *Context
); );
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "VmbusPrivate.h" #include "VmbusPrivate.h"
INTERNAL int static int
IVmbusChannelOpen( IVmbusChannelOpen(
PDEVICE_OBJECT Device, PDEVICE_OBJECT Device,
UINT32 SendBufferSize, UINT32 SendBufferSize,
...@@ -44,7 +44,7 @@ IVmbusChannelOpen( ...@@ -44,7 +44,7 @@ IVmbusChannelOpen(
} }
INTERNAL void static void
IVmbusChannelClose( IVmbusChannelClose(
PDEVICE_OBJECT Device PDEVICE_OBJECT Device
) )
...@@ -53,7 +53,7 @@ IVmbusChannelClose( ...@@ -53,7 +53,7 @@ IVmbusChannelClose(
} }
INTERNAL int static int
IVmbusChannelSendPacket( IVmbusChannelSendPacket(
PDEVICE_OBJECT Device, PDEVICE_OBJECT Device,
const PVOID Buffer, const PVOID Buffer,
...@@ -71,7 +71,7 @@ IVmbusChannelSendPacket( ...@@ -71,7 +71,7 @@ IVmbusChannelSendPacket(
Flags); Flags);
} }
INTERNAL int static int
IVmbusChannelSendPacketPageBuffer( IVmbusChannelSendPacketPageBuffer(
PDEVICE_OBJECT Device, PDEVICE_OBJECT Device,
PAGE_BUFFER PageBuffers[], PAGE_BUFFER PageBuffers[],
...@@ -89,7 +89,7 @@ IVmbusChannelSendPacketPageBuffer( ...@@ -89,7 +89,7 @@ IVmbusChannelSendPacketPageBuffer(
RequestId); RequestId);
} }
INTERNAL int static int
IVmbusChannelSendPacketMultiPageBuffer( IVmbusChannelSendPacketMultiPageBuffer(
PDEVICE_OBJECT Device, PDEVICE_OBJECT Device,
MULTIPAGE_BUFFER *MultiPageBuffer, MULTIPAGE_BUFFER *MultiPageBuffer,
...@@ -105,7 +105,7 @@ IVmbusChannelSendPacketMultiPageBuffer( ...@@ -105,7 +105,7 @@ IVmbusChannelSendPacketMultiPageBuffer(
RequestId); RequestId);
} }
INTERNAL int static int
IVmbusChannelRecvPacket ( IVmbusChannelRecvPacket (
PDEVICE_OBJECT Device, PDEVICE_OBJECT Device,
PVOID Buffer, PVOID Buffer,
...@@ -121,7 +121,7 @@ IVmbusChannelRecvPacket ( ...@@ -121,7 +121,7 @@ IVmbusChannelRecvPacket (
RequestId); RequestId);
} }
INTERNAL int static int
IVmbusChannelRecvPacketRaw( IVmbusChannelRecvPacketRaw(
PDEVICE_OBJECT Device, PDEVICE_OBJECT Device,
PVOID Buffer, PVOID Buffer,
...@@ -137,7 +137,7 @@ IVmbusChannelRecvPacketRaw( ...@@ -137,7 +137,7 @@ IVmbusChannelRecvPacketRaw(
RequestId); RequestId);
} }
INTERNAL int static int
IVmbusChannelEstablishGpadl( IVmbusChannelEstablishGpadl(
PDEVICE_OBJECT Device, PDEVICE_OBJECT Device,
PVOID Buffer, PVOID Buffer,
...@@ -151,7 +151,7 @@ IVmbusChannelEstablishGpadl( ...@@ -151,7 +151,7 @@ IVmbusChannelEstablishGpadl(
GpadlHandle); GpadlHandle);
} }
INTERNAL int static int
IVmbusChannelTeardownGpadl( IVmbusChannelTeardownGpadl(
PDEVICE_OBJECT Device, PDEVICE_OBJECT Device,
UINT32 GpadlHandle UINT32 GpadlHandle
...@@ -162,7 +162,7 @@ IVmbusChannelTeardownGpadl( ...@@ -162,7 +162,7 @@ IVmbusChannelTeardownGpadl(
} }
INTERNAL void static void
GetChannelInterface( GetChannelInterface(
VMBUS_CHANNEL_INTERFACE *ChannelInterface VMBUS_CHANNEL_INTERFACE *ChannelInterface
) )
...@@ -180,7 +180,7 @@ GetChannelInterface( ...@@ -180,7 +180,7 @@ GetChannelInterface(
} }
INTERNAL void static void
GetChannelInfo( GetChannelInfo(
PDEVICE_OBJECT Device, PDEVICE_OBJECT Device,
DEVICE_INFO *DeviceInfo DEVICE_INFO *DeviceInfo
......
...@@ -27,12 +27,12 @@ ...@@ -27,12 +27,12 @@
#include "include/VmbusApi.h" #include "include/VmbusApi.h"
INTERNAL void static void
GetChannelInterface( GetChannelInterface(
VMBUS_CHANNEL_INTERFACE *ChannelInterface VMBUS_CHANNEL_INTERFACE *ChannelInterface
); );
INTERNAL void static void
GetChannelInfo( GetChannelInfo(
PDEVICE_OBJECT Device, PDEVICE_OBJECT Device,
DEVICE_INFO *DeviceInfo DEVICE_INFO *DeviceInfo
......
...@@ -128,27 +128,27 @@ typedef struct _VMBUS_CHANNEL_MSGINFO { ...@@ -128,27 +128,27 @@ typedef struct _VMBUS_CHANNEL_MSGINFO {
// Routines // Routines
// //
INTERNAL VMBUS_CHANNEL* static VMBUS_CHANNEL*
AllocVmbusChannel( AllocVmbusChannel(
void void
); );
INTERNAL void static void
FreeVmbusChannel( FreeVmbusChannel(
VMBUS_CHANNEL *Channel VMBUS_CHANNEL *Channel
); );
INTERNAL void static void
VmbusOnChannelMessage( VmbusOnChannelMessage(
void *Context void *Context
); );
INTERNAL int static int
VmbusChannelRequestOffers( VmbusChannelRequestOffers(
void void
); );
INTERNAL void static void
VmbusChannelReleaseUnattachedChannels( VmbusChannelReleaseUnattachedChannels(
void void
); );
......
...@@ -148,17 +148,17 @@ static inline void WriteMsr(int msr, UINT64 val) ...@@ -148,17 +148,17 @@ static inline void WriteMsr(int msr, UINT64 val)
// //
// Hv Interface // Hv Interface
// //
INTERNAL int static int
HvInit( HvInit(
VOID VOID
); );
INTERNAL VOID static VOID
HvCleanup( HvCleanup(
VOID VOID
); );
INTERNAL HV_STATUS static HV_STATUS
HvPostMessage( HvPostMessage(
HV_CONNECTION_ID connectionId, HV_CONNECTION_ID connectionId,
HV_MESSAGE_TYPE messageType, HV_MESSAGE_TYPE messageType,
...@@ -166,17 +166,17 @@ HvPostMessage( ...@@ -166,17 +166,17 @@ HvPostMessage(
SIZE_T payloadSize SIZE_T payloadSize
); );
INTERNAL HV_STATUS static HV_STATUS
HvSignalEvent( HvSignalEvent(
VOID VOID
); );
INTERNAL int static int
HvSynicInit( HvSynicInit(
UINT32 irqVector UINT32 irqVector
); );
INTERNAL VOID static VOID
HvSynicCleanup( HvSynicCleanup(
VOID VOID
); );
......
...@@ -69,33 +69,33 @@ typedef struct _RING_BUFFER_DEBUG_INFO { ...@@ -69,33 +69,33 @@ typedef struct _RING_BUFFER_DEBUG_INFO {
// Interface // Interface
// //
INTERNAL int static int
RingBufferInit( RingBufferInit(
RING_BUFFER_INFO *RingInfo, RING_BUFFER_INFO *RingInfo,
PVOID Buffer, PVOID Buffer,
UINT32 BufferLen UINT32 BufferLen
); );
INTERNAL void static void
RingBufferCleanup( RingBufferCleanup(
RING_BUFFER_INFO *RingInfo RING_BUFFER_INFO *RingInfo
); );
INTERNAL int static int
RingBufferWrite( RingBufferWrite(
RING_BUFFER_INFO *RingInfo, RING_BUFFER_INFO *RingInfo,
SG_BUFFER_LIST SgBuffers[], SG_BUFFER_LIST SgBuffers[],
UINT32 SgBufferCount UINT32 SgBufferCount
); );
INTERNAL int static int
RingBufferPeek( RingBufferPeek(
RING_BUFFER_INFO *RingInfo, RING_BUFFER_INFO *RingInfo,
PVOID Buffer, PVOID Buffer,
UINT32 BufferLen UINT32 BufferLen
); );
INTERNAL int static int
RingBufferRead( RingBufferRead(
RING_BUFFER_INFO *RingInfo, RING_BUFFER_INFO *RingInfo,
PVOID Buffer, PVOID Buffer,
...@@ -103,18 +103,18 @@ RingBufferRead( ...@@ -103,18 +103,18 @@ RingBufferRead(
UINT32 Offset UINT32 Offset
); );
INTERNAL UINT32 static UINT32
GetRingBufferInterruptMask( GetRingBufferInterruptMask(
RING_BUFFER_INFO *RingInfo RING_BUFFER_INFO *RingInfo
); );
INTERNAL void static void
DumpRingInfo( DumpRingInfo(
RING_BUFFER_INFO* RingInfo, RING_BUFFER_INFO* RingInfo,
char *Prefix char *Prefix
); );
INTERNAL void static void
RingBufferGetDebugInfo( RingBufferGetDebugInfo(
RING_BUFFER_INFO *RingInfo, RING_BUFFER_INFO *RingInfo,
RING_BUFFER_DEBUG_INFO *DebugInfo RING_BUFFER_DEBUG_INFO *DebugInfo
......
...@@ -25,10 +25,6 @@ ...@@ -25,10 +25,6 @@
#ifndef _VMBUS_PRIVATE_H_ #ifndef _VMBUS_PRIVATE_H_
#define _VMBUS_PRIVATE_H_ #define _VMBUS_PRIVATE_H_
#ifndef INTERNAL
#define INTERNAL static
#endif
#include "Hv.h" #include "Hv.h"
#include "include/VmbusApi.h" #include "include/VmbusApi.h"
#include "Channel.h" #include "Channel.h"
...@@ -114,25 +110,25 @@ extern VMBUS_CONNECTION gVmbusConnection; ...@@ -114,25 +110,25 @@ extern VMBUS_CONNECTION gVmbusConnection;
// //
// General vmbus interface // General vmbus interface
// //
INTERNAL DEVICE_OBJECT* static DEVICE_OBJECT*
VmbusChildDeviceCreate( VmbusChildDeviceCreate(
GUID deviceType, GUID deviceType,
GUID deviceInstance, GUID deviceInstance,
void *context); void *context);
INTERNAL int static int
VmbusChildDeviceAdd( VmbusChildDeviceAdd(
DEVICE_OBJECT* Device); DEVICE_OBJECT* Device);
INTERNAL void static void
VmbusChildDeviceRemove( VmbusChildDeviceRemove(
DEVICE_OBJECT* Device); DEVICE_OBJECT* Device);
//INTERNAL void //static void
//VmbusChildDeviceDestroy( //VmbusChildDeviceDestroy(
// DEVICE_OBJECT*); // DEVICE_OBJECT*);
INTERNAL VMBUS_CHANNEL* static VMBUS_CHANNEL*
GetChannelFromRelId( GetChannelFromRelId(
UINT32 relId UINT32 relId
); );
...@@ -140,28 +136,28 @@ GetChannelFromRelId( ...@@ -140,28 +136,28 @@ GetChannelFromRelId(
// //
// Connection interface // Connection interface
// //
INTERNAL int static int
VmbusConnect( VmbusConnect(
VOID VOID
); );
INTERNAL int static int
VmbusDisconnect( VmbusDisconnect(
VOID VOID
); );
INTERNAL int static int
VmbusPostMessage( VmbusPostMessage(
PVOID buffer, PVOID buffer,
SIZE_T bufSize SIZE_T bufSize
); );
INTERNAL int static int
VmbusSetEvent( VmbusSetEvent(
UINT32 childRelId UINT32 childRelId
); );
INTERNAL VOID static VOID
VmbusOnEvents( VmbusOnEvents(
VOID VOID
); );
......
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