817e003a02
PR/37692 from Yojiro UO --- uhmodem: device driver for huawei 3G wireless modem * what it is? A device driver for huawei 3G wireless modem, E220 and its valiations. The devices are very simuler to ubsa device, but they need special care to use as modem device. This patch introduce "uhmodem (USB Huawei modem)" for the devices. A uhmodem device has two com devices and one USB mass strage device. The driver enable to use all of them. * dmesg: uhmodem0 at uhub0 port 1 configuration 1 interface 0 uhmodem0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2 uhmodem0: mass storage only mode, reattach to enable modem uhmodem0: at uhub0 port 1 (addr 2) disconnected uhmodem0 detached uhmodem0 at uhub0 port 1 configuration 1 interface 0 uhmodem0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2 ucom0 at uhmodem0 portno 0: modem ucom1 at uhmodem0 portno 1: monitor umass0 at uhub0 port 1 configuration 1 interface 2 umass0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, 1 lun per target cd0 at scsibus0 target 0 lun 0: <HUAWEI, Mass Storage, 2.31> cdrom removable
300 lines
6.6 KiB
Plaintext
300 lines
6.6 KiB
Plaintext
# $NetBSD: files.usb,v 1.82 2008/01/21 11:36:46 ichiro Exp $
|
|
#
|
|
# Config file and device description for machine-independent USB code.
|
|
# Included by ports that need it. Ports that use it must provide
|
|
# their own "major" declarations for the appropriate devices.
|
|
|
|
defflag USBVERBOSE
|
|
|
|
define usbdevif { [port = -1], [configuration = -1], [interface = -1],
|
|
[vendor = -1], [product = -1], [release = -1] }
|
|
define usbifif { [port = -1], [configuration = -1], [interface = -1],
|
|
[vendor = -1], [product = -1], [release = -1] }
|
|
|
|
device usb: usbdevif
|
|
attach usb at usbus
|
|
file dev/usb/usb.c usb needs-flag
|
|
file dev/usb/usbdi.c usb
|
|
file dev/usb/usbdi_util.c usb
|
|
file dev/usb/usb_mem.c usb
|
|
file dev/usb/usb_subr.c usb
|
|
file dev/usb/usb_quirks.c usb
|
|
|
|
# Hub driver
|
|
device uhub: usbdevif, usbifif
|
|
attach uhub at usbdevif
|
|
file dev/usb/uhub.c usb
|
|
|
|
# Modem and com serial port "bus"
|
|
define ucombus {[ portno = -1 ]}
|
|
|
|
# EZ-USB firmware loader
|
|
define ezload
|
|
file dev/usb/ezload.c ezload
|
|
|
|
# Audio devices
|
|
device uaudio: audiobus, auconv, mulaw, aurateconv
|
|
attach uaudio at usbifif
|
|
file dev/usb/uaudio.c uaudio
|
|
|
|
# MIDI devices
|
|
device umidi: midibus
|
|
attach umidi at usbifif
|
|
file dev/usb/umidi.c umidi
|
|
file dev/usb/umidi_quirks.c umidi
|
|
|
|
# Modem and com serial port
|
|
device ucom
|
|
attach ucom at ucombus
|
|
file dev/usb/ucom.c ucom | ucombus needs-flag
|
|
|
|
|
|
# Generic devices
|
|
defflag UGEN_BULK_RA_WB
|
|
device ugen
|
|
attach ugen at usbdevif
|
|
file dev/usb/ugen.c ugen needs-flag
|
|
|
|
|
|
# HID
|
|
# HID "bus"
|
|
define uhidbus {[ reportid = -1 ]}
|
|
|
|
# HID root device for multiple report IDs
|
|
device uhidev: hid, uhidbus
|
|
attach uhidev at usbifif
|
|
file dev/usb/uhidev.c uhidev
|
|
|
|
# Generic HID devices
|
|
device uhid: hid
|
|
attach uhid at uhidbus
|
|
file dev/usb/uhid.c uhid needs-flag
|
|
|
|
# Keyboards
|
|
defparam UKBD_LAYOUT
|
|
device ukbd: hid, wskbddev
|
|
attach ukbd at uhidbus
|
|
file dev/usb/ukbd.c ukbd needs-flag
|
|
file dev/usb/ukbdmap.c ukbd | btkbd
|
|
|
|
# Mice
|
|
device ums: hid, wsmousedev
|
|
attach ums at uhidbus
|
|
file dev/usb/ums.c ums
|
|
|
|
# eGalax USB Touch Panel
|
|
device uep: wsmousedev, tpcalib
|
|
attach uep at usbdevif
|
|
file dev/usb/uep.c uep needs-flag
|
|
|
|
# Cypress microcontroller based serial adpaters
|
|
device ucycom: hid
|
|
attach ucycom at uhidbus
|
|
file dev/usb/ucycom.c ucycom needs-flag
|
|
|
|
# Printers
|
|
device ulpt
|
|
attach ulpt at usbifif
|
|
file dev/usb/ulpt.c ulpt needs-flag
|
|
|
|
|
|
# Mass storage
|
|
device umass: scsi, atapi, ata_hl
|
|
attach umass at usbifif
|
|
file dev/usb/umass.c umass
|
|
file dev/usb/umass_isdata.c umass & wd
|
|
file dev/usb/umass_quirks.c umass
|
|
file dev/usb/umass_scsipi.c umass & (scsibus | atapibus)
|
|
|
|
|
|
# IrDA bridges
|
|
device uirda: irbus
|
|
attach uirda at usbifif
|
|
file dev/usb/uirda.c uirda | stuirda
|
|
|
|
# SigmaTel not quite UIRDA IrDA bridge
|
|
device stuirda: irbus,firmload
|
|
attach stuirda at usbifif
|
|
file dev/usb/stuirda.c stuirda
|
|
|
|
# SigmaTel IrDA bridge
|
|
device ustir: irbus, irdasir
|
|
attach ustir at usbdevif
|
|
file dev/usb/ustir.c ustir
|
|
|
|
|
|
# Bluetooth controllers
|
|
device ubt: btbus, bluetooth
|
|
attach ubt at usbdevif
|
|
file dev/usb/ubt.c ubt
|
|
|
|
|
|
# Misc
|
|
# Diamond Multimedia Rio 500
|
|
device urio
|
|
attach urio at usbdevif
|
|
file dev/usb/urio.c urio needs-flag
|
|
|
|
# Handspring Visor
|
|
device uvisor: ucombus
|
|
attach uvisor at usbdevif
|
|
file dev/usb/uvisor.c uvisor
|
|
|
|
# Generic Serial Adapter
|
|
device ugensa: ucombus
|
|
attach ugensa at usbdevif
|
|
file dev/usb/ugensa.c ugensa
|
|
|
|
# YAP phone firmware loader
|
|
device uyap: ezload
|
|
attach uyap at usbdevif
|
|
file dev/usb/uyap.c uyap
|
|
|
|
# D-Link DSB-R100 FM radio
|
|
device udsbr: radiodev
|
|
attach udsbr at usbdevif
|
|
file dev/usb/udsbr.c udsbr
|
|
|
|
|
|
# Ethernet adapters
|
|
# ADMtek AN986 Pegasus
|
|
device aue: arp, ether, ifnet, mii, mii_phy
|
|
attach aue at usbdevif
|
|
file dev/usb/if_aue.c aue
|
|
|
|
# CDC Ethernet
|
|
device cdce: arp, ether, ifnet
|
|
attach cdce at usbifif
|
|
file dev/usb/if_cdce.c cdce
|
|
|
|
# CATC USB-EL1201A
|
|
device cue: arp, ether, ifnet
|
|
attach cue at usbdevif
|
|
file dev/usb/if_cue.c cue
|
|
|
|
# Kawasaki LSI KL5KUSB101B
|
|
device kue: arp, ether, ifnet
|
|
attach kue at usbdevif
|
|
file dev/usb/if_kue.c kue
|
|
|
|
# Prolific PL2302 host-host
|
|
device upl: ifnet
|
|
attach upl at usbdevif
|
|
file dev/usb/if_upl.c upl
|
|
|
|
# Realtek RTL8150L(M)
|
|
device url: arp, ether, ifnet, mii
|
|
attach url at usbdevif
|
|
file dev/usb/if_url.c url
|
|
|
|
# ASIX AX88172
|
|
device axe: arp, ether, ifnet, mii, mii_phy
|
|
attach axe at usbdevif
|
|
file dev/usb/if_axe.c axe
|
|
|
|
# DAVICOM DM9601
|
|
device udav: arp, ether, ifnet, mii, mii_phy
|
|
attach udav at usbdevif
|
|
file dev/usb/if_udav.c udav
|
|
|
|
|
|
# Serial drivers
|
|
# Modems
|
|
define umodem_common
|
|
file dev/usb/umodem_common.c umodem_common
|
|
device umodem: ucombus, umodem_common
|
|
attach umodem at usbifif
|
|
file dev/usb/umodem.c umodem
|
|
|
|
# FTDI serial driver
|
|
device uftdi: ucombus
|
|
attach uftdi at usbdevif
|
|
file dev/usb/uftdi.c uftdi
|
|
|
|
# Prolific PL2303 serial driver
|
|
device uplcom: ucombus
|
|
attach uplcom at usbdevif
|
|
file dev/usb/uplcom.c uplcom
|
|
|
|
# MCT USB-232 serial driver
|
|
device umct: ucombus
|
|
attach umct at usbdevif
|
|
file dev/usb/umct.c umct
|
|
|
|
# SUNTAC Slipper U VS-10U driver
|
|
device uvscom: ucombus
|
|
attach uvscom at usbdevif
|
|
file dev/usb/uvscom.c uvscom
|
|
|
|
# Belkin & other serial driver
|
|
define ubsa_common
|
|
file dev/usb/ubsa_common.c ubsa_common
|
|
device ubsa: ucombus, ubsa_common
|
|
#attach ubsa at usbdevif
|
|
attach ubsa at usbifif
|
|
file dev/usb/ubsa.c ubsa
|
|
|
|
# Huawei E220 3G/HSDPA modem (ubsa)
|
|
device uhmodem: ucombus, ubsa_common
|
|
attach uhmodem at usbifif
|
|
file dev/usb/uhmodem.c uhmodem
|
|
|
|
# iPAQ PDAs
|
|
device uipaq: ucombus
|
|
attach uipaq at usbdevif
|
|
file dev/usb/uipaq.c uipaq
|
|
|
|
# Kyocera AIR-EDGE PHONE
|
|
device ukyopon: ucombus, umodem_common
|
|
attach ukyopon at usbifif
|
|
file dev/usb/ukyopon.c ukyopon
|
|
|
|
# Silicon Labs CP210x serial driver
|
|
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
|
|
attach uscanner at usbdevif
|
|
file dev/usb/uscanner.c uscanner needs-flag
|
|
|
|
# Avision SCSI over USB, HP5300
|
|
device usscanner: scsi
|
|
attach usscanner at usbdevif
|
|
file dev/usb/usscanner.c usscanner
|
|
|
|
# Atmel AT76c503 / AT76c503a / AT76c505 / AT76c505a @ USB
|
|
device atu: ether, ifnet, arp, wlan
|
|
attach atu at usbdevif
|
|
file dev/usb/if_atu.c atu
|
|
|
|
# Ralink Technology RT2500USB
|
|
attach ral at usbdevif with ural
|
|
file dev/usb/if_ural.c ural
|
|
|
|
device rum: ether, ifnet, arp, wlan, firmload
|
|
attach rum at usbdevif
|
|
file dev/usb/if_rum.c rum
|
|
|
|
# Topfield digital PVRs
|
|
device utoppy
|
|
attach utoppy at usbdevif
|
|
file dev/usb/utoppy.c utoppy
|
|
|
|
# Microsoft Xbox controller (gamepad)
|
|
device xboxcontroller: wsmousedev
|
|
attach xboxcontroller at usbdevif
|
|
file dev/usb/xboxcontroller.c xboxcontroller
|
|
|
|
# Zydas ZD1211
|
|
device zyd: ether, ifnet, arp, wlan, firmload
|
|
attach zyd at usbdevif
|
|
file dev/usb/if_zyd.c zyd
|