• 大小: 4.5M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-17
  • 语言: 其他
  • 标签: 其他  

资源简介

USB-232(usb2.0-ser!).rar

资源截图

代码片段和文件信息

/*
 * 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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        217  2005-12-02 15:12  USB-232(usb2.0-ser!)\USB-232\FT232\Application Notes.url

     文件     106496  2006-05-24 10:47  USB-232(usb2.0-ser!)\USB-232\FT232\FTBUSUI.dll

     文件      20196  2006-05-18 09:54  USB-232(usb2.0-ser!)\USB-232\FT232\ftcserco.dll

     文件     176128  2006-05-24 10:45  USB-232(usb2.0-ser!)\USB-232\FT232\FTD2XX.dll

     文件      19478  2005-12-06 09:32  USB-232(usb2.0-ser!)\USB-232\FT232\FTD2XX.H

     文件      18208  2006-05-24 10:45  USB-232(usb2.0-ser!)\USB-232\FT232\FTD2XX.lib

     文件      10016  2006-06-02 16:31  USB-232(usb2.0-ser!)\USB-232\FT232\ftdibus.cat

     文件       2366  2006-05-24 11:03  USB-232(usb2.0-ser!)\USB-232\FT232\FTDIBUS.INF

     文件      47249  2006-05-18 09:48  USB-232(usb2.0-ser!)\USB-232\FT232\FTDIBUS.sys

     文件       9589  2006-06-02 16:31  USB-232(usb2.0-ser!)\USB-232\FT232\ftdiport.cat

     文件       3507  2006-05-24 11:04  USB-232(usb2.0-ser!)\USB-232\FT232\FTDIPORT.INF

     文件     188416  2006-05-24 10:40  USB-232(usb2.0-ser!)\USB-232\FT232\FTDIUNIN.exe

     文件     102400  2006-05-24 10:42  USB-232(usb2.0-ser!)\USB-232\FT232\FTLang.dll

     文件      61067  2006-05-18 09:49  USB-232(usb2.0-ser!)\USB-232\FT232\ftser2k.sys

     文件      33360  2006-05-19 11:51  USB-232(usb2.0-ser!)\USB-232\FT232\ftserui2.dll

     文件        227  2005-12-02 15:12  USB-232(usb2.0-ser!)\USB-232\FT232\Installation Guides.url

     文件    2933416  2005-09-28 11:07  USB-232(usb2.0-ser!)\USB-232\HL-0108\Setup For HugePine.exe

     文件    1669134  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\HL-2303\HL-2303.exe

     文件     135168  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\HL-2303\Remove_old_driver.exe

     文件      43136  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\HL-2303\ser2pl.sys

     文件      34332  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\HL-2303\SER9PL.sys

     文件       2280  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\HL-2303\SERSPL.INF

     文件      26719  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\HL-2303\SERSPL.VXD

     文件       8644  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\HL-2303\SERWPL.INF

     文件          8  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\IMAC\Mac10.0\md_pl2303hx_v108b4\PL2303_1.0.8b4.pkg\Contents\PkgInfo

     文件        291  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\IMAC\Mac10.0\md_pl2303hx_v108b4\PL2303_1.0.8b4.pkg\Contents\Resources\English.lproj\PL2303_1.0.8b4.info

     文件      35561  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\IMAC\Mac10.0\md_pl2303hx_v108b4\PL2303_1.0.8b4.pkg\Contents\Resources\PL2303_1.0.8b4.bom

     文件      87040  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\IMAC\Mac10.0\md_pl2303hx_v108b4\PL2303_1.0.8b4.pkg\Contents\Resources\PL2303_1.0.8b4.pax

     文件         49  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\IMAC\Mac10.0\md_pl2303hx_v108b4\PL2303_1.0.8b4.pkg\Contents\Resources\PL2303_1.0.8b4.sizes

     文件      24064  2005-11-26 20:25  USB-232(usb2.0-ser!)\USB-232\HL-2303\IMAC\Mac8.6&9.0\Manual chinese.doc

............此处省略71个文件信息

评论

共有 条评论