发布时间:2016-05-08 12:12:19
#include<linux/module.h>#include<linux/types.h>#include<linux/fs.h>#include<linux/mm.h>#include<linux/sched.h>#include<linux/init.h>#include<linux/cdev.h>#include<asm/io.h>#include<asm/system.h>#include<asm/uaccess.h>#include<linux/device.h>#define GLOBALMEM_SIZE 0x1000 //全局内存大小#de.........【阅读全文】
发布时间:2016-05-04 23:23:00
/* * drivers\hid\usbhid\usbmouse.c */#include <linux/kernel.h>#include <linux/slab.h>#include <linux/module.h>#include <linux/init.h>#include <linux/usb/input.h>#include <linux/hid.h>static struct input_dev *uk_dev;static char *usb_buf;static dma_addr_t usb_buf_phys;static .........【阅读全文】
发布时间:2016-05-04 00:34:17
/* * drivers\hid\usbhid\usbmouse.c */#include #include #include #include #include #include static struct input_dev *uk_dev;static char *usb_buf;static dma_addr_t usb_buf_phys;static int len;static struct urb *uk_urb;static struct usb_device_id usbmouse_as_key_id_table [.........【阅读全文】
发布时间:2016-05-03 00:19:50
/* * drivers\hid\usbhid\usbmouse.c */#include <linux/kernel.h>#include <linux/slab.h>#include <linux/module.h>#include <linux/init.h>#include <linux/usb/input.h>#include <linux/hid.h>static struct usb_device_id usbmouse_as_key_id_table [] = {{ USB_INTERFACE_INFO(USB_INTERFAC.........【阅读全文】