xref: /openbsd/sys/dev/usb/files.usb (revision 4bdff4be)
1#	$OpenBSD: files.usb,v 1.150 2022/11/11 06:48:38 anton 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 adapters
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 Component 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# Aquantia AQC111
299device uaq: ether, ifnet, ifmedia
300attach uaq at uhub
301file   dev/usb/if_uaq.c                uaq
302
303# Serial drivers
304# Modems
305device	umodem: ucombus
306attach	umodem at uhub
307file	dev/usb/umodem.c		umodem
308
309# FTDI serial driver
310device	uftdi: ucombus
311attach	uftdi at uhub
312file	dev/usb/uftdi.c			uftdi
313
314# Prolific PL2303 serial driver
315device	uplcom: ucombus
316attach	uplcom at uhub
317file	dev/usb/uplcom.c		uplcom
318
319# MCT USB-232 serial driver
320device	umct: ucombus
321attach	umct at uhub
322file	dev/usb/umct.c			umct
323
324# SUNTAC Slipper U VS-10U driver
325device	uvscom: ucombus
326attach	uvscom at uhub
327file	dev/usb/uvscom.c		uvscom
328
329# Belkin & other serial driver
330device	ubsa: ucombus
331attach	ubsa at uhub
332file	dev/usb/ubsa.c			ubsa
333
334# Keyspan USA19HS serial
335device	ukspan: ucombus
336attach	ukspan at uhub
337file	dev/usb/ukspan.c		ukspan
338
339# Silicon Laboratories CP210x serial
340device	uslcom: ucombus
341attach	uslcom at uhub
342file	dev/usb/uslcom.c		uslcom
343
344# Arkmicro ARK3116 serial
345device	uark: ucombus
346attach	uark at uhub
347file	dev/usb/uark.c			uark
348
349# MosChip MCS7703 serial
350device	moscom: ucombus
351attach	moscom at uhub
352file	dev/usb/moscom.c		moscom
353
354# MosChip MCS78x0 serials
355device	umcs: ucombus
356attach	umcs at uhub
357file	dev/usb/umcs.c			umcs
358
359# simple serial
360device	uscom: ucombus
361attach	uscom at uhub
362file	dev/usb/uscom.c			uscom
363
364# Chromebook serial
365device	ucrcom: ucombus
366attach	ucrcom at uhub
367file	dev/usb/ucrcom.c		ucrcom
368
369# Exar XR21V1410
370device	uxrcom: ucombus
371attach	uxrcom at uhub
372file	dev/usb/uxrcom.c		uxrcom
373
374# iPAQ PDAs
375# Generic ipaq support
376device	uipaq: ucombus
377attach	uipaq at uhub
378file	dev/usb/uipaq.c			uipaq
379
380# Qualcomm MSM EVDO
381device	umsm: ucombus
382attach	umsm at uhub
383file	dev/usb/umsm.c			umsm
384
385# WinChipHead CH341/340 serial
386device	uchcom: ucombus
387attach	uchcom at uhub
388file	dev/usb/uchcom.c		uchcom
389
390# TI TUSB3410 serial
391device	uticom: ucombus
392attach	uticom at uhub
393file	dev/usb/uticom.c		uticom
394
395# Prism3 WI @ USB
396attach	wi at uhub with wi_usb
397file	dev/usb/if_wi_usb.c		wi_usb
398
399# Atmel AT76c503 / AT76c503a / AT76c505 / AT76c505a @ USB
400device	atu: ether, ifnet, ifmedia, wlan, firmload
401attach	atu at uhub
402file	dev/usb/if_atu.c		atu
403
404# Ralink Technology RT2500USB
405device	ural: ether, ifnet, ifmedia, wlan
406attach	ural at uhub
407file	dev/usb/if_ral.c		ural
408
409# Ralink Technology RT2501USB
410device	rum: ether, ifnet, ifmedia, wlan, firmload
411attach	rum at uhub
412file	dev/usb/if_rum.c		rum
413
414# Ralink Technology RT2700U/RT2800U/RT3000U
415device	run: ether, ifnet, ifmedia, wlan, firmload
416attach	run at uhub
417file	dev/usb/if_run.c		run
418
419# MediaTek MT7601U
420device	mtw: ether, ifnet, ifmedia, wlan, firmload
421attach	mtw at uhub
422file	dev/usb/if_mtw.c		mtw
423
424# Zydas ZD1211
425device	zyd: ether, ifnet, ifmedia, wlan, firmload
426attach	zyd at uhub
427file	dev/usb/if_zyd.c		zyd
428
429# PrismGT
430device	upgt: ether, ifnet, ifmedia, wlan, firmload
431attach	upgt at uhub
432file	dev/usb/if_upgt.c		upgt
433
434# Realtek 8187
435device	urtw: ether, ifnet, ifmedia, wlan
436attach	urtw at uhub
437file	dev/usb/if_urtw.c		urtw
438
439# Realtek RTL8188CU/RTL8192CU
440device	urtwn: ether, ifnet, ifmedia, wlan, firmload
441attach	urtwn at uhub
442file	dev/usb/if_urtwn.c		urtwn
443
444# Realtek RTL8188SU/RTL8191SU/RTL8192SU
445device	rsu: ether, ifnet, ifmedia, wlan, firmload
446attach	rsu at uhub
447file	dev/usb/if_rsu.c		rsu
448
449# Atheros AR9170
450device	otus: ether, ifnet, ifmedia, wlan, firmload
451attach	otus at uhub
452file	dev/usb/if_otus.c		otus
453
454# Mobile Broadband Interface Model
455device	umb: ifnet, ifmedia
456attach	umb at uhub
457file	dev/usb/if_umb.c		umb
458
459# Atheros AR5005UG/AR5005UX
460device	uath: ether, ifnet, ifmedia, wlan, firmload
461attach	uath at uhub
462file	dev/usb/if_uath.c		uath
463
464# Atheros AR9002U
465attach	athn at uhub with athn_usb: firmload
466file	dev/usb/if_athn_usb.c		athn_usb		needs-flag
467
468# Maxim/Dallas DS2490 1-Wire adapter
469device	uow: onewirebus
470attach	uow at uhub
471file	dev/usb/uow.c			uow
472
473# Research In Motion BlackBerry
474device	uberry {}
475attach	uberry at uhub
476file	dev/usb/uberry.c		uberry
477
478# USB Power Devices
479device upd: hid
480attach upd at uhidbus
481file   dev/usb/upd.c			upd
482
483# Wacom tablets
484device	uwacom: hid, hidms, wsmousedev
485attach	uwacom at uhidbus
486file	dev/usb/uwacom.c		uwacom
487
488attach	bwfm at uhub with bwfm_usb: firmload
489file	dev/usb/if_bwfm_usb.c		bwfm_usb
490
491# Microsoft Surface Type Cover
492device	umstc: hid
493attach	umstc at uhidbus
494file	dev/usb/umstc.c			umstc
495
496# Logitech HID++ Devices
497device	uhidpp: hid
498attach	uhidpp at uhidbus
499file	dev/usb/uhidpp.c		uhidpp
500
501# Consumer Control Keyboards
502device	ucc: hid, hidcc, wskbddev
503attach	ucc at uhidbus
504file	dev/usb/ucc.c			ucc
505