Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/tty.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/tty_driver.h>
#include <linux/tty_flip.h>
#include <linux/moduleparam.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <linux/usb/serial.h>
Go to the source code of this file.
Data Structures | |
struct | metrousb_private |
Macros | |
#define | DRIVER_VERSION "v1.2.0.0" |
#define | DRIVER_DESC "Metrologic Instruments Inc. - USB-POS driver" |
#define | FOCUS_VENDOR_ID 0x0C2E |
#define | FOCUS_PRODUCT_ID_BI 0x0720 |
#define | FOCUS_PRODUCT_ID_UNI 0x0700 |
#define | METROUSB_SET_REQUEST_TYPE 0x40 |
#define | METROUSB_SET_MODEM_CTRL_REQUEST 10 |
#define | METROUSB_SET_BREAK_REQUEST 0x40 |
#define | METROUSB_MCR_NONE 0x08 /* Deactivate DTR and RTS. */ |
#define | METROUSB_MCR_RTS 0x0a /* Activate RTS. */ |
#define | METROUSB_MCR_DTR 0x09 /* Activate DTR. */ |
#define | WDR_TIMEOUT 5000 /* default urb timeout. */ |
#define | UNI_CMD_OPEN 0x80 |
#define | UNI_CMD_CLOSE 0xFF |
Functions | |
MODULE_DEVICE_TABLE (usb, id_table) | |
int | metrousb_is_unidirectional_mode (struct usb_serial_port *port) |
module_usb_serial_driver (serial_drivers, id_table) | |
MODULE_LICENSE ("GPL") | |
MODULE_AUTHOR ("Philip Nicastro") | |
MODULE_AUTHOR ("Aleksey Babahin <[email protected]>") | |
MODULE_DESCRIPTION (DRIVER_DESC) | |
Definition at line 25 of file metro-usb.c.
#define DRIVER_VERSION "v1.2.0.0" |
Definition at line 24 of file metro-usb.c.
#define FOCUS_PRODUCT_ID_BI 0x0720 |
Definition at line 29 of file metro-usb.c.
#define FOCUS_PRODUCT_ID_UNI 0x0700 |
Definition at line 30 of file metro-usb.c.
#define FOCUS_VENDOR_ID 0x0C2E |
Definition at line 28 of file metro-usb.c.
#define METROUSB_MCR_DTR 0x09 /* Activate DTR. */ |
Definition at line 37 of file metro-usb.c.
#define METROUSB_MCR_NONE 0x08 /* Deactivate DTR and RTS. */ |
Definition at line 35 of file metro-usb.c.
#define METROUSB_MCR_RTS 0x0a /* Activate RTS. */ |
Definition at line 36 of file metro-usb.c.
#define METROUSB_SET_BREAK_REQUEST 0x40 |
Definition at line 34 of file metro-usb.c.
#define METROUSB_SET_MODEM_CTRL_REQUEST 10 |
Definition at line 33 of file metro-usb.c.
#define METROUSB_SET_REQUEST_TYPE 0x40 |
Definition at line 32 of file metro-usb.c.
#define UNI_CMD_CLOSE 0xFF |
Definition at line 57 of file metro-usb.c.
#define UNI_CMD_OPEN 0x80 |
Definition at line 56 of file metro-usb.c.
#define WDR_TIMEOUT 5000 /* default urb timeout. */ |
Definition at line 38 of file metro-usb.c.
|
inline |
Definition at line 59 of file metro-usb.c.
MODULE_AUTHOR | ( | "Philip Nicastro" | ) |
MODULE_AUTHOR | ( | "Aleksey Babahin <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | DRIVER_DESC | ) |
MODULE_DEVICE_TABLE | ( | usb | , |
id_table | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_usb_serial_driver | ( | serial_drivers | , |
id_table | |||
) |