1# $OpenBSD: files.usb,v 1.36 2004/07/20 20:30:09 dhartmei Exp $ 2# $NetBSD: files.usb,v 1.16 2000/02/14 20:29:54 augustss Exp $ 3# 4# Config file and device description for machine-independent USB code. 5# Included by ports that need it. Ports that use it must provide 6# their own "major" declarations for the appropriate devices. 7 8device usb { } 9attach usb at usbus 10file dev/usb/usb.c usb needs-flag 11file dev/usb/usbdi.c usb 12file dev/usb/usbdi_util.c usb 13file dev/usb/usb_mem.c usb 14file dev/usb/usb_subr.c usb 15file dev/usb/usb_quirks.c usb 16 17# Hub driver 18device uhub { [port = -1], [configuration = -1], [interface = -1], 19 [vendor = -1], [product = -1], [release = -1] } 20attach uhub at usb 21file dev/usb/uhub.c usb 22 23attach uhub at uhub with uhub_uhub 24 25# Modem and com serial port "bus" 26define ucombus {[ portno = -1 ]} 27 28# EZ-USB firmware loader 29define ezload 30file dev/usb/ezload.c ezload 31 32# Audio devices 33device uaudio: audio, auconv, mulaw 34attach uaudio at uhub 35file dev/usb/uaudio.c uaudio 36 37# MIDI devices 38device umidi: midibus 39attach umidi at uhub 40file dev/usb/umidi.c umidi 41file dev/usb/umidi_quirks.c umidi 42 43# Modem and com serial port 44device ucom 45attach ucom at ucombus 46file dev/usb/ucom.c ucom | ucombus needs-flag 47 48 49# Generic devices 50device ugen 51attach ugen at uhub 52file dev/usb/ugen.c ugen needs-flag 53 54 55# HID 56# HID "bus" 57define uhidbus {[ reportid = -1 ]} 58 59# HID processing 60define hid 61file dev/usb/hid.c hid 62 63# HID root device for multiple report IDs 64device uhidev: hid, uhidbus 65attach uhidev at uhub 66file dev/usb/uhidev.c uhidev 67 68# Generic HID devices 69device uhid: hid 70attach uhid at uhidbus 71file dev/usb/uhid.c uhid needs-flag 72 73# Keyboards 74device ukbd: hid, wskbddev 75attach ukbd at uhidbus 76file dev/usb/ukbd.c ukbd needs-flag 77file dev/usb/ukbdmap.c ukbd 78 79# Mice 80device ums: hid, wsmousedev 81attach ums at uhidbus 82file dev/usb/ums.c ums 83 84 85# Printers 86device ulpt 87attach ulpt at uhub 88file dev/usb/ulpt.c ulpt needs-flag 89 90 91# Mass storage 92device umass: scsi, atapi, ata 93attach umass at uhub 94file dev/usb/umass.c umass 95file dev/usb/umass_quirks.c umass 96file dev/usb/umass_scsi.c umass & (scsibus | atapiscsi) 97 98 99# Misc 100# Diamond Multimedia Rio 500 101device urio 102attach urio at uhub 103file dev/usb/urio.c urio needs-flag 104 105# Handspring Visor 106device uvisor: ucombus 107attach uvisor at uhub 108file dev/usb/uvisor.c uvisor 109 110# YAP phone firmware loader 111device uyap: ezload 112attach uyap at uhub 113file dev/usb/uyap.c uyap 114 115# D-Link DSB-R100 FM radio 116device udsbr: radiobus 117attach udsbr at uhub 118file dev/usb/udsbr.c udsbr 119 120 121# Ethernet adapters 122# ADMtek AN986 Pegasus 123device aue: ether, ifnet, mii, ifmedia 124attach aue at uhub 125file dev/usb/if_aue.c aue 126 127# Ethernet adapters 128# ASIX Electronics AX88172 129device axe: ether, ifnet, mii, ifmedia 130attach axe at uhub 131file dev/usb/if_axe.c axe 132 133# CATC USB-EL1201A 134device cue: ether, ifnet, ifmedia 135attach cue at uhub 136file dev/usb/if_cue.c cue 137 138# Kawasaki LSI KL5KUSB101B 139device kue: ether, ifnet, ifmedia 140attach kue at uhub 141file dev/usb/if_kue.c kue 142 143# CDC Ethernet 144device cdce: ether, ifnet, ifmedia 145attach cdce at uhub 146file dev/usb/if_cdce.c cdce 147 148# Prolific PL2302 host-host 149device upl: ifnet 150attach upl at uhub 151file dev/usb/if_upl.c upl 152 153# Realtek RTL8150L(M) 154device url: ether, ifnet, mii 155attach url at uhub 156file dev/usb/if_url.c url 157 158 159# Serial drivers 160# Modems 161device umodem: ucombus 162attach umodem at uhub 163file dev/usb/umodem.c umodem 164 165# FTDI serial driver 166device uftdi: ucombus 167attach uftdi at uhub 168file dev/usb/uftdi.c uftdi 169 170# Prolific PL2303 serial driver 171device uplcom: ucombus 172attach uplcom at uhub 173file dev/usb/uplcom.c uplcom 174 175# MCT USB-232 serial driver 176device umct: ucombus 177attach umct at uhub 178file dev/usb/umct.c umct 179 180# SUNTAC Slipper U VS-10U driver 181device uvscom: ucombus 182attach uvscom at uhub 183file dev/usb/uvscom.c uvscom 184 185# Belkin & other serial driver 186device ubsa: ucombus 187attach ubsa at uhub 188file dev/usb/ubsa.c ubsa 189 190 191# Scanners 192# Generic scanner support 193device uscanner 194attach uscanner at uhub 195file dev/usb/uscanner.c uscanner needs-flag 196 197# Avision SCSI over USB, HP5300 198device usscanner: scsi 199attach usscanner at uhub 200file dev/usb/usscanner.c usscanner 201 202# Prism3 WI @ USB 203attach wi at uhub with wi_usb 204file dev/usb/if_wi_usb.c wi_usb 205