1# $OpenBSD: files.usb,v 1.144 2021/01/23 05:08:36 thfr 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# Audio devices 29device uaudio: audio 30attach uaudio at uhub 31file dev/usb/uaudio.c uaudio 32 33# Video devices 34device uvideo: video, firmload 35attach uvideo at uhub 36file dev/usb/uvideo.c uvideo 37 38# USBTV007 devices 39device utvfu: video, audio 40attach utvfu at uhub 41file dev/usb/utvfu.c utvfu 42 43device udl: wsemuldisplaydev, rasops16, edid 44attach udl at uhub 45file dev/usb/udl.c udl 46 47# MIDI devices 48device umidi: midibus 49attach umidi at uhub 50file dev/usb/umidi.c umidi 51file dev/usb/umidi_quirks.c umidi 52 53# Modem and com serial port 54device ucom 55attach ucom at ucombus 56file dev/usb/ucom.c ucom | ucombus needs-flag 57 58 59# Generic devices 60device ugen 61attach ugen at uhub 62file dev/usb/ugen.c ugen needs-flag 63 64 65# HID 66# HID "bus" 67define uhidbus {[reportid = -1]} 68 69# HID root device for multiple report IDs 70device uhidev: hid, uhidbus 71attach uhidev at uhub 72file dev/usb/uhidev.c uhidev 73 74# Generic HID devices 75device uhid: hid 76attach uhid at uhidbus 77file dev/usb/uhid.c uhid | fido | ujoy needs-flag 78 79# FIDO/U2F security keys 80device fido: hid 81attach fido at uhidbus 82file dev/usb/fido.c fido needs-flag 83 84# USB Joysticks/Gamecontrollers 85device ujoy: hid 86attach ujoy at uhidbus 87file dev/usb/ujoy.c ujoy needs-flag 88 89# Keyboards 90file dev/usb/ukbdmap.c hidkbd 91device ukbd: hid, hidkbd, wskbddev 92attach ukbd at uhidbus 93file dev/usb/ukbd.c ukbd needs-flag 94 95# Mice 96device ums: hid, hidms, wsmousedev 97attach ums at uhidbus 98file dev/usb/ums.c ums 99 100# HID Multitouch Trackpad 101device umt: hid, hidmt, wsmousedev 102attach umt at uhidbus 103file dev/usb/umt.c umt 104 105# USB Touchscreen 106device uts: wsmousedev 107attach uts at uhub 108file dev/usb/uts.c uts 109 110# Apple USB Touchpad 111device utpms: hid, wsmousedev 112attach utpms at uhidbus 113file dev/usb/utpms.c utpms 114 115# Broadcom touchpad 116device ubcmtp: wsmousedev 117attach ubcmtp at uhub 118file dev/usb/ubcmtp.c ubcmtp 119 120# Cypress microcontroller based serial adpaters 121device ucycom: hid, ucombus 122attach ucycom at uhidbus 123file dev/usb/ucycom.c ucycom 124 125# Silicon Labs USB HID based UART controller 126device uslhcom: hid, ucombus 127attach uslhcom at uhidbus 128file dev/usb/uslhcom.c uslhcom 129 130# Printers 131device ulpt: firmload 132attach ulpt at uhub 133file dev/usb/ulpt.c ulpt needs-flag 134 135 136# Mass storage 137device umass: scsi 138attach umass at uhub 139file dev/usb/umass.c umass 140file dev/usb/umass_quirks.c umass 141file dev/usb/umass_scsi.c umass & scsibus 142 143 144# Sensors 145# TEMPerHUM HID 146device uthum: hid 147attach uthum at uhidbus 148file dev/usb/uthum.c uthum 149 150# gold TEMPer 151device ugold: hid 152attach ugold at uhidbus 153file dev/usb/ugold.c ugold 154 155# Strawberry Linux USBRH 156device utrh: hid 157attach utrh at uhidbus 158file dev/usb/utrh.c utrh 159 160# Fujitsu Compnent Smart Power Strip FX-5204PS 161device usps 162attach usps at uhub 163file dev/usb/usps.c usps 164 165# Toradex OAK common 166define uoak 167file dev/usb/uoak_subr.c uoakrh | uoaklux | uoakv 168 169# Toradex OAK series USB RH sensor 170device uoakrh: hid, uoak 171attach uoakrh at uhidbus 172file dev/usb/uoakrh.c uoakrh 173 174# Toradex OAK series USB LUX sensor 175device uoaklux: hid, uoak 176attach uoaklux at uhidbus 177file dev/usb/uoaklux.c uoaklux 178 179# Toradex OAK series USB 10V sensor 180device uoakv: hid, uoak 181attach uoakv at uhidbus 182file dev/usb/uoakv.c uoakv 183 184# Misc 185# Moonbase Otago OneRNG TRNG 186device uonerng 187attach uonerng at uhub 188file dev/usb/uonerng.c uonerng 189 190# USB Random Number Generator 191device urng 192attach urng at uhub 193file dev/usb/urng.c urng 194 195# Gude Expert mouseCLOCK DCF77 time signal station receiver 196device udcf 197attach udcf at uhub 198file dev/usb/udcf.c udcf 199 200# Meinberg USB5131 DCF77 radio clock 201device umbg 202attach umbg at uhub 203file dev/usb/umbg.c umbg 204 205# Handspring Visor 206device uvisor: ucombus 207attach uvisor at uhub 208file dev/usb/uvisor.c uvisor 209 210# D-Link DSB-R100 FM radio 211device udsbr: radiobus 212attach udsbr at uhub 213file dev/usb/udsbr.c udsbr 214 215# Maywa-denki/Kayac YUREX 216device utwitch: hid 217attach utwitch at uhidbus 218file dev/usb/utwitch.c utwitch 219 220# Ethernet adapters 221# ADMtek AN986 Pegasus 222device aue: ether, ifnet, mii, ifmedia 223attach aue at uhub 224file dev/usb/if_aue.c aue 225 226# Ethernet adapters 227# ASIX Electronics AX88172 228device axe: ether, ifnet, mii, ifmedia 229attach axe at uhub 230file dev/usb/if_axe.c axe 231 232# Ethernet adapters 233# ASIX Electronics AX88178a and AX88179 234device axen: ether, ifnet, mii, ifmedia 235attach axen at uhub 236file dev/usb/if_axen.c axen 237 238# SMSC LAN95xx 239device smsc: ether, ifnet, mii, ifmedia 240attach smsc at uhub 241file dev/usb/if_smsc.c smsc 242 243# CATC USB-EL1201A 244device cue: ether, ifnet, ifmedia 245attach cue at uhub 246file dev/usb/if_cue.c cue 247 248# Kawasaki LSI KL5KUSB101B 249device kue: ether, ifnet, ifmedia, firmload 250attach kue at uhub 251file dev/usb/if_kue.c kue 252 253# CDC Ethernet 254device cdce: ether, ifnet, ifmedia 255attach cdce at uhub 256file dev/usb/if_cdce.c cdce 257 258# RNDIS 259device urndis: ether, ifnet, ifmedia 260attach urndis at uhub 261file dev/usb/if_urndis.c urndis 262 263# Moschip MCS7x30 Ethernet 264device mos: ether, ifnet, mii, ifmedia 265attach mos at uhub 266file dev/usb/if_mos.c mos 267 268# Microchip LAN75xx/LAN78xx 269device mue: ether, ifnet, mii, ifmedia 270attach mue at uhub 271file dev/usb/if_mue.c mue 272 273# Davicom DM9601 274device udav: ether, ifnet, mii, ifmedia 275attach udav at uhub 276file dev/usb/if_udav.c udav 277 278# Prolific PL2302 host-host 279device upl: ifnet 280attach upl at uhub 281file dev/usb/if_upl.c upl 282 283# Genesys Logic GL620USB-A host-host 284device ugl: ether, ifnet, ifmedia 285attach ugl at uhub 286file dev/usb/if_ugl.c ugl 287 288# Realtek RTL8150L(M) 289device url: ether, ifnet, mii, ifmedia 290attach url at uhub 291file dev/usb/if_url.c url 292 293# Realtek RTL8152 294device ure: ether, ifnet, mii, ifmedia 295attach ure at uhub 296file dev/usb/if_ure.c ure 297 298 299# Serial drivers 300# Modems 301device umodem: ucombus 302attach umodem at uhub 303file dev/usb/umodem.c umodem 304 305# FTDI serial driver 306device uftdi: ucombus 307attach uftdi at uhub 308file dev/usb/uftdi.c uftdi 309 310# Prolific PL2303 serial driver 311device uplcom: ucombus 312attach uplcom at uhub 313file dev/usb/uplcom.c uplcom 314 315# MCT USB-232 serial driver 316device umct: ucombus 317attach umct at uhub 318file dev/usb/umct.c umct 319 320# SUNTAC Slipper U VS-10U driver 321device uvscom: ucombus 322attach uvscom at uhub 323file dev/usb/uvscom.c uvscom 324 325# Belkin & other serial driver 326device ubsa: ucombus 327attach ubsa at uhub 328file dev/usb/ubsa.c ubsa 329 330# Keyspan USA19HS serial 331device ukspan: ucombus 332attach ukspan at uhub 333file dev/usb/ukspan.c ukspan 334 335# Silicon Laboratories CP210x serial 336device uslcom: ucombus 337attach uslcom at uhub 338file dev/usb/uslcom.c uslcom 339 340# Arkmicro ARK3116 serial 341device uark: ucombus 342attach uark at uhub 343file dev/usb/uark.c uark 344 345# MosChip MCS7703 serial 346device moscom: ucombus 347attach moscom at uhub 348file dev/usb/moscom.c moscom 349 350# MosChip MCS78x0 serials 351device umcs: ucombus 352attach umcs at uhub 353file dev/usb/umcs.c umcs 354 355# simple serial 356device uscom: ucombus 357attach uscom at uhub 358file dev/usb/uscom.c uscom 359 360# Chromebook serial 361device ucrcom: ucombus 362attach ucrcom at uhub 363file dev/usb/ucrcom.c ucrcom 364 365# Exar XR21V1410 366device uxrcom: ucombus 367attach uxrcom at uhub 368file dev/usb/uxrcom.c uxrcom 369 370# iPAQ PDAs 371# Generic ipaq support 372device uipaq: ucombus 373attach uipaq at uhub 374file dev/usb/uipaq.c uipaq 375 376# Qualcomm MSM EVDO 377device umsm: ucombus 378attach umsm at uhub 379file dev/usb/umsm.c umsm 380 381# WinChipHead CH341/340 serial 382device uchcom: ucombus 383attach uchcom at uhub 384file dev/usb/uchcom.c uchcom 385 386# TI TUSB3410 serial 387device uticom: ucombus 388attach uticom at uhub 389file dev/usb/uticom.c uticom 390 391# Prism3 WI @ USB 392attach wi at uhub with wi_usb 393file dev/usb/if_wi_usb.c wi_usb 394 395# Atmel AT76c503 / AT76c503a / AT76c505 / AT76c505a @ USB 396device atu: ether, ifnet, ifmedia, wlan, firmload 397attach atu at uhub 398file dev/usb/if_atu.c atu 399 400# Ralink Technology RT2500USB 401device ural: ether, ifnet, ifmedia, wlan 402attach ural at uhub 403file dev/usb/if_ral.c ural 404 405# Ralink Technology RT2501USB 406device rum: ether, ifnet, ifmedia, wlan, firmload 407attach rum at uhub 408file dev/usb/if_rum.c rum 409 410# Ralink Technology RT2700U/RT2800U/RT3000U 411device run: ether, ifnet, ifmedia, wlan, firmload 412attach run at uhub 413file dev/usb/if_run.c run 414 415# Zydas ZD1211 416device zyd: ether, ifnet, ifmedia, wlan, firmload 417attach zyd at uhub 418file dev/usb/if_zyd.c zyd 419 420# PrismGT 421device upgt: ether, ifnet, ifmedia, wlan, firmload 422attach upgt at uhub 423file dev/usb/if_upgt.c upgt 424 425# Realtek 8187 426device urtw: ether, ifnet, ifmedia, wlan 427attach urtw at uhub 428file dev/usb/if_urtw.c urtw 429 430# Realtek RTL8188CU/RTL8192CU 431device urtwn: ether, ifnet, ifmedia, wlan, firmload 432attach urtwn at uhub 433file dev/usb/if_urtwn.c urtwn 434 435# Realtek RTL8188SU/RTL8191SU/RTL8192SU 436device rsu: ether, ifnet, ifmedia, wlan, firmload 437attach rsu at uhub 438file dev/usb/if_rsu.c rsu 439 440# Atheros AR9170 441device otus: ether, ifnet, ifmedia, wlan, firmload 442attach otus at uhub 443file dev/usb/if_otus.c otus 444 445# Mobile Broadband Interface Model 446device umb: ifnet, ifmedia 447attach umb at uhub 448file dev/usb/if_umb.c umb 449 450# Atheros AR5005UG/AR5005UX 451device uath: ether, ifnet, ifmedia, wlan, firmload 452attach uath at uhub 453file dev/usb/if_uath.c uath 454 455# Atheros AR9002U 456attach athn at uhub with athn_usb: firmload 457file dev/usb/if_athn_usb.c athn_usb needs-flag 458 459# Maxim/Dallas DS2490 1-Wire adapter 460device uow: onewirebus 461attach uow at uhub 462file dev/usb/uow.c uow 463 464# Research In Motion BlackBerry 465device uberry {} 466attach uberry at uhub 467file dev/usb/uberry.c uberry 468 469# USB Power Devices 470device upd: hid 471attach upd at uhidbus 472file dev/usb/upd.c upd 473 474# Wacom tablets 475device uwacom: hid, hidms, wsmousedev 476attach uwacom at uhidbus 477file dev/usb/uwacom.c uwacom 478 479attach bwfm at uhub with bwfm_usb: firmload 480file dev/usb/if_bwfm_usb.c bwfm_usb 481 482# Microsoft Surface Type Cover 483device umstc: hid 484attach umstc at uhidbus 485file dev/usb/umstc.c umstc 486