add support for WinChipHead CH341/340 USB-Serial bridge.

This commit is contained in:
tshiozak 2007-09-03 17:57:36 +00:00
parent ad88e4382b
commit d0a32c7b25
3 changed files with 1034 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.844 2007/08/26 17:05:23 xtraeme Exp $
# $NetBSD: GENERIC,v 1.845 2007/09/03 17:57:36 tshiozak Exp $
#
# GENERIC machine description file
#
@ -22,7 +22,7 @@ include "arch/i386/conf/std.i386"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "GENERIC-$Revision: 1.844 $"
#ident "GENERIC-$Revision: 1.845 $"
maxusers 32 # estimated number of users
@ -1132,6 +1132,9 @@ upl* at uhub? port ?
ubsa* at uhub? port ? # Belkin serial adapter
ucom* at ubsa? portno ?
uchcom* at uhub? port ? # WinChipHead CH341/CH340 serial adapter
ucom* at uchcom? portno ?
uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter
ucom* at uftdi? portno ?

View File

@ -1,4 +1,4 @@
# $NetBSD: files.usb,v 1.79 2007/06/12 07:06:48 kiyohara Exp $
# $NetBSD: files.usb,v 1.80 2007/09/03 17:57:36 tshiozak Exp $
#
# Config file and device description for machine-independent USB code.
# Included by ports that need it. Ports that use it must provide
@ -250,6 +250,11 @@ device uslsa: ucombus
attach uslsa at usbdevif
file dev/usb/uslsa.c uslsa
# WinChipHead CH341/340 serial driver
device uchcom: ucombus
attach uchcom at usbdevif
file dev/usb/uchcom.c uchcom
# Scanners
# Generic scanner support
device uscanner

1023
sys/dev/usb/uchcom.c Normal file

File diff suppressed because it is too large Load Diff