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: Greg Kroah-Hartman <gregkh@suse.de>
// Routines
//
-INTERNAL int
+static int
VmbusChannelOpen(
VMBUS_CHANNEL *Channel,
UINT32 SendRingBufferSize,
PVOID Context
);
-INTERNAL void
+static void
VmbusChannelClose(
VMBUS_CHANNEL *Channel
);
-INTERNAL int
+static int
VmbusChannelSendPacket(
VMBUS_CHANNEL *Channel,
const PVOID Buffer,
UINT32 Flags
);
-INTERNAL int
+static int
VmbusChannelSendPacketPageBuffer(
VMBUS_CHANNEL *Channel,
PAGE_BUFFER PageBuffers[],
UINT64 RequestId
);
-INTERNAL int
+static int
VmbusChannelSendPacketMultiPageBuffer(
VMBUS_CHANNEL *Channel,
MULTIPAGE_BUFFER *MultiPageBuffer,
UINT64 RequestId
);
-INTERNAL int
+static int
VmbusChannelEstablishGpadl(
VMBUS_CHANNEL *Channel,
PVOID Kbuffer, // from kmalloc()
UINT32 *GpadlHandle
);
-INTERNAL int
+static int
VmbusChannelTeardownGpadl(
VMBUS_CHANNEL *Channel,
UINT32 GpadlHandle
);
-INTERNAL int
+static int
VmbusChannelRecvPacket(
VMBUS_CHANNEL *Channel,
PVOID Buffer,
UINT64* RequestId
);
-INTERNAL int
+static int
VmbusChannelRecvPacketRaw(
VMBUS_CHANNEL *Channel,
PVOID Buffer,
UINT64* RequestId
);
-INTERNAL void
+static void
VmbusChannelOnChannelEvent(
VMBUS_CHANNEL *Channel
);
-INTERNAL void
+static void
VmbusChannelGetDebugInfo(
VMBUS_CHANNEL *Channel,
VMBUS_CHANNEL_DEBUG_INFO *DebugInfo
);
-INTERNAL void
+static void
VmbusChannelOnTimer(
void *Context
);
#include "VmbusPrivate.h"
-INTERNAL int
+static int
IVmbusChannelOpen(
PDEVICE_OBJECT Device,
UINT32 SendBufferSize,
}
-INTERNAL void
+static void
IVmbusChannelClose(
PDEVICE_OBJECT Device
)
}
-INTERNAL int
+static int
IVmbusChannelSendPacket(
PDEVICE_OBJECT Device,
const PVOID Buffer,
Flags);
}
-INTERNAL int
+static int
IVmbusChannelSendPacketPageBuffer(
PDEVICE_OBJECT Device,
PAGE_BUFFER PageBuffers[],
RequestId);
}
-INTERNAL int
+static int
IVmbusChannelSendPacketMultiPageBuffer(
PDEVICE_OBJECT Device,
MULTIPAGE_BUFFER *MultiPageBuffer,
RequestId);
}
-INTERNAL int
+static int
IVmbusChannelRecvPacket (
PDEVICE_OBJECT Device,
PVOID Buffer,
RequestId);
}
-INTERNAL int
+static int
IVmbusChannelRecvPacketRaw(
PDEVICE_OBJECT Device,
PVOID Buffer,
RequestId);
}
-INTERNAL int
+static int
IVmbusChannelEstablishGpadl(
PDEVICE_OBJECT Device,
PVOID Buffer,
GpadlHandle);
}
-INTERNAL int
+static int
IVmbusChannelTeardownGpadl(
PDEVICE_OBJECT Device,
UINT32 GpadlHandle
}
-INTERNAL void
+static void
GetChannelInterface(
VMBUS_CHANNEL_INTERFACE *ChannelInterface
)
}
-INTERNAL void
+static void
GetChannelInfo(
PDEVICE_OBJECT Device,
DEVICE_INFO *DeviceInfo
#include "include/VmbusApi.h"
-INTERNAL void
+static void
GetChannelInterface(
VMBUS_CHANNEL_INTERFACE *ChannelInterface
);
-INTERNAL void
+static void
GetChannelInfo(
PDEVICE_OBJECT Device,
DEVICE_INFO *DeviceInfo
// Routines
//
-INTERNAL VMBUS_CHANNEL*
+static VMBUS_CHANNEL*
AllocVmbusChannel(
void
);
-INTERNAL void
+static void
FreeVmbusChannel(
VMBUS_CHANNEL *Channel
);
-INTERNAL void
+static void
VmbusOnChannelMessage(
void *Context
);
-INTERNAL int
+static int
VmbusChannelRequestOffers(
void
);
-INTERNAL void
+static void
VmbusChannelReleaseUnattachedChannels(
void
);
//
// Hv Interface
//
-INTERNAL int
+static int
HvInit(
VOID
);
-INTERNAL VOID
+static VOID
HvCleanup(
VOID
);
-INTERNAL HV_STATUS
+static HV_STATUS
HvPostMessage(
HV_CONNECTION_ID connectionId,
HV_MESSAGE_TYPE messageType,
SIZE_T payloadSize
);
-INTERNAL HV_STATUS
+static HV_STATUS
HvSignalEvent(
VOID
);
-INTERNAL int
+static int
HvSynicInit(
UINT32 irqVector
);
-INTERNAL VOID
+static VOID
HvSynicCleanup(
VOID
);
// Interface
//
-INTERNAL int
+static int
RingBufferInit(
RING_BUFFER_INFO *RingInfo,
PVOID Buffer,
UINT32 BufferLen
);
-INTERNAL void
+static void
RingBufferCleanup(
RING_BUFFER_INFO *RingInfo
);
-INTERNAL int
+static int
RingBufferWrite(
RING_BUFFER_INFO *RingInfo,
SG_BUFFER_LIST SgBuffers[],
UINT32 SgBufferCount
);
-INTERNAL int
+static int
RingBufferPeek(
RING_BUFFER_INFO *RingInfo,
PVOID Buffer,
UINT32 BufferLen
);
-INTERNAL int
+static int
RingBufferRead(
RING_BUFFER_INFO *RingInfo,
PVOID Buffer,
UINT32 Offset
);
-INTERNAL UINT32
+static UINT32
GetRingBufferInterruptMask(
RING_BUFFER_INFO *RingInfo
);
-INTERNAL void
+static void
DumpRingInfo(
RING_BUFFER_INFO* RingInfo,
char *Prefix
);
-INTERNAL void
+static void
RingBufferGetDebugInfo(
RING_BUFFER_INFO *RingInfo,
RING_BUFFER_DEBUG_INFO *DebugInfo
#ifndef _VMBUS_PRIVATE_H_
#define _VMBUS_PRIVATE_H_
-#ifndef INTERNAL
-#define INTERNAL static
-#endif
-
#include "Hv.h"
#include "include/VmbusApi.h"
#include "Channel.h"
//
// General vmbus interface
//
-INTERNAL DEVICE_OBJECT*
+static DEVICE_OBJECT*
VmbusChildDeviceCreate(
GUID deviceType,
GUID deviceInstance,
void *context);
-INTERNAL int
+static int
VmbusChildDeviceAdd(
DEVICE_OBJECT* Device);
-INTERNAL void
+static void
VmbusChildDeviceRemove(
DEVICE_OBJECT* Device);
-//INTERNAL void
+//static void
//VmbusChildDeviceDestroy(
// DEVICE_OBJECT*);
-INTERNAL VMBUS_CHANNEL*
+static VMBUS_CHANNEL*
GetChannelFromRelId(
UINT32 relId
);
//
// Connection interface
//
-INTERNAL int
+static int
VmbusConnect(
VOID
);
-INTERNAL int
+static int
VmbusDisconnect(
VOID
);
-INTERNAL int
+static int
VmbusPostMessage(
PVOID buffer,
SIZE_T bufSize
);
-INTERNAL int
+static int
VmbusSetEvent(
UINT32 childRelId
);
-INTERNAL VOID
+static VOID
VmbusOnEvents(
VOID
);