资源简介
ept usb2.0-serial bridge cable
RS232 转 RS485
亚辰电通2.0串口驱动 有说明书 安装图解
此版为光盘版
代码片段和文件信息
/*
* Prolific PL2303 USB to serial adaptor driver
*
* Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
*
* Original driver for 2.2.x by anonymous
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License or
* (at your option) any later version.
*
* See Documentation/usb/usb-serial.txt for more information on using this driver
*
* 2001_Oct_06 gkh
* Added RTS and DTR line control. Thanks to joe@bndlg.de for parts of it.
*
* 2001_Sep_19 gkh
* Added break support.
*
* 2001_Aug_30 gkh
* fixed oops in write_bulk_callback.
*
* 2001_Aug_28 gkh
* reworked buffer logic to be like other usb-serial drivers. Hopefully
* removing some reported problems.
*
* 2001_Jun_06 gkh
* finished porting to 2.4 format.
*
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#ifdef CONFIG_USB_SERIAL_DEBUG
static int debug = 1;
#else
static int debug;
#endif
#include “usb-serial.h“
#include “pl2303.h“
/*
* Version Information
*/
#define DRIVER_VERSION “v0.91“
#define DRIVER_DESC “Prolific PL2303 USB to serial adaptor driver“
static __devinitdata struct usb_device_id id_table [] = {
{ USB_DEVICE(PL2303_VENDOR_ID PL2303_PRODUCT_ID) }
{ USB_DEVICE(PL2303_VENDOR_ID PL2303_PRODUCT_ID_RSAQ2) }
{ USB_DEVICE(IODATA_VENDOR_ID IODATA_PRODUCT_ID) }
{ USB_DEVICE(ATEN_VENDOR_ID ATEN_PRODUCT_ID) }
{ } /* Terminating entry */
};
MODULE_DEVICE_TABLE (usb id_table);
#define SET_LINE_REQUEST_TYPE 0x21
#define SET_LINE_REQUEST 0x20
#define SET_CONTROL_REQUEST_TYPE 0x21
#define SET_CONTROL_REQUEST 0x22
#define CONTROL_DTR 0x01
#define CONTROL_RTS 0x02
#define BREAK_REQUEST_TYPE 0x21
#define BREAK_REQUEST 0x23
#define BREAK_ON 0xffff
#define BREAK_OFF 0x0000
#define GET_LINE_REQUEST_TYPE 0xa1
#define GET_LINE_REQUEST 0x21
#define VENDOR_WRITE_REQUEST_TYPE 0x40
#define VENDOR_WRITE_REQUEST 0x01
#define VENDOR_READ_REQUEST_TYPE 0xc0
#define VENDOR_READ_REQUEST 0x01
/* function prototypes for a PL2303 serial converter */
static int pl2303_open (struct usb_serial_port *port struct file *filp);
static void pl2303_close (struct usb_serial_port *port struct file *filp);
static void pl2303_set_termios (struct usb_serial_port *port
struct termios *old);
static int pl2303_ioctl (struct usb_serial_port *port struct file *file
unsigned int cmd unsigned long arg);
static void pl2303_read_int_callback (struct urb *urb);
static void pl2303_read_bulk_callback (struct urb *urb);
static void pl2303_write_bu
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 25600 2005-09-29 01:29 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\usb_manual.doc
文件 98447 2006-04-22 10:38 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WIN98\CH341PAR.EXE
文件 53760 2005-12-28 00:00 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WIN98\SETUP.EXE
文件 2324 2005-12-29 00:00 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WIN98\USBPAR34.INF
文件 17509 2005-08-22 00:00 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WIN98\USBPAR34.VXD
文件 21360 2005-12-29 00:00 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WIN98\USBPAR98.SYS
文件 98447 2006-04-22 10:38 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WINME\CH341PAR.EXE
文件 53760 2005-12-28 00:00 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WINME\SETUP.EXE
文件 28672 2000-06-08 17:00 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WINME\USBMON.DLL
文件 1043 2004-05-08 00:00 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WINME\USBPRINT.INF
文件 22640 2000-06-08 17:00 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WINME\USBPRINT.SYS
文件 98447 2006-04-22 10:38 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WINXP_2000\CH341PAR.EXE
文件 25600 2005-09-29 01:29 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WINXP_2000\usb_manual.doc
文件 25600 2005-09-29 01:29 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\WINXP_2000\安装说明.doc
文件 25600 2005-09-29 01:29 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-print\安装说明.doc
文件 62976 2004-03-06 19:47 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\iMac\iMAC(chinese) .doc
文件 13341 2005-03-23 15:47 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\iMac\pl-2303hx.hqx
文件 123904 2003-03-17 23:39 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\iMac\USB TO RS232 Cable for iMAC user‘s manual.doc
文件 36327 2005-03-23 15:48 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\iMac OS X\driver for os x.hqx
文件 521 2004-02-15 09:02 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\iMac OS X\iMac OS X.txt
文件 2323 2004-03-29 18:58 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\Linux\Redhat73\Makefile
文件 20760 2004-03-29 14:52 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\Linux\Redhat73\pl2303.c
文件 364 2004-03-29 18:55 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\Linux\Redhat73\ReadMe.txt
文件 2323 2004-03-29 18:58 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\Linux\Redhat8\Makefile
文件 21019 2004-03-30 13:41 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\Linux\Redhat8\pl2303.c
文件 364 2004-03-29 18:55 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\Linux\Redhat8\ReadMe.txt
文件 2323 2004-03-29 18:58 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\Linux\Redhat9\Makefile
文件 20638 2004-03-30 13:42 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\Linux\Redhat9\pl2303.c
文件 364 2004-03-29 18:55 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\Linux\Redhat9\ReadMe.txt
文件 26624 2005-03-23 15:44 xunzai.com_亚辰电通2.0串口驱动\usbrs232\usb-serial\Linux\user guide.doc
............此处省略61个文件信息
评论
共有 条评论