• 大小: 8KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-05-19
  • 语言: 其他
  • 标签: PL2303  串口  

资源简介

linux PL2303 usb转串口驱动源码

资源截图

代码片段和文件信息

/*
 * Prolific PL2303 USB to serial adaptor driver
 *
 * Copyright (C) 2001-2007 Greg Kroah-Hartman (greg@kroah.com)
 * Copyright (C) 2003 IBM Corp.
 *
 * 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 version
 * 2 as published by the Free Software Foundation.
 *
 * See Documentation/usb/usb-serial.txt for more information on using this
 * driver
 *
 */

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include “pl2303.h“

/*
 * Version Information
 */
#define DRIVER_DESC “Prolific PL2303 USB to serial adaptor driver“

static bool debug;

#define PL2303_CLOSING_WAIT (30*HZ)

static const 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(PL2303_VENDOR_ID PL2303_PRODUCT_ID_DCU11) }
{ USB_DEVICE(PL2303_VENDOR_ID PL2303_PRODUCT_ID_RSAQ3) }
{ USB_DEVICE(PL2303_VENDOR_ID PL2303_PRODUCT_ID_PHAROS) }
{ USB_DEVICE(PL2303_VENDOR_ID PL2303_PRODUCT_ID_ALDIGA) }
{ USB_DEVICE(PL2303_VENDOR_ID PL2303_PRODUCT_ID_MMX) }
{ USB_DEVICE(PL2303_VENDOR_ID PL2303_PRODUCT_ID_GPRS) }
{ USB_DEVICE(PL2303_VENDOR_ID PL2303_PRODUCT_ID_HCR331) }
{ USB_DEVICE(PL2303_VENDOR_ID PL2303_PRODUCT_ID_MOTOROLA) }
{ USB_DEVICE(IODATA_VENDOR_ID IODATA_PRODUCT_ID) }
{ USB_DEVICE(IODATA_VENDOR_ID IODATA_PRODUCT_ID_RSAQ5) }
{ USB_DEVICE(ATEN_VENDOR_ID ATEN_PRODUCT_ID) }
{ USB_DEVICE(ATEN_VENDOR_ID2 ATEN_PRODUCT_ID) }
{ USB_DEVICE(ELCOM_VENDOR_ID ELCOM_PRODUCT_ID) }
{ USB_DEVICE(ELCOM_VENDOR_ID ELCOM_PRODUCT_ID_UCSGT) }
{ USB_DEVICE(ITEGNO_VENDOR_ID ITEGNO_PRODUCT_ID) }
{ USB_DEVICE(ITEGNO_VENDOR_ID ITEGNO_PRODUCT_ID_2080) }
{ USB_DEVICE(MA620_VENDOR_ID MA620_PRODUCT_ID) }
{ USB_DEVICE(RATOC_VENDOR_ID RATOC_PRODUCT_ID) }
{ USB_DEVICE(TRIPP_VENDOR_ID TRIPP_PRODUCT_ID) }
{ USB_DEVICE(RADIOSHACK_VENDOR_ID RADIOSHACK_PRODUCT_ID) }
{ USB_DEVICE(DCU10_VENDOR_ID DCU10_PRODUCT_ID) }
{ USB_DEVICE(SITECOM_VENDOR_ID SITECOM_PRODUCT_ID) }
{ USB_DEVICE(ALCATEL_VENDOR_ID ALCATEL_PRODUCT_ID) }
{ USB_DEVICE(SAMSUNG_VENDOR_ID SAMSUNG_PRODUCT_ID) }
{ USB_DEVICE(SIEMENS_VENDOR_ID SIEMENS_PRODUCT_ID_SX1) }
{ USB_DEVICE(SIEMENS_VENDOR_ID SIEMENS_PRODUCT_ID_X65) }
{ USB_DEVICE(SIEMENS_VENDOR_ID SIEMENS_PRODUCT_ID_X75) }
{ USB_DEVICE(SIEMENS_VENDOR_ID SIEMENS_PRODUCT_ID_EF81) }
{ USB_DEVICE(BENQ_VENDOR_ID BENQ_PRODUCT_ID_S81) } /* Benq/Siemens S81 */
{ USB_DEVICE(SYNTECH_VENDOR_ID SYNTECH_PRODUCT_ID) }
{ USB_DEVICE(NOKIA_CA42_VENDOR_ID NOKIA_CA42_PRODUCT_ID) }
{ USB_DEVICE(C

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

    .......     24252  2014-09-04 11:27  pl2303.c

    .......      4209  2014-09-04 11:27  pl2303.h

----------- ---------  ---------- -----  ----

                28461                    2


评论

共有 条评论