• 大小: 9.56MB
    文件类型: .zip
    金币: 2
    下载: 4 次
    发布日期: 2023-10-08
  • 语言: 其他
  • 标签: CH382  PCIE  

资源简介

CH382 PCIE转双串口卡PC机驱动程序,测试非常好用。

资源截图

代码片段和文件信息

#include “wch_common.h“

struct pci_board wch_pci_board_conf[] = {
// NONE
{
// VenID DevID SubVenID SubSysID
0x00 0x00 0x00 0x00
// SerPort IntrBar IntrOffset IntrOffset1 IntrOffset2 IntrOffset3 Name BoardFlag
0x00 0x00 0x00 0x00 0x00 0x00 “none“ BOARDFLAG_NONE
{
// type bar1 ofs1 len1 bar2 ofs2 len2 flags
{ ‘n‘ -1 0 0 -1 0 0 NONE_BOARD }
}
}

// CH352_2S
{
// VenID DevID SubVenID SubSysID
VENDOR_ID_WCH_PCI DEVICE_ID_WCH_CH352_2S SUB_VENDOR_ID_WCH_PCI SUB_DEVICE_ID_WCH_CH352_2S
// SerPort IntrBar IntrOffset IntrOffset1 IntrOffset2 IntrOffset3 Name BoardFlag
0x02 0x00 0x00 0x00 0x00 0x00 “CH352_2S“ BOARDFLAG_REMAP
{
// type bar1 ofs1 len1 bar2 ofs2 len2 flags
{ ‘s‘ 0 0 8 -1 0 0 WCH_BOARD_CH352_2S }
{ ‘s‘ 1 0 8 -1 0 0 WCH_BOARD_CH352_2S }
}
}

// CH352_1S1P
{
// VenID DevID SubVenID SubSysID
VENDOR_ID_WCH_PCI DEVICE_ID_WCH_CH352_1S1P SUB_VENDOR_ID_WCH_PCI SUB_DEVICE_ID_WCH_CH352_1S1P
// SerPort IntrBar IntrOffset IntrOffset1 IntrOffset2 IntrOffset3 Name BoardFlag
1 0 0x00 0x00 0x00 0x00 “CH352_1S1P“ BOARDFLAG_REMAP
{
// type bar1 ofs1 len1 bar2 ofs2 len2 flags
{ ‘s‘ 0 0 8 -1 0 0 WCH_BOARD_CH352_1S1P }
}
}

// CH353_4S
{
// VenID DevID SubVenID SubSysID
VENDOR_ID_WCH_PCI DEVICE_ID_WCH_CH353_4S SUB_VENDOR_ID_WCH_PCI SUB_DEVICE_ID_WCH_CH353_4S
// SerPort IntrBar IntrOffset IntrOffset1 IntrOffset2 IntrOffset3 Name BoardFlag
4 3 0x0F 0x00 0x00 0x00 “CH353_4S“ BOARDFLAG_NONE
{
// type bar1 ofs1 len1 bar2 ofs2 len2 flags
{ ‘s‘ 0 0 8 -1 0 0 WCH_BOARD_CH353_4S }
{ ‘s‘ 1 0 8 -1 0 0 WCH_BOARD_CH353_4S }
{ ‘s‘ 2 0 8 -1 0 0 WCH_BOARD_CH353_4S }
{ ‘s‘ 3 0 8 -1 0 0 WCH_BOARD_CH353_4S }

}
}

// CH353_2S1P
{
// VenID DevID SubVenID SubSysID
VENDOR_ID_WCH_PCI DEVICE_ID_WCH_CH353_2S1P SUB_VENDOR_ID_WCH_PCI SUB_DEVICE_ID_WCH_CH353_2S1P
// SerPort IntrBar IntrOffset IntrOffset1 IntrOffset2 IntrOffset3 Name     BoardFlag
2 3 0x0F 0x00 0x00 0x00 “CH353_2S1P“ BOARDFLAG_NONE
{
// type bar1 ofs1 len1 bar2 ofs2 len2 flags
{ ‘s‘ 0 0 8 -1 0 0 WCH_BOARD_CH353_2S1P  }
{ ‘s‘ 1 0 8 -1 0 0 WCH_BOARD_CH353_2S1P  }
}
}

// CH353_2S1PAR
{
// VenID DevID SubVenID SubSysID
VENDOR_ID_WCH_PCI DEVICE_ID_WCH_CH353_2S1PAR SUB_VENDOR_ID_WCH_PCI SUB_DEVICE_ID_WCH_CH353_2S1PAR
// SerPort IntrBar IntrOffset IntrOffset1 IntrOffset2 IntrOffset3 Name     BoardFlag
2 3 0x0F 0x00 0x00 0x00 “CH353_2S1PAR“ BOARDFLAG_NONE
{
// type bar1 ofs1 len1 bar2 ofs2 len2 flags
{ ‘s‘ 0 0 8 -1 0 0 WCH_BOARD_CH353_2S1PAR }
{ ‘s‘ 1 0 8

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-03-26 10:43  ch382\
     目录           0  2014-03-26 10:43  ch382\CH382-New\
     文件     3982387  2014-03-26 10:40  ch382\CH382-New\CH38XDRV.EXE
     目录           0  2014-03-26 10:43  ch382\CH382L-Old\
     目录           0  2014-03-26 10:43  ch382\CH382L-Old\CH38XDRV\
     文件      484070  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\CH38x系列板卡使用说明.chm
     目录           0  2014-03-26 10:43  ch382\CH382L-Old\CH38XDRV\DRV_1P\
     目录           0  2014-03-26 12:09  ch382\CH382L-Old\CH38XDRV\DRV_1P\DOS\
     目录           0  2014-03-26 10:43  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\
     文件         722  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\Makefile
     目录           0  2014-03-26 10:43  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\driver\
     文件        2313  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\driver\Makefile
     文件       18101  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\driver\wch_common.h
     文件       14815  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\driver\wch_devtable.c
     文件       26526  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\driver\wch_main.c
     文件       82399  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\driver\wch_serial.c
     文件        8161  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\readme
     目录           0  2014-03-26 10:43  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\wchdump\
     文件         301  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\wchdump\Makefile
     文件        3357  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\wchdump\wchdump.c
     目录           0  2014-03-26 10:43  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\wchmknod\
     文件         641  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\wchmknod\wchmknod
     目录           0  2014-03-26 10:43  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\wchterm\
     文件         349  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\wchterm\Makefile
     文件       26810  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\wchterm\wchterm.c
     文件        3040  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\LINUX\wchterm\wchterm.h
     目录           0  2014-03-26 10:43  ch382\CH382L-Old\CH38XDRV\DRV_1P\WIN 2000\
     文件        9777  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\WIN 2000\CH38MDRV1P.INF
     文件       43312  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\WIN 2000\EMPORTS2K.INF
     文件       27136  2014-03-26 10:40  ch382\CH382L-Old\CH38XDRV\DRV_1P\WIN 2000\PCIEPAR.sys
     目录           0  2014-03-26 10:43  ch382\CH382L-Old\CH38XDRV\DRV_1P\WIN 2003&XP&VISTA&2008&7\
............此处省略335个文件信息

评论

共有 条评论