资源简介
monihid.c
代码片段和文件信息
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include “ch9.h“////
#include
#include “zebra_mouse.h“
#include “gadget_chips.h“
#include “usbstring.c“
#include “config.c“
#include “epautoconf.c“
/*...........................................................*/
/*...........................................................*/
#define DRIVER_DESC “multitouch“
#define DRIVER_VERSION “2012.02.10“
static const char shortname [] = “multitouch“;
static const char driver_desc [] = DRIVER_DESC;
static dev_t zebra_mouse_devno;
int is_connect = 0;
static struct class *usb_gadget_class;
/*...........................................................*/
static ushort idVendor;
static ushort idProduct;
static ushort bcdDevice;
static char *iManufacturer;
static char *iProduct;
static char * iSerialNum;
static char * iPNPstring;
/*...........................................................*/
struct zebra_mouse_dev {
spinlock_t lock; /* lock this structure */
/* lock buffer lists during read/write calls */
spinlock_t lock_zebra_mouse_io;
struct usb_gadget *gadget;
struct usb_request *req; /* for control responses */
u8 config;
s8 interface;
struct usb_ep *in_ep;
const struct usb_endpoint_descriptor *in;//进入的端点描述符
/* wait until there is data to be read. */
wait_queue_head_t rx_wait;
struct list_head tx_reqs; /* List of free TX structs?????? */
struct list_head tx_reqs_active; /* List of Active TX xfers ??????*/
/* Wait until there are write buffers available to use. */
wait_queue_head_t tx_wait;
/* Wait until all write buffers have been sent. */
wait_queue_head_t tx_flush_wait;
struct usb_request *current_rx_req;
size_t current_rx_bytes;
u8 *current_rx_buf;
u8 zebra_mouse_status;
u8 reset_zebra_mouse;
struct cdev zebra_mouse_cdev;//字符设备
struct device *pdev;//?????
u8 zebra_mouse_cdev_open;//?????
wait_queue_head_t wait;
};
static struct zebra_mouse_dev zebra_mouse;
/*...........................................................*/
static struct usb_endpoint_descriptor hs_ep_out_desc = {
.bLength = USB_DT_ENDPOINT_SIZE//0x07
.bDescriptorType = USB_DT_ENDPOINT//0x05
.bEndpointAddress = 0x01
.bmAttributes = USB_ENDPOINT_XFER_BULK//0x02
.wMaxPacketSize = cpu_to_le16(512)
}
- 上一篇:算法导论上机代码和报告
- 下一篇:交易开拓者TB程序化策略R_Breaker改进版
相关资源
- sound.properties
- iso.txt
- MaskWindow.zip
- VS2010中文旗舰版(破解版).txt
- probability-sheldon-ross-solution-manual.pdf
- sc.zip
- cn4020026_2422865.zip
- cklover1_10516440.zip
- CorelProductsKeyGen20180618全家桶注册机.
- 编译原理.rar
- 题库脚本.xls
- waidps-master.zip
- QQ消息轰炸机Delphi版,听说效果很好
- elk百度云地址.txt
- GetAlibaba_Setup.rar
- Editor-1.5.4.rar
- y8l7mn.xls
- AdobeAcrobat破解方法.txt
- 最完整的图书管理系统的设计与实现
- whoawho.DDZ.tools.rar
- chensixiao_1952246.zip
- pwd.txt
- 32854数据库系统概论前七章习题解析
- SolutionManualforIntroductiontoLinearAlgebra5t
- Devexpress18.2.7Crack.zip
- 在ROS中与其他器件使用十六进制串口
- Ftp.zip
- 363389zw_stereo_modefilt.zip
- zw_LZ773.zip
- zw_CameraDemo.zip
评论
共有 条评论