#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/ioport.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/timer.h>
#include <linux/list.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/moduleparam.h>
#include <linux/fs.h>
#include <linux/poll.h>
#include <linux/types.h>
#include <linux/ctype.h>
#include <linux/cdev.h>
#include <asm/byteorder.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/uaccess.h>
#include <asm/unaligned.h>
#include <linux/usb/ch9.h>
#include <linux/usb/composite.h>
#include <linux/usb/gadget.h>
#include <linux/usb/g_printer.h>
#include "gadget_chips.h"
Go to the source code of this file.
#define DRIVER_DESC "Printer Gadget" |
#define DRIVER_VERSION "2007 OCT 06" |
#define PRINTER_PRODUCT_NUM 0xa4a8 /* Linux-USB Printer Gadget */ |
#define PRINTER_VENDOR_NUM 0x0525 /* NetChip */ |
#define USB_DESC_BUFSIZE 256 |
MODULE_AUTHOR |
( |
"Craig Nadler" |
| ) |
|
module_param |
( |
iPNPstring |
, |
|
|
charp |
, |
|
|
S_IRUGO |
|
|
) |
| |
module_param_named |
( |
iSerialNum |
, |
|
|
coverwrite. |
serial_number, |
|
|
charp |
, |
|
|
S_IRUGO |
|
|
) |
| |
MODULE_PARM_DESC |
( |
iSerialNum |
, |
|
|
"1" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
iPNPstring |
, |
|
|
"MFG:linux;MDL:g_printer;CLS:PRINTER;SN:1;" |
|
|
) |
| |
USB_GADGET_COMPOSITE_OPTIONS |
( |
| ) |
|