*
*/
-
+#include <linux/kernel.h>
#include "StorVsc.c"
static const char* gBlkDriverName="blkvsc";
*
*/
-
+#include <linux/kernel.h>
#include "include/osd.h"
#include "include/logging.h"
)
{
HV_MONITOR_PAGE *monitorPage;
- UINT8 monitorGroup = (UINT8)Channel->OfferMsg.MonitorId / 32;
- UINT8 monitorOffset = (UINT8)Channel->OfferMsg.MonitorId % 32;
+ u8 monitorGroup = (u8)Channel->OfferMsg.MonitorId / 32;
+ u8 monitorOffset = (u8)Channel->OfferMsg.MonitorId % 32;
//UINT32 monitorBit = 1 << monitorOffset;
DebugInfo->RelId = Channel->OfferMsg.ChildRelId;
DPRINT_DBG(VMBUS, "channel object allocated - %p", newChannel);
memcpy(&newChannel->OfferMsg, offer, sizeof(VMBUS_CHANNEL_OFFER_CHANNEL));
- newChannel->MonitorGroup = (UINT8)offer->MonitorId / 32;
- newChannel->MonitorBit = (UINT8)offer->MonitorId % 32;
+ newChannel->MonitorGroup = (u8)offer->MonitorId / 32;
+ newChannel->MonitorBit = (u8)offer->MonitorId % 32;
// TODO: Make sure the offer comes from our parent partition
WorkQueueQueueWorkItem(newChannel->ControlWQ, VmbusChannelProcessOffer, newChannel);
VMBUS_CHANNEL_OFFER_CHANNEL OfferMsg;
// These are based on the OfferMsg.MonitorId. Save it here for easy access.
- UINT8 MonitorGroup;
- UINT8 MonitorBit;
+ u8 MonitorGroup;
+ u8 MonitorBit;
UINT32 RingBufferGpadlHandle;
#define KERNEL_2_6_27
+#include <linux/kernel.h>
#include "include/logging.h"
#include "NetVsc.h"
#include "RndisFilter.h"
volatile UINT32 ReadIndex; // Offset in bytes from the start of ring data below
volatile UINT32 InterruptMask;
- UINT8 Reserved[4084]; // Pad it to PAGE_SIZE so that data starts on page boundary
+ u8 Reserved[4084]; // Pad it to PAGE_SIZE so that data starts on page boundary
// NOTE: The InterruptMask field is used only for channels but since our vmbus connection
// also uses this data structure and its data starts here, we commented out this field.
// volatile UINT32 InterruptMask;
// Ring data starts here + RingDataStartOffset !!! DO NOT place any fields below this !!!
- UINT8 Buffer[0];
+ u8 Buffer[0];
} STRUCT_PACKED RING_BUFFER;
typedef struct _RING_BUFFER_INFO {
#define KERNEL_2_6_27
+#include <linux/kernel.h>
#include "include/logging.h"
#include "include/NetVscApi.h"
#define KERNEL_2_6_27
+#include <linux/kernel.h>
#include "include/logging.h"
#include "include/StorVscApi.h"
*
*/
-
+#include <linux/kernel.h>
#include "include/logging.h"
#include "VersionInfo.h"
#include "VmbusPrivate.h"
VMBUS_CHANNEL_MESSAGE_HEADER Header;
VMBUS_CHANNEL_OFFER Offer;
UINT32 ChildRelId;
- UINT8 MonitorId;
+ u8 MonitorId;
BOOLEAN MonitorAllocated;
} VMBUS_CHANNEL_OFFER_CHANNEL, *PVMBUS_CHANNEL_OFFER_CHANNEL;
typedef union _HV_MESSAGE_FLAGS
{
- UINT8 AsUINT8;
+ u8 Asu8;
struct
{
- UINT8 MessagePending:1;
- UINT8 Reserved:7;
+ u8 MessagePending:1;
+ u8 Reserved:7;
};
} HV_MESSAGE_FLAGS, *PHV_MESSAGE_FLAGS;
typedef struct _HV_MESSAGE_HEADER
{
HV_MESSAGE_TYPE MessageType;
- UINT8 PayloadSize;
+ u8 PayloadSize;
HV_MESSAGE_FLAGS MessageFlags;
- UINT8 Reserved[2];
+ u8 Reserved[2];
union
{
HV_PARTITION_ID Sender;
typedef union _HV_SYNIC_EVENT_FLAGS
{
- UINT8 Flags8[HV_EVENT_FLAGS_BYTE_COUNT];
+ u8 Flags8[HV_EVENT_FLAGS_BYTE_COUNT];
UINT32 Flags32[HV_EVENT_FLAGS_DWORD_COUNT];
} HV_SYNIC_EVENT_FLAGS, *PHV_SYNIC_EVENT_FLAGS;
HV_MONITOR_PARAMETER Parameter[4][32];
- UINT8 RsvdZ4[1984];
+ u8 RsvdZ4[1984];
} HV_MONITOR_PAGE, *PHV_MONITOR_PAGE;
UINT32 Bus;
UINT32 TargetId;
UINT32 LunId;
- UINT8* Cdb;
+ u8 * Cdb;
UINT32 CdbLen;
UINT32 Status;
UINT32 BytesXfer;
VMRCB Control;
};
- UINT8 Reserved[PAGE_SIZE];
+ u8 Reserved[PAGE_SIZE];
};
//
// Beginning of the ring data. Note: It must be guaranteed that
// this data does not share a page with the control structure.
//
- UINT8 Data[1];
+ u8 Data[1];
} VMRING, *PVMRING;
#pragma pack(push, 1)
UINT16 TransferPageSetId;
BOOLEAN SenderOwnsSet;
- UINT8 Reserved;
+ u8 Reserved;
UINT32 RangeCount;
VMTRANSFER_PAGE_RANGE Ranges[1];
//
// unsigned types
//
-typedef unsigned char UINT8;
typedef unsigned short UINT16;
typedef unsigned int UINT32;
#ifdef __x86_64__
//
// signed types
//
-typedef char INT8;
typedef short INT16;
typedef int INT32;
#ifdef __x86_64__