Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236238
b: refs/heads/master
c: 94fcc88
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Mar 3, 2011
1 parent 99d6611 commit 52b209a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 75 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa003500ec7a057e555a1c80d68865d00fa8142c
refs/heads/master: 94fcc88868e4068d3fe9aa0d719a380bfa44a0a0
37 changes: 36 additions & 1 deletion trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,44 @@
#include "version_info.h"
#include "vmbus.h"
#include "vmbus_api.h"
#include "mousevsc_api.h"
#include "channel.h"
#include "vmbus_packet_format.h"


/*
* Data types
*/
struct input_dev_info {
unsigned short VendorID;
unsigned short ProductID;
unsigned short VersionNumber;
char Name[128];
};

/* Represents the input vsc driver */
struct mousevsc_drv_obj {
struct hv_driver Base; // Must be the first field
/*
* This is set by the caller to allow us to callback when
* we receive a packet from the "wire"
*/
void (*OnDeviceInfo)(struct hv_device *dev,
struct input_dev_info* info);
void (*OnInputReport)(struct hv_device *dev, void* packet, u32 len);
void (*OnReportDescriptor)(struct hv_device *dev,
void* packet, u32 len);
/* Specific to this driver */
int (*OnOpen)(struct hv_device *Device);
int (*OnClose)(struct hv_device *Device);
void *Context;
};


/*
* Interface
*/
int mouse_vsc_initialize(struct hv_driver *drv);

/* The maximum size of a synthetic input message. */
#define SYNTHHID_MAX_INPUT_REPORT_SIZE 16

Expand Down Expand Up @@ -119,6 +152,8 @@ typedef struct {

#pragma pack(pop)

#define INPUTVSC_SEND_RING_BUFFER_SIZE 10*PAGE_SIZE
#define INPUTVSC_RECV_RING_BUFFER_SIZE 10*PAGE_SIZE

#define NBITS(x) (((x)/BITS_PER_LONG)+1)

Expand Down
73 changes: 0 additions & 73 deletions trunk/drivers/staging/hv/mousevsc_api.h

This file was deleted.

0 comments on commit 52b209a

Please sign in to comment.