资源简介
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改进版
相关资源
- PID_AutoTune_v0.rar
- vspd7.2.308.zip
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
评论
共有 条评论